blob: d84ea719cf169512dd907ace575318e147e59e11 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akronbaba3b62021-11-22 17:24:48 +01002@use 'sass:math';
Akron7636edf2025-11-04 12:44:53 +01003@use "../util";
4@use "hint"; // Hint specific menu list
5@use "containermenu"; // Container menu specific
6@use "searchbar"; // The search bar
7@use "vc"; // Virtual corpus builder
8@use "statistics"; // Statistics for VCs
9@use "datepicker"; // Datepicker
10@use "querylanguage"; // Query language
11@use "pipe"; // Pipe
12@use "state"; // State
13@use "panel"; // Panel
14@use "../base/colors";
15@use "../base/icons";
16@use "../base/lengths";
17@use "../base/mixins";
Nils Diewalda944fab2015-04-08 21:02:04 +000018
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020019.navbar {
20 width: 100%;
Akron7636edf2025-11-04 12:44:53 +010021 height: lengths.$standard-size-and-spacing;
22 background-color: colors.$dark-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020023 display: flex;
24 flex-direction: column;
25 justify-content: center;
26 align-items: end;
27 // overflow: hidden;
28 // position: fixed;
29 position: absolute;
30 top: 0;
31 z-index: 999;
32 transition: top .3s ease-in-out;
33 -o-transition: top .3s ease-in-out;
34 -moz-transition: top .3s ease-in-out;
35 -webkit-transition: top .3s ease-in-out;
36
37 &-group {
38 display: flex;
39 align-items: center;
40
41 h3.nav-link {
Akron7636edf2025-11-04 12:44:53 +010042 height: lengths.$standard-size-and-spacing;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020043 font-size: 1rem;
44 transition: all .2s ease-in-out;
45 -o-transition: all .2s ease-in-out;
46 -moz-transition: all .2s ease-in-out;
47 -webkit-transition: all .2s ease-in-out;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010048 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020049
50 &:hover {
Akron7636edf2025-11-04 12:44:53 +010051 background-color: colors.$middle-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020052 }
53
54 a {
55 display: block;
56 padding: 1.5rem 1rem;
Akron7636edf2025-11-04 12:44:53 +010057 color: colors.$nearly-white;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010058 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020059 }
60 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020061 }
62
63 .dropdown {
64 display: flex;
65 align-items: center;
Akron7636edf2025-11-04 12:44:53 +010066 margin-right: lengths.$standard-size-and-spacing;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020067 position: relative;
68
69 &:hover .dropdown-content,
70 &:focus-within .dropdown-content {
71 display: block;
72 }
73
74 &:hover .dropdown-btn,
75 &:focus-within .dropdown-btn {
Akron7636edf2025-11-04 12:44:53 +010076 color: colors.$nearly-white;
77 background-color: colors.$middle-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020078 }
79
80 &-btn {
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +010081 display: flex;
82 align-items: center;
Akron7636edf2025-11-04 12:44:53 +010083 column-gap: lengths.$base-padding;
84 height: lengths.$standard-size-and-spacing;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020085 padding: 1.25rem 1rem;
Akron7636edf2025-11-04 12:44:53 +010086 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020087 transition: all .2s ease-in-out;
88 -o-transition: all .2s ease-in-out;
89 -moz-transition: all .2s ease-in-out;
90 -webkit-transition: all .2s ease-in-out;
91 cursor: pointer;
92
93 &.login::before {
Akron7636edf2025-11-04 12:44:53 +010094 @include mixins.icon-font;
95 content: icons.$fa-login;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020096 font-size: 150%;
97 }
98
99 &.profile::before {
Akron7636edf2025-11-04 12:44:53 +0100100 @include mixins.icon-font;
101 content: icons.$fa-user;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200102 font-size: 150%;
103 }
104
105 h3.user-name {
106 padding-right: 2px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200107 font-size: 120%;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100108 display: inline-block;
109 max-width: 6ch;
110 overflow: hidden;
111 text-overflow: ellipsis;
112 white-space: nowrap;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200113 }
114 }
115
116 &-content {
117 display: none;
118 width: fit-content;
Akron7636edf2025-11-04 12:44:53 +0100119 margin-top: lengths.$standard-size-and-spacing;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200120 padding: 0;
Akron7636edf2025-11-04 12:44:53 +0100121 background-color: colors.$middle-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200122 position: absolute;
123 top: 0;
124 z-index: 999;
125
126 &--left {
127 left: 0;
128 }
129
130 &--right {
131 right: 0;
132 padding: 1rem;
133 }
134
135 form.login {
136 display: flex;
137 flex-direction: column;
138 align-items: center;
139
140 legend {
Akron7636edf2025-11-04 12:44:53 +0100141 padding-bottom: lengths.$base-padding;
142 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200143 }
144
145 input[type=text],
146 input[type=password] {
Akron7636edf2025-11-04 12:44:53 +0100147 @include mixins.input-field;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200148 margin-bottom: 8px;
149 height: 2rem;
150 }
151
152 button.btn-login {
153 width: 100%;
154 height: 2rem;
155 margin-bottom: 1rem;
Akron7636edf2025-11-04 12:44:53 +0100156 background-color: colors.$dark-green;
157 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200158 font-size: 120%;
159 border: none;
160 border-color: unset;
161 border-radius: 0;
162 text-shadow: none;
163 font-weight: normal;
164 top: unset;
165 transition: all .2s ease-in-out;
166 -o-transition: all .2s ease-in-out;
167 -moz-transition: all .2s ease-in-out;
168 -webkit-transition: all .2s ease-in-out;
169
170 &::after {
Akron7636edf2025-11-04 12:44:53 +0100171 content: icons.$fa-login;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200172 }
173
174 &:hover {
175 // color: $dark-orange;
Akron7636edf2025-11-04 12:44:53 +0100176 background-color: colors.$dark-orange;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200177 }
178 }
179 }
180
181 p {
182 margin: 0;
183 font-size: .7rem;
Akron7636edf2025-11-04 12:44:53 +0100184 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200185
186 a {
Akron7636edf2025-11-04 12:44:53 +0100187 color: colors.$dark-orange;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200188
189 &:hover {
Akron7636edf2025-11-04 12:44:53 +0100190 color: colors.$middle-orange;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200191 }
192 }
193 }
194 }
195
196 &-item {
Uyen-Nhu Tran94f93b02024-11-20 20:17:57 +0100197 display: flex;
198 align-items: center;
199 gap: 5px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200200 padding: .75rem;
201 font-size: 1rem;
Akron7636edf2025-11-04 12:44:53 +0100202 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200203 transition: all .2s ease-in-out;
204 -o-transition: all .2s ease-in-out;
205 -moz-transition: all .2s ease-in-out;
206 -webkit-transition: all .2s ease-in-out;
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100207 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200208
209 &:hover {
Akron7636edf2025-11-04 12:44:53 +0100210 color: colors.$nearly-white;
211 background-color: colors.$light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200212 }
213
214 &.logout::before {
Akron7636edf2025-11-04 12:44:53 +0100215 @include mixins.icon-font;
216 content: icons.$fa-logout;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200217 font-size: 1rem;
218 }
219
220 span {
221 display: inline;
222 }
223 }
224 }
225
226 .burger-icon {
227 display: none;
228
229 &::after {
Akron7636edf2025-11-04 12:44:53 +0100230 @include mixins.icon-font;
231 content: icons.$fa-bars;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200232 }
233 }
234}
235
Nils Diewalda944fab2015-04-08 21:02:04 +0000236header {
Akron7636edf2025-11-04 12:44:53 +0100237 @include mixins.box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200238 position: relative;
Akron7636edf2025-11-04 12:44:53 +0100239 background-color: colors.$light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200240 // padding: $base-padding 0 0 $base-padding;
Akron7636edf2025-11-04 12:44:53 +0100241 padding-top: lengths.$standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200242 font-size: 10pt;
Akron7636edf2025-11-04 12:44:53 +0100243 color: colors.$nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200244
245 &.shifted {
Akron7636edf2025-11-04 12:44:53 +0100246 padding-left: lengths.$logo-left-distance;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200247 }
248
Akron7e5afce2020-08-25 15:50:19 +0200249 span.select {
250 display: inline-block;
251 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000252 line-height: 1.8em;
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
Akronc6c68212025-10-22 14:33:51 +0200261 > span {
262 font-weight: bold;
263 }
264
Nils Diewalda944fab2015-04-08 21:02:04 +0000265 &:hover {
Akron7636edf2025-11-04 12:44:53 +0100266 color: colors.$dark-green;
267 border-color: colors.$dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000268 }
Akron7e5afce2020-08-25 15:50:19 +0200269
Nils Diewalda944fab2015-04-08 21:02:04 +0000270 &::after {
Akron7636edf2025-11-04 12:44:53 +0100271 @include mixins.icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000272 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200273 text-align: center;
Akron7636edf2025-11-04 12:44:53 +0100274 content: icons.$fa-down;
Akron7e5afce2020-08-25 15:50:19 +0200275
Akron6bb71582016-06-10 20:41:08 +0200276 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200277 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100278 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200279 }
280 }
Akron7e5afce2020-08-25 15:50:19 +0200281
282 &.active {
Akron7636edf2025-11-04 12:44:53 +0100283 border-color: colors.$dark-orange;
Akron7e5afce2020-08-25 15:50:19 +0200284 &::after {
Akron7636edf2025-11-04 12:44:53 +0100285 content: icons.$fa-up;
Akron7e5afce2020-08-25 15:50:19 +0200286 }
Akron6bb71582016-06-10 20:41:08 +0200287 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000288 }
289
290 form {
Akron7e5afce2020-08-25 15:50:19 +0200291 position: relative;
292 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200293 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200294 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200295
296 &#searchform {
Akron7636edf2025-11-04 12:44:53 +0100297 margin: 0 lengths.$standard-size-and-spacing;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200298 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000299 }
Akron7e5afce2020-08-25 15:50:19 +0200300
301 input {
Akron7636edf2025-11-04 12:44:53 +0100302 @include mixins.input-field;
Akron1120a582017-10-17 12:29:16 +0200303 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000304
305 .button {
Akron7636edf2025-11-04 12:44:53 +0100306 color: colors.$nearly-white;
Akron7e5afce2020-08-25 15:50:19 +0200307 line-height: 2em;
Akron7636edf2025-11-04 12:44:53 +0100308 margin-right: lengths.$right-distance;
Akron7e5afce2020-08-25 15:50:19 +0200309
Nils Diewald7c8ced22015-04-15 19:21:00 +0000310 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200311 float: right;
Uyen-Nhu Trana17b08d2025-02-18 19:14:55 +0100312 // display: inline-block;
313 // >.tutorial{
314 // margin-left: 10px;
315 // }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000316 }
Akron7e5afce2020-08-25 15:50:19 +0200317
Nils Diewald7c8ced22015-04-15 19:21:00 +0000318 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200319 position: absolute;
320 display: block;
321 top: 0;
322 right: 0;
323 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200324 width: 20px;
325 // width: math.div($standard-margin,2);
Akron7636edf2025-11-04 12:44:53 +0100326 background-color: colors.$dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200327 text-align: center;
328 height: 100%;
329 z-index: 20;
330
Akron189b3592016-01-04 20:56:46 +0100331 > a:hover {
Akron7636edf2025-11-04 12:44:53 +0100332 color: colors.$nearly-white
Akron189b3592016-01-04 20:56:46 +0100333 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000334 }
Akron7e5afce2020-08-25 15:50:19 +0200335
Nils Diewald7c8ced22015-04-15 19:21:00 +0000336 > a {
Akron7636edf2025-11-04 12:44:53 +0100337 color: colors.$nearly-white;
Akron7e5afce2020-08-25 15:50:19 +0200338 cursor: pointer;
339 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000340 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200341
Nils Diewald7c8ced22015-04-15 19:21:00 +0000342 > span {
Akron7636edf2025-11-04 12:44:53 +0100343 @include mixins.blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000344 }
345 }
Akron7e5afce2020-08-25 15:50:19 +0200346
Nils Diewald7c8ced22015-04-15 19:21:00 +0000347 > a::after {
Akron7636edf2025-11-04 12:44:53 +0100348 @include mixins.icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000349 }
Akron7e5afce2020-08-25 15:50:19 +0200350
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100351 // > a.tutorial::after {
352 // content: $fa-tutorial;
353 // }
Akron7e5afce2020-08-25 15:50:19 +0200354
Nils Diewald7c8ced22015-04-15 19:21:00 +0000355 > a.question::after {
Akron7636edf2025-11-04 12:44:53 +0100356 content: icons.$fa-question;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000357 }
Akron7e5afce2020-08-25 15:50:19 +0200358
Nils Diewald7c8ced22015-04-15 19:21:00 +0000359 > a.login::after {
Akron7636edf2025-11-04 12:44:53 +0100360 content: icons.$fa-login;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000361 }
Akron7e5afce2020-08-25 15:50:19 +0200362
Akrone5ef4e02017-04-19 17:07:52 +0200363 > a.logout::after {
Akron7636edf2025-11-04 12:44:53 +0100364 content: icons.$fa-logout;
Akrone5ef4e02017-04-19 17:07:52 +0200365 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000366 }
Akrondbf7bae2020-10-07 10:44:24 +0200367}
368
369
370.query.button-group > span {
371 border-top-width: 0;
372 border-color: white;
373
374 &:first-child {
375 border-top-left-radius: 0;
376 }
377 &:last-child {
378 border-top-right-radius: 0;
379 }
Leo Repp57997402021-08-18 16:37:52 +0200380}