Sha256: ce31bdf39c50ed3ff8ef0e863beaaf2c776174d5160303c944a365fa9fd793e9

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

nav.list {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 3em;
    align-content: flex-start;
    align-items: flex-start;
    width: 100%;
    
    h1 {
        width: 100%;
        font-size: 2.5em;
    }

    a {
        width: 32em;
        margin-bottom: 1em;
        margin-right: 1em;
        color: inherit;
        text-decoration: none;
        transition: all 0.5s ease-in;
        text-align: center;

        h2 {
            font-size: 1.5em;
        }
        
        &:hover {
            .header { 
                background-color: $color-primary;
            }

            .header::after { 
                border-color: $color-primary transparent transparent transparent;
            }
        }

        .header {
            transition: all 0.5s ease-in;
            padding: 1em;
            background-color: $color-bg-secondary;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            position: relative;

            &::after {
                transition: all 0.5s ease-in;
                content: "";
                width: 0;
                height: 0;
                border-width: 2em;
                border-style: solid;
                border-color: #193441 transparent transparent transparent;
                position: absolute;
                bottom: -4em;
                left: 0px;
                right: 0px;
                margin-left: auto;
                margin-right: auto;
            }

            > * {
                width: 100%;
            }
        }

        img {
            width: 100%;
            max-height: 256px;
            object-fit: cover;
        }
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voppe-jekyll-theme-0.5.1 _sass/components/list.scss