UNPKG

4.29 kBtext/lessView Raw
1@import "~tfstyleguide/vars";
2
3.app-nav-container {
4 position: relative;
5 z-index: 1;
6 color: @white;
7 background-color: @blue;
8 margin-bottom: 30px;
9}
10
11.app-nav {
12 position: relative;
13 height: 46px;
14 top: 0px;
15 max-width: @grid-width;
16 margin: 0 auto;
17 z-index: 15;
18}
19
20.app-nav-main {
21 display: none;
22 @media @nonmobile {
23 display: block;
24 padding-left: 30px;
25 }
26 @media @bigger {
27 padding-left: 0;
28 }
29}
30
31.app-nav-list {
32 position: absolute;
33 top: 0;
34 right: 0;
35 left: 0;
36 max-width: 0;
37 overflow: hidden;
38 white-space: nowrap;
39 opacity: 0;
40 border-top: 1px solid @blue75;
41 transform: translate(-100%, 46px);
42 transition: transform 0.35s ease,
43 opacity 0.28s ease,
44 max-width 0.35s ease,
45 max-height 0.22s ease;
46
47 .app-nav-separator {
48 border: none;
49 border-top: 1px solid @blue75;
50 padding-top: 0;
51 margin-top: 0;
52 margin-bottom: 0;
53
54 @media @nonmobile {
55 border-color: @gray25;
56 }
57 }
58
59 @media @nonmobile {
60 right: 30px;
61 left: auto;
62 min-width: 176px;
63 max-height: 0px;
64 border: 1px solid @gray25;
65 border-top-color: transparent;
66 box-shadow: 0 1px 2px @gray25;
67
68 transform: translate(0, 46px);
69 }
70
71 @media @bigger {
72 right: 0;
73 }
74}
75
76.app-nav__visible .app-nav-list {
77 transform: translate(0px, 46px);
78 max-width: 640px;
79 opacity: 1;
80
81 @media @nonmobile {
82 max-width: none;
83 max-height: 360px;
84 }
85}
86
87.app-nav-list li,
88.app-nav-main li {
89 margin: 0;
90 padding: 0;
91 max-width: none;
92 list-style: none;
93
94 &::before {
95 content: none;
96 display: none;
97 }
98}
99
100.app-nav-main li {
101 @media @nonmobile {
102 display: inline-block;
103
104 + li {
105 margin-left: 15px;
106 }
107 }
108}
109
110.app-nav-logo {
111 position: absolute;
112 display: inline-block;
113 left: 20px;
114 top: 50%;
115 transform: translate(0%, -50%);
116 font-size: 0;
117
118 @media @nonmobile {
119 left: 50%;
120 transform: translate(-50%, -50%);
121 }
122}
123
124.app-nav-link {
125 .proxima-light;
126 display: block;
127 text-decoration: none;
128 font-size: 16px;
129 line-height: 28px;
130 height: 46px; // line-height bugginess.
131 letter-spacing: 0.5px;
132 padding-top: 9px;
133 padding-bottom: 9px;
134 padding-right: 20px;
135 padding-left: 20px;
136 margin-left: 0;
137
138 color: @white;
139 background-color: @blue;
140
141 &.active {
142 box-shadow: 0px -4px 0px @blue75 inset;
143 }
144
145 &:hover,
146 &:active,
147 &:focus {
148 // color: @blue25;
149 }
150
151 &:visited,
152 &:focus {
153 outline: none;
154 }
155
156 @media @nonmobile {
157 padding-left: 0.5em;
158 padding-right: 0.5em;
159 text-align: left;
160 // color: @blue;
161 &:hover,
162 &:active,
163 &:focus {
164 // color: @blue75;
165 }
166 }
167
168 &.app-nav-link__in-menu {
169 @media @nonmobile {
170 color: @blue;
171 background-color: @gray5;
172 text-align: center;
173 transition: color 0.19s ease,
174 background-color 0.19s ease;
175
176 &:hover {
177 background-color: @blue25;
178 color: @blue125;
179 }
180 }
181 }
182
183 &.app-nav-link__mobile-only {
184 @media @nonmobile {
185 display: none;
186 }
187 }
188
189 &.app-nav-link__toggle {
190 height: 46px;
191 position: absolute;
192 right: 30px;
193 top: 0;
194 padding-right: 20px;
195 padding-left: 20px;
196 cursor: pointer;
197
198 @media @bigger {
199 right: 0;
200 }
201 }
202}
203
204[class^="icon-"].app-nav-icon {
205 position: relative;
206 top: 2px;
207 display: inline-block;
208 font-size: 28px;
209 line-height: 28px;
210 vertical-align: middle;
211 padding-right: 4px;
212
213 @media @big {
214 padding-right: 6px;
215 }
216}
217
218.app-nav-burger {
219 &::before {
220 content: "Menu";
221 }
222
223 display: inline-block;
224 min-width: 60px;
225 vertical-align: top;
226 line-height: 28px;
227 padding-right: 15px;
228 border-right-width: 0;
229 border-left-width: 0;
230 border-radius: 1px;
231
232}
233
234.app-nav__visible .app-nav-burger {
235 &::before {
236 content: "Close";
237 }
238}
239
240.app-nav-gravatar {
241 display: inline-block;
242 vertical-align: middle;
243 width: 30px;
244 height: 30px;
245 margin-top: -1px;
246 background-color: @white;
247 border-radius: 100%;
248}