blob: 32b0812e42c8f357d70c1a77554c333792753761 [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;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010044 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020045
46 &:hover {
47 background-color: $middle-green;
48 }
49
50 a {
51 display: block;
52 padding: 1.5rem 1rem;
53 color: $nearly-white;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010054 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020055 }
56 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020057 }
58
59 .dropdown {
60 display: flex;
61 align-items: center;
62 margin-right: $standard-size-and-spacing;
63 position: relative;
64
65 &:hover .dropdown-content,
66 &:focus-within .dropdown-content {
67 display: block;
68 }
69
70 &:hover .dropdown-btn,
71 &:focus-within .dropdown-btn {
72 color: $nearly-white;
73 background-color: $middle-green;
74 }
75
76 &-btn {
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010077 display: flex;
78 align-items: center;
79 column-gap: $base-padding;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020080 height: $standard-size-and-spacing;
81 padding: 1.25rem 1rem;
82 color: $nearly-white;
83 transition: all .2s ease-in-out;
84 -o-transition: all .2s ease-in-out;
85 -moz-transition: all .2s ease-in-out;
86 -webkit-transition: all .2s ease-in-out;
87 cursor: pointer;
88
89 &.login::before {
90 @include icon-font;
91 content: $fa-login;
92 font-size: 150%;
93 }
94
95 &.profile::before {
96 @include icon-font;
97 content: $fa-user;
98 font-size: 150%;
99 }
100
101 h3.user-name {
102 padding-right: 2px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200103 font-size: 120%;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100104 display: inline-block;
105 max-width: 6ch;
106 overflow: hidden;
107 text-overflow: ellipsis;
108 white-space: nowrap;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200109 }
110 }
111
112 &-content {
113 display: none;
114 width: fit-content;
115 margin-top: $standard-size-and-spacing;
116 padding: 0;
117 background-color: $middle-green;
118 position: absolute;
119 top: 0;
120 z-index: 999;
121
122 &--left {
123 left: 0;
124 }
125
126 &--right {
127 right: 0;
128 padding: 1rem;
129 }
130
131 form.login {
132 display: flex;
133 flex-direction: column;
134 align-items: center;
135
136 legend {
137 padding-bottom: $base-padding;
138 color: $nearly-white;
139 }
140
141 input[type=text],
142 input[type=password] {
143 @include input-field;
144 margin-bottom: 8px;
145 height: 2rem;
146 }
147
148 button.btn-login {
149 width: 100%;
150 height: 2rem;
151 margin-bottom: 1rem;
152 background-color: $dark-green;
153 color: $nearly-white;
154 font-size: 120%;
155 border: none;
156 border-color: unset;
157 border-radius: 0;
158 text-shadow: none;
159 font-weight: normal;
160 top: unset;
161 transition: all .2s ease-in-out;
162 -o-transition: all .2s ease-in-out;
163 -moz-transition: all .2s ease-in-out;
164 -webkit-transition: all .2s ease-in-out;
165
166 &::after {
167 content: $fa-login;
168 }
169
170 &:hover {
171 // color: $dark-orange;
172 background-color: $dark-orange;
173 }
174 }
175 }
176
177 p {
178 margin: 0;
179 font-size: .7rem;
180 color: $nearly-white;
181
182 a {
183 color: $dark-orange;
184
185 &:hover {
186 color: $middle-orange;
187 }
188 }
189 }
190 }
191
192 &-item {
Uyen-Nhu Tran94f93b02024-11-20 20:17:57 +0100193 display: flex;
194 align-items: center;
195 gap: 5px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200196 padding: .75rem;
197 font-size: 1rem;
198 color: $nearly-white;
199 transition: all .2s ease-in-out;
200 -o-transition: all .2s ease-in-out;
201 -moz-transition: all .2s ease-in-out;
202 -webkit-transition: all .2s ease-in-out;
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100203 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200204
205 &:hover {
206 color: $nearly-white;
207 background-color: $light-green;
208 }
209
210 &.logout::before {
211 @include icon-font;
212 content: $fa-logout;
213 font-size: 1rem;
214 }
215
216 span {
217 display: inline;
218 }
219 }
220 }
221
222 .burger-icon {
223 display: none;
224
225 &::after {
226 @include icon-font;
227 content: $fa-bars;
228 }
229 }
230}
231
Nils Diewalda944fab2015-04-08 21:02:04 +0000232header {
Nils Diewalda944fab2015-04-08 21:02:04 +0000233 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200234 position: relative;
235 background-color: $light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200236 // padding: $base-padding 0 0 $base-padding;
237 padding-top: $standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200238 font-size: 10pt;
239 color: $nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200240
241 &.shifted {
242 padding-left: $logo-left-distance;
243 }
244
Akron7e5afce2020-08-25 15:50:19 +0200245 span.select {
246 display: inline-block;
247 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000248 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200249
Akron18660452017-11-13 11:06:24 +0100250 > span {
251 font-weight: bold;
252 }
Akron7e5afce2020-08-25 15:50:19 +0200253
Nils Diewalda944fab2015-04-08 21:02:04 +0000254 border: {
Akron7e5afce2020-08-25 15:50:19 +0200255 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000256 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200257 style: solid;
258 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000259 }
Akron7e5afce2020-08-25 15:50:19 +0200260
Nils Diewalda944fab2015-04-08 21:02:04 +0000261 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200262 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000263 border-color: $dark-green;
264 }
Akron7e5afce2020-08-25 15:50:19 +0200265
Nils Diewalda944fab2015-04-08 21:02:04 +0000266 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200267 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000268 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200269 text-align: center;
270 content: $fa-down;
271
Akron6bb71582016-06-10 20:41:08 +0200272 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200273 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100274 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200275 }
276 }
Akron7e5afce2020-08-25 15:50:19 +0200277
278 &.active {
279 border-color: $dark-orange;
280 &::after {
281 content: $fa-up;
282 }
Akron6bb71582016-06-10 20:41:08 +0200283 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000284 }
285
286 form {
Akron7e5afce2020-08-25 15:50:19 +0200287 position: relative;
288 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200289 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200290 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200291
292 &#searchform {
293 margin: 0 $standard-size-and-spacing;
294 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000295 }
Akron7e5afce2020-08-25 15:50:19 +0200296
297 input {
298 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200299 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000300
301 .button {
Akron7e5afce2020-08-25 15:50:19 +0200302 color: $nearly-white;
303 line-height: 2em;
304 margin-right: $right-distance;
305
Nils Diewald7c8ced22015-04-15 19:21:00 +0000306 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200307 float: right;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100308 // display: inline-block;
309 // >.tutorial{
310 // margin-left: 10px;
311 // }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000312 }
Akron7e5afce2020-08-25 15:50:19 +0200313
Nils Diewald7c8ced22015-04-15 19:21:00 +0000314 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200315 position: absolute;
316 display: block;
317 top: 0;
318 right: 0;
319 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200320 width: 20px;
321 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000322 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200323 text-align: center;
324 height: 100%;
325 z-index: 20;
326
Akron189b3592016-01-04 20:56:46 +0100327 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200328 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100329 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000330 }
Akron7e5afce2020-08-25 15:50:19 +0200331
Nils Diewald7c8ced22015-04-15 19:21:00 +0000332 > a {
Akron7e5afce2020-08-25 15:50:19 +0200333 color: $nearly-white;
334 cursor: pointer;
335 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000336 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200337
Nils Diewald7c8ced22015-04-15 19:21:00 +0000338 > span {
Akron7e5afce2020-08-25 15:50:19 +0200339 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000340 }
341 }
Akron7e5afce2020-08-25 15:50:19 +0200342
Nils Diewald7c8ced22015-04-15 19:21:00 +0000343 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200344 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000345 }
Akron7e5afce2020-08-25 15:50:19 +0200346
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100347 // > a.tutorial::after {
348 // content: $fa-tutorial;
349 // }
Akron7e5afce2020-08-25 15:50:19 +0200350
Nils Diewald7c8ced22015-04-15 19:21:00 +0000351 > a.question::after {
352 content: $fa-question;
353 }
Akron7e5afce2020-08-25 15:50:19 +0200354
Nils Diewald7c8ced22015-04-15 19:21:00 +0000355 > a.login::after {
356 content: $fa-login;
357 }
Akron7e5afce2020-08-25 15:50:19 +0200358
Akrone5ef4e02017-04-19 17:07:52 +0200359 > a.logout::after {
360 content: $fa-logout;
361 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000362 }
Akrondbf7bae2020-10-07 10:44:24 +0200363}
364
365
366.query.button-group > span {
367 border-top-width: 0;
368 border-color: white;
369
370 &:first-child {
371 border-top-left-radius: 0;
372 }
373 &:last-child {
374 border-top-right-radius: 0;
375 }
Leo Repp57997402021-08-18 16:37:52 +0200376}