Sha256: 47b894b391838cc3c5543af1f97d8aa3a3428d140affe4286675224cd3e3f975

Contents?: true

Size: 1.83 KB

Versions: 6

Compression:

Stored size: 1.83 KB

Contents

.portfolio * {
    z-index: 2;
    margin: 8% 5%;
    img {
        padding: 0 0;
        margin: 0 0;
    }

    .portfolio-item {
        right: 0;
        margin: 0 0 15px;

        @media(min-width: 767px) {
            margin: 0 0 30px;
        }

        .portfolio-link {
            display: block;
            position: relative;
            margin: 0 auto;
            max-width: 400px;

            .caption {
                margin: 0;
                position: absolute;
                width: 100%;
                height: 100%;
                text-align: center;
                opacity: 0;
                background: $link-shadow;
                -webkit-transition: all ease .5s;
                -moz-transition: all ease .5s;
                transition: all ease .5s;
                font: 0/0 a;
                &::before {
                    content: ' ';
                    display: inline-block;
                    vertical-align: middle;
                    height: 100%;
                }

                &:hover {
                    opacity: 1;
                }
                .caption-content {
                    font-family: 'Lora', 'Times New Roman', serif;
                    font-size: 15px;
                    color: #fff;
                    margin: auto;
                    text-align: center;
                    display: inline-block;
                    vertical-align: middle;

                    @media screen and (max-width: $sm-break) {
                        font-size: 7px;
                    }

                    h3,
                    h4 {
                        margin: 0;
                    }
                }
            }
        }
    }
}

/* --- Responsive --- */

@media screen and (max-width: $sm-break) {
    .portfolio {
        .caption-content {
            font-size: 7px;
        }
    }
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
type-on-strap-0.5.3 _sass/includes/_portfolio.scss
jekyll-theme-type-on-strap-4.0.2 _sass/includes/_portfolio.scss
jekyll-theme-type-on-strap-3.0.0 _sass/layouts/_portfolio.scss
type-on-strap-0.4.2 _sass/layouts/_portfolio.scss
jekyll-theme-type-on-strap-2.0.0 _sass/layouts/_portfolio.scss
type-on-strap-0.3.0 _sass/layouts/_portfolio.scss