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 { | ||||
249 | display: block; | ||||
250 | padding: .75rem; | ||||
251 | font-size: 1rem; | ||||
252 | color: $nearly-white; | ||||
253 | transition: all .2s ease-in-out; | ||||
254 | -o-transition: all .2s ease-in-out; | ||||
255 | -moz-transition: all .2s ease-in-out; | ||||
256 | -webkit-transition: all .2s ease-in-out; | ||||
257 | |||||
258 | &:hover { | ||||
259 | color: $nearly-white; | ||||
260 | background-color: $light-green; | ||||
261 | } | ||||
262 | |||||
263 | &.logout::before { | ||||
264 | @include icon-font; | ||||
265 | content: $fa-logout; | ||||
266 | font-size: 1rem; | ||||
267 | } | ||||
268 | |||||
269 | span { | ||||
270 | display: inline; | ||||
271 | } | ||||
272 | } | ||||
273 | } | ||||
274 | |||||
275 | .burger-icon { | ||||
276 | display: none; | ||||
277 | |||||
278 | &::after { | ||||
279 | @include icon-font; | ||||
280 | content: $fa-bars; | ||||
281 | } | ||||
282 | } | ||||
283 | } | ||||
284 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 285 | header { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 286 | @include box-sizing-box(); |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 287 | position: relative; |
288 | background-color: $light-green; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 289 | // padding: $base-padding 0 0 $base-padding; |
290 | padding-top: $standard-size-and-spacing; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 291 | font-size: 10pt; |
292 | color: $nearly-white; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 293 | |
294 | &.shifted { | ||||
295 | padding-left: $logo-left-distance; | ||||
296 | } | ||||
297 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 298 | span.select { |
299 | display: inline-block; | ||||
300 | cursor: pointer; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 301 | line-height: 1.8em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 302 | |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 303 | > span { |
304 | font-weight: bold; | ||||
305 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 306 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 307 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 308 | width: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 309 | bottom-width: 3px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 310 | style: solid; |
311 | color: transparent; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 312 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 313 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 314 | &:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 315 | color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 316 | border-color: $dark-green; |
317 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 318 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 319 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 320 | @include icon-font; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 321 | pointer-events: none; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 322 | text-align: center; |
323 | content: $fa-down; | ||||
324 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 325 | padding: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 326 | left: 4pt; |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 327 | right: 4pt; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 328 | } |
329 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 330 | |
331 | &.active { | ||||
332 | border-color: $dark-orange; | ||||
333 | &::after { | ||||
334 | content: $fa-up; | ||||
335 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 336 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 337 | } |
338 | |||||
339 | form { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 340 | position: relative; |
341 | display: block; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 342 | // padding-left: $logo-left-distance; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 343 | min-height: 2.7em; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 344 | |
345 | &#searchform { | ||||
346 | margin: 0 $standard-size-and-spacing; | ||||
347 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 348 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 349 | |
350 | input { | ||||
351 | @include input-field; | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 352 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 353 | |
354 | .button { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 355 | color: $nearly-white; |
356 | line-height: 2em; | ||||
357 | margin-right: $right-distance; | ||||
358 | |||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 359 | &.right { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 360 | float: right; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 361 | display: inline-block; |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 362 | >.tutorial{ |
363 | margin-left: 10px; | ||||
364 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 365 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 366 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 367 | &.top { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 368 | position: absolute; |
369 | display: block; | ||||
370 | top: 0; | ||||
371 | right: 0; | ||||
372 | margin-right: 0; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 373 | width: 20px; |
374 | // width: math.div($standard-margin,2); | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 375 | background-color: $dark-green; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 376 | text-align: center; |
377 | height: 100%; | ||||
378 | z-index: 20; | ||||
379 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 380 | > a:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 381 | color: $nearly-white |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 382 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 383 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 384 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 385 | > a { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 386 | color: $nearly-white; |
387 | cursor: pointer; | ||||
388 | position: relative; | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 389 | font-size: 120%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 390 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 391 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 392 | @include blind; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 393 | } |
394 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 395 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 396 | > a::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 397 | @include icon-font; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 398 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 399 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 400 | > a.tutorial::after { |
401 | content: $fa-tutorial; | ||||
402 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 403 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 404 | > a.question::after { |
405 | content: $fa-question; | ||||
406 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 407 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 408 | > a.login::after { |
409 | content: $fa-login; | ||||
410 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 411 | |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 412 | > a.logout::after { |
413 | content: $fa-logout; | ||||
414 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 415 | } |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 416 | } |
417 | |||||
418 | |||||
419 | .query.button-group > span { | ||||
420 | border-top-width: 0; | ||||
421 | border-color: white; | ||||
422 | |||||
423 | &:first-child { | ||||
424 | border-top-left-radius: 0; | ||||
425 | } | ||||
426 | &:last-child { | ||||
427 | border-top-right-radius: 0; | ||||
428 | } | ||||
Leo Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 429 | } |