Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame] | 2 | @use 'sass:math'; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 3 | @import "../util"; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 4 | @import "hint"; // Hint specific menu list |
Leo Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 5 | @import "containermenu"; // Container menu specific |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 6 | @import "searchbar"; // The search bar |
7 | @import "vc"; // Virtual corpus builder | ||||
8 | @import "statistics"; // Statistics for VCs | ||||
9 | @import "datepicker"; // Datepicker | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 10 | @import "querylanguage"; // Query language |
11 | @import "pipe"; // Pipe | ||||
Akron | bc4aff3 | 2022-02-08 16:08:42 +0100 | [diff] [blame] | 12 | @import "state"; // State |
Akron | aefecc0 | 2024-10-28 11:13:26 +0100 | [diff] [blame] | 13 | @import "panel"; // Panel |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 14 | |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 15 | .navbar { |
16 | width: 100%; | ||||
17 | height: $standard-size-and-spacing; | ||||
18 | background-color: $dark-green; | ||||
19 | display: flex; | ||||
20 | flex-direction: column; | ||||
21 | justify-content: center; | ||||
22 | align-items: end; | ||||
23 | // overflow: hidden; | ||||
24 | // position: fixed; | ||||
25 | position: absolute; | ||||
26 | top: 0; | ||||
27 | z-index: 999; | ||||
28 | transition: top .3s ease-in-out; | ||||
29 | -o-transition: top .3s ease-in-out; | ||||
30 | -moz-transition: top .3s ease-in-out; | ||||
31 | -webkit-transition: top .3s ease-in-out; | ||||
32 | |||||
33 | &-group { | ||||
34 | display: flex; | ||||
35 | align-items: center; | ||||
36 | |||||
37 | h3.nav-link { | ||||
38 | height: $standard-size-and-spacing; | ||||
39 | font-size: 1rem; | ||||
40 | transition: all .2s ease-in-out; | ||||
41 | -o-transition: all .2s ease-in-out; | ||||
42 | -moz-transition: all .2s ease-in-out; | ||||
43 | -webkit-transition: all .2s ease-in-out; | ||||
44 | |||||
45 | &:hover { | ||||
46 | background-color: $middle-green; | ||||
47 | } | ||||
48 | |||||
49 | a { | ||||
50 | display: block; | ||||
51 | padding: 1.5rem 1rem; | ||||
52 | color: $nearly-white; | ||||
53 | } | ||||
54 | } | ||||
55 | |||||
56 | // fieldset.fieldset-login { | ||||
57 | // display: flex; | ||||
58 | // flex-direction: column; | ||||
59 | // margin-right: 4rem; | ||||
60 | // padding: 0; | ||||
61 | // min-inline-size: unset; | ||||
62 | // border: unset; | ||||
63 | |||||
64 | // form.login { | ||||
65 | // display: flex; | ||||
66 | // align-items: center; | ||||
67 | |||||
68 | // input[type=text], | ||||
69 | // input[type=password] { | ||||
70 | // @include input-field; | ||||
71 | // margin-right: 8px; | ||||
72 | // height: 1.5rem; | ||||
73 | // } | ||||
74 | |||||
75 | // button.btn-login { | ||||
76 | // // width: 3rem; | ||||
77 | // // height: 3rem; | ||||
78 | // // background-color: $dark-green; | ||||
79 | // background-color: unset; | ||||
80 | // color: $nearly-white; | ||||
81 | // // padding: .75rem 1rem; | ||||
82 | // font-size: 180%; | ||||
83 | // border: none; | ||||
84 | // border-color: unset; | ||||
85 | // border-radius: 0; | ||||
86 | // text-shadow: none; | ||||
87 | // font-weight: normal; | ||||
88 | // top: unset; | ||||
89 | // transition: all .2s ease-in-out; | ||||
90 | // -o-transition: all .2s ease-in-out; | ||||
91 | // -moz-transition: all .2s ease-in-out; | ||||
92 | // -webkit-transition: all .2s ease-in-out; | ||||
93 | |||||
94 | // &::after { | ||||
95 | // content: $fa-login; | ||||
96 | // } | ||||
97 | |||||
98 | // &:hover { | ||||
99 | // // background-color: $middle-green; | ||||
100 | // color: $dark-orange; | ||||
101 | // } | ||||
102 | // } | ||||
103 | // } | ||||
104 | |||||
105 | // p { | ||||
106 | // margin: 0; | ||||
107 | // font-size: .7rem; | ||||
108 | // color: $nearly-white; | ||||
109 | |||||
110 | // a { | ||||
111 | // color: $dark-orange; | ||||
112 | |||||
113 | // &:hover { | ||||
114 | // color: $middle-orange; | ||||
115 | // } | ||||
116 | // } | ||||
117 | // } | ||||
118 | // } | ||||
119 | } | ||||
120 | |||||
121 | .dropdown { | ||||
122 | display: flex; | ||||
123 | align-items: center; | ||||
124 | margin-right: $standard-size-and-spacing; | ||||
125 | position: relative; | ||||
126 | |||||
127 | &:hover .dropdown-content, | ||||
128 | &:focus-within .dropdown-content { | ||||
129 | display: block; | ||||
130 | } | ||||
131 | |||||
132 | &:hover .dropdown-btn, | ||||
133 | &:focus-within .dropdown-btn { | ||||
134 | color: $nearly-white; | ||||
135 | background-color: $middle-green; | ||||
136 | } | ||||
137 | |||||
138 | &-btn { | ||||
139 | height: $standard-size-and-spacing; | ||||
140 | padding: 1.25rem 1rem; | ||||
141 | color: $nearly-white; | ||||
142 | transition: all .2s ease-in-out; | ||||
143 | -o-transition: all .2s ease-in-out; | ||||
144 | -moz-transition: all .2s ease-in-out; | ||||
145 | -webkit-transition: all .2s ease-in-out; | ||||
146 | cursor: pointer; | ||||
147 | |||||
148 | &.login::before { | ||||
149 | @include icon-font; | ||||
150 | content: $fa-login; | ||||
151 | font-size: 150%; | ||||
152 | } | ||||
153 | |||||
154 | &.profile::before { | ||||
155 | @include icon-font; | ||||
156 | content: $fa-user; | ||||
157 | font-size: 150%; | ||||
158 | } | ||||
159 | |||||
160 | h3.user-name { | ||||
161 | padding-right: 2px; | ||||
162 | // font-size: 85%; | ||||
163 | font-size: 120%; | ||||
164 | display: inline; | ||||
165 | } | ||||
166 | } | ||||
167 | |||||
168 | &-content { | ||||
169 | display: none; | ||||
170 | width: fit-content; | ||||
171 | margin-top: $standard-size-and-spacing; | ||||
172 | padding: 0; | ||||
173 | background-color: $middle-green; | ||||
174 | position: absolute; | ||||
175 | top: 0; | ||||
176 | z-index: 999; | ||||
177 | |||||
178 | &--left { | ||||
179 | left: 0; | ||||
180 | } | ||||
181 | |||||
182 | &--right { | ||||
183 | right: 0; | ||||
184 | padding: 1rem; | ||||
185 | } | ||||
186 | |||||
187 | form.login { | ||||
188 | display: flex; | ||||
189 | flex-direction: column; | ||||
190 | align-items: center; | ||||
191 | |||||
192 | legend { | ||||
193 | padding-bottom: $base-padding; | ||||
194 | color: $nearly-white; | ||||
195 | } | ||||
196 | |||||
197 | input[type=text], | ||||
198 | input[type=password] { | ||||
199 | @include input-field; | ||||
200 | margin-bottom: 8px; | ||||
201 | height: 2rem; | ||||
202 | } | ||||
203 | |||||
204 | button.btn-login { | ||||
205 | width: 100%; | ||||
206 | height: 2rem; | ||||
207 | margin-bottom: 1rem; | ||||
208 | background-color: $dark-green; | ||||
209 | color: $nearly-white; | ||||
210 | font-size: 120%; | ||||
211 | border: none; | ||||
212 | border-color: unset; | ||||
213 | border-radius: 0; | ||||
214 | text-shadow: none; | ||||
215 | font-weight: normal; | ||||
216 | top: unset; | ||||
217 | transition: all .2s ease-in-out; | ||||
218 | -o-transition: all .2s ease-in-out; | ||||
219 | -moz-transition: all .2s ease-in-out; | ||||
220 | -webkit-transition: all .2s ease-in-out; | ||||
221 | |||||
222 | &::after { | ||||
223 | content: $fa-login; | ||||
224 | } | ||||
225 | |||||
226 | &:hover { | ||||
227 | // color: $dark-orange; | ||||
228 | background-color: $dark-orange; | ||||
229 | } | ||||
230 | } | ||||
231 | } | ||||
232 | |||||
233 | p { | ||||
234 | margin: 0; | ||||
235 | font-size: .7rem; | ||||
236 | color: $nearly-white; | ||||
237 | |||||
238 | a { | ||||
239 | color: $dark-orange; | ||||
240 | |||||
241 | &:hover { | ||||
242 | color: $middle-orange; | ||||
243 | } | ||||
244 | } | ||||
245 | } | ||||
246 | } | ||||
247 | |||||
248 | &-item { | ||||
Uyen-Nhu Tran | 94f93b0 | 2024-11-20 20:17:57 +0100 | [diff] [blame] | 249 | display: flex; |
250 | align-items: center; | ||||
251 | gap: 5px; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 252 | padding: .75rem; |
253 | font-size: 1rem; | ||||
254 | color: $nearly-white; | ||||
255 | transition: all .2s ease-in-out; | ||||
256 | -o-transition: all .2s ease-in-out; | ||||
257 | -moz-transition: all .2s ease-in-out; | ||||
258 | -webkit-transition: all .2s ease-in-out; | ||||
259 | |||||
260 | &:hover { | ||||
261 | color: $nearly-white; | ||||
262 | background-color: $light-green; | ||||
263 | } | ||||
264 | |||||
265 | &.logout::before { | ||||
266 | @include icon-font; | ||||
267 | content: $fa-logout; | ||||
268 | font-size: 1rem; | ||||
269 | } | ||||
270 | |||||
271 | span { | ||||
272 | display: inline; | ||||
273 | } | ||||
274 | } | ||||
275 | } | ||||
276 | |||||
277 | .burger-icon { | ||||
278 | display: none; | ||||
279 | |||||
280 | &::after { | ||||
281 | @include icon-font; | ||||
282 | content: $fa-bars; | ||||
283 | } | ||||
284 | } | ||||
285 | } | ||||
286 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 287 | header { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 288 | @include box-sizing-box(); |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 289 | position: relative; |
290 | background-color: $light-green; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 291 | // padding: $base-padding 0 0 $base-padding; |
292 | padding-top: $standard-size-and-spacing; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 293 | font-size: 10pt; |
294 | color: $nearly-white; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 295 | |
296 | &.shifted { | ||||
297 | padding-left: $logo-left-distance; | ||||
298 | } | ||||
299 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 300 | span.select { |
301 | display: inline-block; | ||||
302 | cursor: pointer; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 303 | line-height: 1.8em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 304 | |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 305 | > span { |
306 | font-weight: bold; | ||||
307 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 308 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 309 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 310 | width: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 311 | bottom-width: 3px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 312 | style: solid; |
313 | color: transparent; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 314 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 315 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 316 | &:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 317 | color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 318 | border-color: $dark-green; |
319 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 320 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 321 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 322 | @include icon-font; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 323 | pointer-events: none; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 324 | text-align: center; |
325 | content: $fa-down; | ||||
326 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 327 | padding: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 328 | left: 4pt; |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 329 | right: 4pt; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 330 | } |
331 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 332 | |
333 | &.active { | ||||
334 | border-color: $dark-orange; | ||||
335 | &::after { | ||||
336 | content: $fa-up; | ||||
337 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 338 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 339 | } |
340 | |||||
341 | form { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 342 | position: relative; |
343 | display: block; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 344 | // padding-left: $logo-left-distance; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 345 | min-height: 2.7em; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 346 | |
347 | &#searchform { | ||||
348 | margin: 0 $standard-size-and-spacing; | ||||
349 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 350 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 351 | |
352 | input { | ||||
353 | @include input-field; | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 354 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 355 | |
356 | .button { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 357 | color: $nearly-white; |
358 | line-height: 2em; | ||||
359 | margin-right: $right-distance; | ||||
360 | |||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 361 | &.right { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 362 | float: right; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 363 | display: inline-block; |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 364 | >.tutorial{ |
365 | margin-left: 10px; | ||||
366 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 367 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 368 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 369 | &.top { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 370 | position: absolute; |
371 | display: block; | ||||
372 | top: 0; | ||||
373 | right: 0; | ||||
374 | margin-right: 0; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 375 | width: 20px; |
376 | // width: math.div($standard-margin,2); | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 377 | background-color: $dark-green; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 378 | text-align: center; |
379 | height: 100%; | ||||
380 | z-index: 20; | ||||
381 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 382 | > a:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 383 | color: $nearly-white |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 384 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 385 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 386 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 387 | > a { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 388 | color: $nearly-white; |
389 | cursor: pointer; | ||||
390 | position: relative; | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 391 | font-size: 120%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 392 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 393 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 394 | @include blind; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 395 | } |
396 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 397 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 398 | > a::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 399 | @include icon-font; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 400 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 401 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 402 | > a.tutorial::after { |
403 | content: $fa-tutorial; | ||||
404 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 405 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 406 | > a.question::after { |
407 | content: $fa-question; | ||||
408 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 409 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 410 | > a.login::after { |
411 | content: $fa-login; | ||||
412 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 413 | |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 414 | > a.logout::after { |
415 | content: $fa-logout; | ||||
416 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 417 | } |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 418 | } |
419 | |||||
420 | |||||
421 | .query.button-group > span { | ||||
422 | border-top-width: 0; | ||||
423 | border-color: white; | ||||
424 | |||||
425 | &:first-child { | ||||
426 | border-top-left-radius: 0; | ||||
427 | } | ||||
428 | &:last-child { | ||||
429 | border-top-right-radius: 0; | ||||
430 | } | ||||
Leo Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 431 | } |