blob: 560d04ebe3b37ab506dbf3e8ea007ad7c16e310f [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 {
Uyen-Nhu Tran94f93b02024-11-20 20:17:57 +0100249 display: flex;
250 align-items: center;
251 gap: 5px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200252 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 Diewalda944fab2015-04-08 21:02:04 +0000287header {
Nils Diewalda944fab2015-04-08 21:02:04 +0000288 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200289 position: relative;
290 background-color: $light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200291 // padding: $base-padding 0 0 $base-padding;
292 padding-top: $standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200293 font-size: 10pt;
294 color: $nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200295
296 &.shifted {
297 padding-left: $logo-left-distance;
298 }
299
Akron7e5afce2020-08-25 15:50:19 +0200300 span.select {
301 display: inline-block;
302 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000303 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200304
Akron18660452017-11-13 11:06:24 +0100305 > span {
306 font-weight: bold;
307 }
Akron7e5afce2020-08-25 15:50:19 +0200308
Nils Diewalda944fab2015-04-08 21:02:04 +0000309 border: {
Akron7e5afce2020-08-25 15:50:19 +0200310 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000311 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200312 style: solid;
313 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000314 }
Akron7e5afce2020-08-25 15:50:19 +0200315
Nils Diewalda944fab2015-04-08 21:02:04 +0000316 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200317 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000318 border-color: $dark-green;
319 }
Akron7e5afce2020-08-25 15:50:19 +0200320
Nils Diewalda944fab2015-04-08 21:02:04 +0000321 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200322 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000323 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200324 text-align: center;
325 content: $fa-down;
326
Akron6bb71582016-06-10 20:41:08 +0200327 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200328 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100329 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200330 }
331 }
Akron7e5afce2020-08-25 15:50:19 +0200332
333 &.active {
334 border-color: $dark-orange;
335 &::after {
336 content: $fa-up;
337 }
Akron6bb71582016-06-10 20:41:08 +0200338 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000339 }
340
341 form {
Akron7e5afce2020-08-25 15:50:19 +0200342 position: relative;
343 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200344 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200345 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200346
347 &#searchform {
348 margin: 0 $standard-size-and-spacing;
349 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000350 }
Akron7e5afce2020-08-25 15:50:19 +0200351
352 input {
353 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200354 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000355
356 .button {
Akron7e5afce2020-08-25 15:50:19 +0200357 color: $nearly-white;
358 line-height: 2em;
359 margin-right: $right-distance;
360
Nils Diewald7c8ced22015-04-15 19:21:00 +0000361 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200362 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000363 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100364 >.tutorial{
365 margin-left: 10px;
366 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000367 }
Akron7e5afce2020-08-25 15:50:19 +0200368
Nils Diewald7c8ced22015-04-15 19:21:00 +0000369 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200370 position: absolute;
371 display: block;
372 top: 0;
373 right: 0;
374 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200375 width: 20px;
376 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000377 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200378 text-align: center;
379 height: 100%;
380 z-index: 20;
381
Akron189b3592016-01-04 20:56:46 +0100382 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200383 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100384 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000385 }
Akron7e5afce2020-08-25 15:50:19 +0200386
Nils Diewald7c8ced22015-04-15 19:21:00 +0000387 > a {
Akron7e5afce2020-08-25 15:50:19 +0200388 color: $nearly-white;
389 cursor: pointer;
390 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000391 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200392
Nils Diewald7c8ced22015-04-15 19:21:00 +0000393 > span {
Akron7e5afce2020-08-25 15:50:19 +0200394 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000395 }
396 }
Akron7e5afce2020-08-25 15:50:19 +0200397
Nils Diewald7c8ced22015-04-15 19:21:00 +0000398 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200399 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000400 }
Akron7e5afce2020-08-25 15:50:19 +0200401
Nils Diewald7c8ced22015-04-15 19:21:00 +0000402 > a.tutorial::after {
403 content: $fa-tutorial;
404 }
Akron7e5afce2020-08-25 15:50:19 +0200405
Nils Diewald7c8ced22015-04-15 19:21:00 +0000406 > a.question::after {
407 content: $fa-question;
408 }
Akron7e5afce2020-08-25 15:50:19 +0200409
Nils Diewald7c8ced22015-04-15 19:21:00 +0000410 > a.login::after {
411 content: $fa-login;
412 }
Akron7e5afce2020-08-25 15:50:19 +0200413
Akrone5ef4e02017-04-19 17:07:52 +0200414 > a.logout::after {
415 content: $fa-logout;
416 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000417 }
Akrondbf7bae2020-10-07 10:44:24 +0200418}
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 Repp57997402021-08-18 16:37:52 +0200431}