Sha256: 2f2aeb31243723e8eec1b96215e64f775f197d7ac7e594bb3379e913ec5a60d7

Contents?: true

Size: 1.91 KB

Versions: 64

Compression:

Stored size: 1.91 KB

Contents

/*------------------------------------*\
    #HERO-CONTENT-BLOCK
\*------------------------------------*/

$hero-content-block-position-offset:  ($spacing-unit * 2) !default;


/**
 * 1. provides positioning context for `.hero-content-block__button`
 */
.hero-content-block {
    position: relative; /* [1] */
}

    /**
     * 1. height is achieved by adding bottom padding to the element via inline
     *    styles
     */
    .hero-content-block__image-container {
        height: 0; /* [1] */
    }

        .hero-content-block__image {
            display: block;
            width: 100%;
        }

    .hero-content-block__button {
        position: absolute;
    }


    .hero-content-block__button--top-left {
        top: $hero-content-block-position-offset;
        left: $hero-content-block-position-offset;
    }

    .hero-content-block__button--top-center {
        @include center('horizontal');
        top: $hero-content-block-position-offset;
    }

    .hero-content-block__button--top-right {
        top: $hero-content-block-position-offset;
        right: $hero-content-block-position-offset;
    }


    .hero-content-block__button--middle-left {
        @include center('vertical');
        left: $hero-content-block-position-offset;
    }

    .hero-content-block__button--middle-center {
        @include center;
    }

    .hero-content-block__button--middle-right {
        @include center('vertical');
        right: $hero-content-block-position-offset;
    }


    .hero-content-block__button--bottom-left {
        bottom: $hero-content-block-position-offset;
        left: $hero-content-block-position-offset;
    }

    .hero-content-block__button--bottom-center {
        @include center('horizontal');
        bottom: $hero-content-block-position-offset;
    }

    .hero-content-block__button--bottom-right {
        right: $hero-content-block-position-offset;
        bottom: $hero-content-block-position-offset;
    }

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
workarea-storefront-3.5.27 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.26 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.45 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.25 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.23 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.44 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.22 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.43 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.21 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.42 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.20 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.41 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.19 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.40 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.18 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.39 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.17 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.38 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.16 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.37 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss