Skip to content
Snippets Groups Projects
footer.sass 1.89 KiB
Newer Older
alexisben's avatar
alexisben committed
footer[role="contentinfo"]
    background: $footer-background-color
    color: $footer-color
    padding-bottom: $spacing1
    padding-top: $spacing1
    address
        font-size: px2rem(14)
        line-height: px2rem(26)

    .logo
        img
            height: 60px
            max-width: 100%
            width: auto

    .credit
        padding-bottom: $spacing1
        padding-top: $spacing1

    .content
        margin-bottom: $spacing1
        @include media-breakpoint-up(md)
            margin-bottom: $spacing2
        > div
            &:first-of-type
                @include media-breakpoint-down(md)
                    margin-bottom: $spacing1

    .complementary
        @include media-breakpoint-up(md)
            align-items: center
            display: flex
            .credit + [class^="nav-"],
            [class^="nav-"] + [class^="nav-"]
                margin-left: auto
                margin-right: -$spacing1

    @include media-breakpoint-up(md)
        [class^="nav-"] + .credit,
        small + .credit
            &::before
                content: '—'
                margin-right: calc(#{$spacing1} / 2),

        [class^="nav-"] + .credit
            margin-left: calc(#{$spacing1} / -2)

        small + .credit
            margin-left: calc(#{$spacing1} / 2)



    .nav-level-1
        align-items: flex-start
        flex-direction: column
        margin-left: -$spacing1
        ul
alexisben's avatar
alexisben committed
            @include list-reset
alexisben's avatar
alexisben committed
            margin-left: 0
        a,
        span
            color: $footer-color
            display: inline-block
            font-size: px2rem(14)
            line-height: 1.4

    @include media-breakpoint-up(md)
        .nav-legal,
        .nav-social
            flex-direction: row
        .nav-legal
            li:not(:first-child)
                margin-left: -$spacing1
        .nav-social
            li:not(:last-child)
                margin-right: -$spacing1