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.5 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.27 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-haven_theme-1.3.0 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.4 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.26 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.3 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.25 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.2 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.24 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.1 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.23 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.22 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.0 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.21 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.5.0.beta.1 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.20 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.19 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.18 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.17 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss
workarea-storefront-3.4.16 app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss