blob: ccd13bda4a730bce4b39e5955167881831680aa2 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akronbaba3b62021-11-22 17:24:48 +01002@use 'sass:math';
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00003@import "../util";
Akron2f979122018-07-25 17:00:23 +02004@import "hint"; // Hint specific menu list
Leo Repp57997402021-08-18 16:37:52 +02005@import "containermenu"; // Container menu specific
Akron2f979122018-07-25 17:00:23 +02006@import "searchbar"; // The search bar
7@import "vc"; // Virtual corpus builder
8@import "statistics"; // Statistics for VCs
9@import "datepicker"; // Datepicker
Akron7e5afce2020-08-25 15:50:19 +020010@import "querylanguage"; // Query language
11@import "pipe"; // Pipe
Akronbc4aff32022-02-08 16:08:42 +010012@import "state"; // State
Akronaefecc02024-10-28 11:13:26 +010013@import "panel"; // Panel
Nils Diewalda944fab2015-04-08 21:02:04 +000014
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020015.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 Diewalda944fab2015-04-08 21:02:04 +0000285header {
Nils Diewalda944fab2015-04-08 21:02:04 +0000286 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200287 position: relative;
288 background-color: $light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200289 // padding: $base-padding 0 0 $base-padding;
290 padding-top: $standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200291 font-size: 10pt;
292 color: $nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200293
294 &.shifted {
295 padding-left: $logo-left-distance;
296 }
297
Akron7e5afce2020-08-25 15:50:19 +0200298 span.select {
299 display: inline-block;
300 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000301 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200302
Akron18660452017-11-13 11:06:24 +0100303 > span {
304 font-weight: bold;
305 }
Akron7e5afce2020-08-25 15:50:19 +0200306
Nils Diewalda944fab2015-04-08 21:02:04 +0000307 border: {
Akron7e5afce2020-08-25 15:50:19 +0200308 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000309 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200310 style: solid;
311 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000312 }
Akron7e5afce2020-08-25 15:50:19 +0200313
Nils Diewalda944fab2015-04-08 21:02:04 +0000314 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200315 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000316 border-color: $dark-green;
317 }
Akron7e5afce2020-08-25 15:50:19 +0200318
Nils Diewalda944fab2015-04-08 21:02:04 +0000319 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200320 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000321 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200322 text-align: center;
323 content: $fa-down;
324
Akron6bb71582016-06-10 20:41:08 +0200325 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200326 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100327 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200328 }
329 }
Akron7e5afce2020-08-25 15:50:19 +0200330
331 &.active {
332 border-color: $dark-orange;
333 &::after {
334 content: $fa-up;
335 }
Akron6bb71582016-06-10 20:41:08 +0200336 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000337 }
338
339 form {
Akron7e5afce2020-08-25 15:50:19 +0200340 position: relative;
341 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200342 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200343 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200344
345 &#searchform {
346 margin: 0 $standard-size-and-spacing;
347 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000348 }
Akron7e5afce2020-08-25 15:50:19 +0200349
350 input {
351 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200352 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000353
354 .button {
Akron7e5afce2020-08-25 15:50:19 +0200355 color: $nearly-white;
356 line-height: 2em;
357 margin-right: $right-distance;
358
Nils Diewald7c8ced22015-04-15 19:21:00 +0000359 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200360 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000361 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100362 >.tutorial{
363 margin-left: 10px;
364 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000365 }
Akron7e5afce2020-08-25 15:50:19 +0200366
Nils Diewald7c8ced22015-04-15 19:21:00 +0000367 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200368 position: absolute;
369 display: block;
370 top: 0;
371 right: 0;
372 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200373 width: 20px;
374 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000375 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200376 text-align: center;
377 height: 100%;
378 z-index: 20;
379
Akron189b3592016-01-04 20:56:46 +0100380 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200381 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100382 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000383 }
Akron7e5afce2020-08-25 15:50:19 +0200384
Nils Diewald7c8ced22015-04-15 19:21:00 +0000385 > a {
Akron7e5afce2020-08-25 15:50:19 +0200386 color: $nearly-white;
387 cursor: pointer;
388 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000389 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200390
Nils Diewald7c8ced22015-04-15 19:21:00 +0000391 > span {
Akron7e5afce2020-08-25 15:50:19 +0200392 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000393 }
394 }
Akron7e5afce2020-08-25 15:50:19 +0200395
Nils Diewald7c8ced22015-04-15 19:21:00 +0000396 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200397 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000398 }
Akron7e5afce2020-08-25 15:50:19 +0200399
Nils Diewald7c8ced22015-04-15 19:21:00 +0000400 > a.tutorial::after {
401 content: $fa-tutorial;
402 }
Akron7e5afce2020-08-25 15:50:19 +0200403
Nils Diewald7c8ced22015-04-15 19:21:00 +0000404 > a.question::after {
405 content: $fa-question;
406 }
Akron7e5afce2020-08-25 15:50:19 +0200407
Nils Diewald7c8ced22015-04-15 19:21:00 +0000408 > a.login::after {
409 content: $fa-login;
410 }
Akron7e5afce2020-08-25 15:50:19 +0200411
Akrone5ef4e02017-04-19 17:07:52 +0200412 > a.logout::after {
413 content: $fa-logout;
414 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000415 }
Akrondbf7bae2020-10-07 10:44:24 +0200416}
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 Repp57997402021-08-18 16:37:52 +0200429}