Sha256: 089500dba0591e8e1648c651d68e8a65468b41cda280bf7a327ace5cdb8ee448

Contents?: true

Size: 1.23 KB

Versions: 66

Compression:

Stored size: 1.23 KB

Contents

/* Image */

.image {
    border-radius: _size(border-radius);
    border: 0;
    display: inline-block;
    position: relative;

    img {
        border-radius: _size(border-radius);
        display: block;
    }

    &.left,
    &.right {
        max-width: 40%;

        img {
            width: 100%;
        }
    }

    &.left {
        float: left;
        padding: 0 1.5em 1em 0;
        top: 0.25em;
    }

    &.right {
        float: right;
        padding: 0 0 1em 1.5em;
        top: 0.25em;
    }

    &.fit {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        margin: 0 0 _size(element-margin) 0;
        width: 100%;

        img {
            width: 100%;
        }
    }

    &.main {
        display: block;
        margin: 0 0 (_size(element-margin) * 1.5) 0;
        width: 100%;

        img {
            width: 100%;
        }
    }
}

a.image {
    overflow: hidden;

    img {
        @include vendor('transition', 'transform #{_duration(transition)} ease');
    }

    &:hover {
        img {
            @include vendor('transform', 'scale(1.075)');
        }
    }
}

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
jekyll-theme-consulting-0.11.3 _sass/main/components/_image.scss
jekyll-theme-consulting-0.11.2 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.17 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.16 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.15 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.14 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.13 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.12 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.11 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.10 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.9 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.8 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.7 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.6 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.5 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.4 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.3 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.2 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.1 _sass/main/components/_image.scss
jekyll-theme-consulting-0.10.0 _sass/main/components/_image.scss