blob: a7851176587c89a43b95bcf78221a3ecd8801435 [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 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020055 }
56
57 .dropdown {
58 display: flex;
59 align-items: center;
60 margin-right: $standard-size-and-spacing;
61 position: relative;
62
63 &:hover .dropdown-content,
64 &:focus-within .dropdown-content {
65 display: block;
66 }
67
68 &:hover .dropdown-btn,
69 &:focus-within .dropdown-btn {
70 color: $nearly-white;
71 background-color: $middle-green;
72 }
73
74 &-btn {
75 height: $standard-size-and-spacing;
76 padding: 1.25rem 1rem;
77 color: $nearly-white;
78 transition: all .2s ease-in-out;
79 -o-transition: all .2s ease-in-out;
80 -moz-transition: all .2s ease-in-out;
81 -webkit-transition: all .2s ease-in-out;
82 cursor: pointer;
83
84 &.login::before {
85 @include icon-font;
86 content: $fa-login;
87 font-size: 150%;
88 }
89
90 &.profile::before {
91 @include icon-font;
92 content: $fa-user;
93 font-size: 150%;
94 }
95
96 h3.user-name {
97 padding-right: 2px;
98 // font-size: 85%;
99 font-size: 120%;
100 display: inline;
101 }
102 }
103
104 &-content {
105 display: none;
106 width: fit-content;
107 margin-top: $standard-size-and-spacing;
108 padding: 0;
109 background-color: $middle-green;
110 position: absolute;
111 top: 0;
112 z-index: 999;
113
114 &--left {
115 left: 0;
116 }
117
118 &--right {
119 right: 0;
120 padding: 1rem;
121 }
122
123 form.login {
124 display: flex;
125 flex-direction: column;
126 align-items: center;
127
128 legend {
129 padding-bottom: $base-padding;
130 color: $nearly-white;
131 }
132
133 input[type=text],
134 input[type=password] {
135 @include input-field;
136 margin-bottom: 8px;
137 height: 2rem;
138 }
139
140 button.btn-login {
141 width: 100%;
142 height: 2rem;
143 margin-bottom: 1rem;
144 background-color: $dark-green;
145 color: $nearly-white;
146 font-size: 120%;
147 border: none;
148 border-color: unset;
149 border-radius: 0;
150 text-shadow: none;
151 font-weight: normal;
152 top: unset;
153 transition: all .2s ease-in-out;
154 -o-transition: all .2s ease-in-out;
155 -moz-transition: all .2s ease-in-out;
156 -webkit-transition: all .2s ease-in-out;
157
158 &::after {
159 content: $fa-login;
160 }
161
162 &:hover {
163 // color: $dark-orange;
164 background-color: $dark-orange;
165 }
166 }
167 }
168
169 p {
170 margin: 0;
171 font-size: .7rem;
172 color: $nearly-white;
173
174 a {
175 color: $dark-orange;
176
177 &:hover {
178 color: $middle-orange;
179 }
180 }
181 }
182 }
183
184 &-item {
Uyen-Nhu Tran94f93b02024-11-20 20:17:57 +0100185 display: flex;
186 align-items: center;
187 gap: 5px;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200188 padding: .75rem;
189 font-size: 1rem;
190 color: $nearly-white;
191 transition: all .2s ease-in-out;
192 -o-transition: all .2s ease-in-out;
193 -moz-transition: all .2s ease-in-out;
194 -webkit-transition: all .2s ease-in-out;
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100195 cursor: pointer;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200196
197 &:hover {
198 color: $nearly-white;
199 background-color: $light-green;
200 }
201
202 &.logout::before {
203 @include icon-font;
204 content: $fa-logout;
205 font-size: 1rem;
206 }
207
208 span {
209 display: inline;
210 }
211 }
212 }
213
214 .burger-icon {
215 display: none;
216
217 &::after {
218 @include icon-font;
219 content: $fa-bars;
220 }
221 }
222}
223
Nils Diewalda944fab2015-04-08 21:02:04 +0000224header {
Nils Diewalda944fab2015-04-08 21:02:04 +0000225 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200226 position: relative;
227 background-color: $light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200228 // padding: $base-padding 0 0 $base-padding;
229 padding-top: $standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200230 font-size: 10pt;
231 color: $nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200232
233 &.shifted {
234 padding-left: $logo-left-distance;
235 }
236
Akron7e5afce2020-08-25 15:50:19 +0200237 span.select {
238 display: inline-block;
239 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000240 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200241
Akron18660452017-11-13 11:06:24 +0100242 > span {
243 font-weight: bold;
244 }
Akron7e5afce2020-08-25 15:50:19 +0200245
Nils Diewalda944fab2015-04-08 21:02:04 +0000246 border: {
Akron7e5afce2020-08-25 15:50:19 +0200247 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000248 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200249 style: solid;
250 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000251 }
Akron7e5afce2020-08-25 15:50:19 +0200252
Nils Diewalda944fab2015-04-08 21:02:04 +0000253 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200254 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000255 border-color: $dark-green;
256 }
Akron7e5afce2020-08-25 15:50:19 +0200257
Nils Diewalda944fab2015-04-08 21:02:04 +0000258 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200259 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000260 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200261 text-align: center;
262 content: $fa-down;
263
Akron6bb71582016-06-10 20:41:08 +0200264 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200265 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100266 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200267 }
268 }
Akron7e5afce2020-08-25 15:50:19 +0200269
270 &.active {
271 border-color: $dark-orange;
272 &::after {
273 content: $fa-up;
274 }
Akron6bb71582016-06-10 20:41:08 +0200275 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000276 }
277
278 form {
Akron7e5afce2020-08-25 15:50:19 +0200279 position: relative;
280 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200281 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200282 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200283
284 &#searchform {
285 margin: 0 $standard-size-and-spacing;
286 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000287 }
Akron7e5afce2020-08-25 15:50:19 +0200288
289 input {
290 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200291 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000292
293 .button {
Akron7e5afce2020-08-25 15:50:19 +0200294 color: $nearly-white;
295 line-height: 2em;
296 margin-right: $right-distance;
297
Nils Diewald7c8ced22015-04-15 19:21:00 +0000298 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200299 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000300 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100301 >.tutorial{
302 margin-left: 10px;
303 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000304 }
Akron7e5afce2020-08-25 15:50:19 +0200305
Nils Diewald7c8ced22015-04-15 19:21:00 +0000306 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200307 position: absolute;
308 display: block;
309 top: 0;
310 right: 0;
311 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200312 width: 20px;
313 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000314 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200315 text-align: center;
316 height: 100%;
317 z-index: 20;
318
Akron189b3592016-01-04 20:56:46 +0100319 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200320 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100321 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000322 }
Akron7e5afce2020-08-25 15:50:19 +0200323
Nils Diewald7c8ced22015-04-15 19:21:00 +0000324 > a {
Akron7e5afce2020-08-25 15:50:19 +0200325 color: $nearly-white;
326 cursor: pointer;
327 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000328 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200329
Nils Diewald7c8ced22015-04-15 19:21:00 +0000330 > span {
Akron7e5afce2020-08-25 15:50:19 +0200331 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000332 }
333 }
Akron7e5afce2020-08-25 15:50:19 +0200334
Nils Diewald7c8ced22015-04-15 19:21:00 +0000335 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200336 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000337 }
Akron7e5afce2020-08-25 15:50:19 +0200338
Uyen-Nhu Tran43714662025-01-13 23:09:37 +0100339 // > a.tutorial::after {
340 // content: $fa-tutorial;
341 // }
Akron7e5afce2020-08-25 15:50:19 +0200342
Nils Diewald7c8ced22015-04-15 19:21:00 +0000343 > a.question::after {
344 content: $fa-question;
345 }
Akron7e5afce2020-08-25 15:50:19 +0200346
Nils Diewald7c8ced22015-04-15 19:21:00 +0000347 > a.login::after {
348 content: $fa-login;
349 }
Akron7e5afce2020-08-25 15:50:19 +0200350
Akrone5ef4e02017-04-19 17:07:52 +0200351 > a.logout::after {
352 content: $fa-logout;
353 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000354 }
Akrondbf7bae2020-10-07 10:44:24 +0200355}
356
357
358.query.button-group > span {
359 border-top-width: 0;
360 border-color: white;
361
362 &:first-child {
363 border-top-left-radius: 0;
364 }
365 &:last-child {
366 border-top-right-radius: 0;
367 }
Leo Repp57997402021-08-18 16:37:52 +0200368}