Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_navbar.scss « components « scss « assets - github.com/StaticMania/portio-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 31c641028985a479cddae9d9df1e1938bc8bd713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.navbar {
    padding: 40px 0;
    background: transparent;
    transition: all 0.3s ease;
    @include desktop {
        background: $white;
    }
    @include desktop {
        padding: 15px 20px;
        margin: 10px 10px 0;
        border-radius: 5px;
    }
    .navbar-brand {
        img {
            @include desktop {
                width: 80%;
            }
        }
    }
    &.nav__color__change {
        background: $white;
        padding: 20px 0;
        box-shadow: 0px 10px 20px 0px rgba(50, 65, 141, 0.1);
        @include desktop {
            padding: 15px 20px;
        }
    }
    @include desktop {
        .navbar-toggler {
            outline: 0;
            padding: 0;
            &-icon {
                height: 2px;
                width: 25px;
                transition: all 0.2s;
                background: $primary;
                display: block;
                &:not(:last-child) {
                    margin-bottom: 5px;
                }
                &:nth-child(1) {
                    transform: rotate(45deg);
                    transform-origin: 10% 10%;
                }
                &:nth-child(2) {
                    opacity: 0;
                    filter: alpha(opacity=0);
                }
                &:nth-child(3) {
                    transform: rotate(-45deg);
                    transform-origin: 10% 90%;
                }
            }
            &.collapsed {
                .navbar-toggler-icon {
                    &:nth-child(1) {
                        transform: rotate(0);
                    }
                    &:nth-child(2) {
                        opacity: 1;
                        filter: alpha(opacity=1);
                    }
                    &:nth-child(3) {
                        transform: rotate(0);
                    }
                }
            }
        }
    }
}