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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
.navigationFull {
display: none;
}
.navigationSlider {
position: absolute;
right: 0px;
.navSlideout {
cursor: pointer;
padding-top: 4px;
position: absolute;
right: 10px;
top: 0;
transition: top 0.3s;
z-index: 101;
}
.slidingNav {
background: $secondary-bg;
box-sizing: border-box;
height: 0px;
overflow-x: hidden;
padding: 0;
position: absolute;
right: 0px;
top: 0;
transition: height 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
width: 0;
ul {
flex-flow: column nowrap;
list-style: none;
padding: 10px;
li {
margin: 0;
padding: 2px 0;
a {
color: $primary-bg;
display: inline;
margin: 3px 5px;
padding: 2px 0px;
transition: background-color 0.3s;
&:focus,
&:hover {
border-bottom: 2px solid $primary-bg;
}
}
}
}
}
.navSlideoutActive {
.slidingNav {
height: auto;
padding-top: $header-height + $header-pbot;
width: 300px;
}
.navSlideout {
top: -2px;
.menuExpand {
span:nth-child(1) {
background-color: $text;
top: 16px;
transform: rotate(45deg);
}
span:nth-child(2) {
opacity: 0;
}
span:nth-child(3) {
background-color: $text;
transform: rotate(-45deg);
}
}
}
}
}
.menuExpand {
display: flex;
flex-flow: column nowrap;
height: 20px;
justify-content: space-between;
span {
background: $primary-overlay;
border-radius: 3px;
display: block;
flex: 0 0 4px;
height: 4px;
position: relative;
top: 0;
transition: background-color 0.3s, top 0.3s, opacity 0.3s, transform 0.3s;
width: 20px;
}
}
.navPusher {
border-top: $header-height + $header-ptop + $header-pbot solid $primary-bg;
position: relative;
left: 0;
z-index: 99;
height: 100%;
&::after {
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
background: rgba(0,0,0,0.4);
content: '';
opacity: 0;
-webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}
.sliderActive &::after {
width: 100%;
height: 100%;
opacity: 1;
-webkit-transition: opacity 0.5s;
transition: opacity 0.5s;
z-index: 100;
}
}
@media only screen and (min-width: 1024px) {
.navigationFull {
display: block;
}
.navigationSlider {
display: none;
}
}
|