blob: 8cb8e0fa2804104d3772f61f54b8de068f849ca0 [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;
195
196 &:hover {
197 color: $nearly-white;
198 background-color: $light-green;
199 }
200
201 &.logout::before {
202 @include icon-font;
203 content: $fa-logout;
204 font-size: 1rem;
205 }
206
207 span {
208 display: inline;
209 }
210 }
211 }
212
213 .burger-icon {
214 display: none;
215
216 &::after {
217 @include icon-font;
218 content: $fa-bars;
219 }
220 }
221}
222
Nils Diewalda944fab2015-04-08 21:02:04 +0000223header {
Nils Diewalda944fab2015-04-08 21:02:04 +0000224 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +0200225 position: relative;
226 background-color: $light-green;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200227 // padding: $base-padding 0 0 $base-padding;
228 padding-top: $standard-size-and-spacing;
Akron7e5afce2020-08-25 15:50:19 +0200229 font-size: 10pt;
230 color: $nearly-white;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200231
232 &.shifted {
233 padding-left: $logo-left-distance;
234 }
235
Akron7e5afce2020-08-25 15:50:19 +0200236 span.select {
237 display: inline-block;
238 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000239 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200240
Akron18660452017-11-13 11:06:24 +0100241 > span {
242 font-weight: bold;
243 }
Akron7e5afce2020-08-25 15:50:19 +0200244
Nils Diewalda944fab2015-04-08 21:02:04 +0000245 border: {
Akron7e5afce2020-08-25 15:50:19 +0200246 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000247 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200248 style: solid;
249 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000250 }
Akron7e5afce2020-08-25 15:50:19 +0200251
Nils Diewalda944fab2015-04-08 21:02:04 +0000252 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200253 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000254 border-color: $dark-green;
255 }
Akron7e5afce2020-08-25 15:50:19 +0200256
Nils Diewalda944fab2015-04-08 21:02:04 +0000257 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200258 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000259 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200260 text-align: center;
261 content: $fa-down;
262
Akron6bb71582016-06-10 20:41:08 +0200263 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200264 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100265 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200266 }
267 }
Akron7e5afce2020-08-25 15:50:19 +0200268
269 &.active {
270 border-color: $dark-orange;
271 &::after {
272 content: $fa-up;
273 }
Akron6bb71582016-06-10 20:41:08 +0200274 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000275 }
276
277 form {
Akron7e5afce2020-08-25 15:50:19 +0200278 position: relative;
279 display: block;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200280 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200281 min-height: 2.7em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200282
283 &#searchform {
284 margin: 0 $standard-size-and-spacing;
285 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000286 }
Akron7e5afce2020-08-25 15:50:19 +0200287
288 input {
289 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200290 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000291
292 .button {
Akron7e5afce2020-08-25 15:50:19 +0200293 color: $nearly-white;
294 line-height: 2em;
295 margin-right: $right-distance;
296
Nils Diewald7c8ced22015-04-15 19:21:00 +0000297 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200298 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000299 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100300 >.tutorial{
301 margin-left: 10px;
302 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000303 }
Akron7e5afce2020-08-25 15:50:19 +0200304
Nils Diewald7c8ced22015-04-15 19:21:00 +0000305 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200306 position: absolute;
307 display: block;
308 top: 0;
309 right: 0;
310 margin-right: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200311 width: 20px;
312 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000313 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200314 text-align: center;
315 height: 100%;
316 z-index: 20;
317
Akron189b3592016-01-04 20:56:46 +0100318 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200319 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100320 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000321 }
Akron7e5afce2020-08-25 15:50:19 +0200322
Nils Diewald7c8ced22015-04-15 19:21:00 +0000323 > a {
Akron7e5afce2020-08-25 15:50:19 +0200324 color: $nearly-white;
325 cursor: pointer;
326 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000327 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200328
Nils Diewald7c8ced22015-04-15 19:21:00 +0000329 > span {
Akron7e5afce2020-08-25 15:50:19 +0200330 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000331 }
332 }
Akron7e5afce2020-08-25 15:50:19 +0200333
Nils Diewald7c8ced22015-04-15 19:21:00 +0000334 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200335 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000336 }
Akron7e5afce2020-08-25 15:50:19 +0200337
Nils Diewald7c8ced22015-04-15 19:21:00 +0000338 > a.tutorial::after {
339 content: $fa-tutorial;
340 }
Akron7e5afce2020-08-25 15:50:19 +0200341
Nils Diewald7c8ced22015-04-15 19:21:00 +0000342 > a.question::after {
343 content: $fa-question;
344 }
Akron7e5afce2020-08-25 15:50:19 +0200345
Nils Diewald7c8ced22015-04-15 19:21:00 +0000346 > a.login::after {
347 content: $fa-login;
348 }
Akron7e5afce2020-08-25 15:50:19 +0200349
Akrone5ef4e02017-04-19 17:07:52 +0200350 > a.logout::after {
351 content: $fa-logout;
352 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000353 }
Akrondbf7bae2020-10-07 10:44:24 +0200354}
355
356
357.query.button-group > span {
358 border-top-width: 0;
359 border-color: white;
360
361 &:first-child {
362 border-top-left-radius: 0;
363 }
364 &:last-child {
365 border-top-right-radius: 0;
366 }
Leo Repp57997402021-08-18 16:37:52 +0200367}