blob: dcae2d243df7a4286bee25a3783a4c5f2b9d4c50 [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
Nils Diewalda944fab2015-04-08 21:02:04 +000013
14header {
Nils Diewalda944fab2015-04-08 21:02:04 +000015 @include box-sizing-box();
Akron7e5afce2020-08-25 15:50:19 +020016 position: relative;
17 background-color: $light-green;
Uyen-Nhu Tranb30a5a32024-04-10 01:17:24 +020018 // padding: $base-padding 0 0 $base-padding;
19 padding-top: 4rem;
Akron7e5afce2020-08-25 15:50:19 +020020 font-size: 10pt;
21 color: $nearly-white;
22
Uyen-Nhu Tranb30a5a32024-04-10 01:17:24 +020023 .navbar {
24 width: 100%;
25 height: 4rem;
26 background-color: $dark-green;
27 display: flex;
28 flex-direction: column;
29 justify-content: center;
30 align-items: end;
31 // overflow: hidden;
32 position: fixed;
33 top: 0;
34 z-index: 999;
35 transition: top .3s ease-in-out;
36 -o-transition: top .3s ease-in-out;
37 -moz-transition: top .3s ease-in-out;
38 -webkit-transition: top .3s ease-in-out;
39
40 &-group {
41 display: flex;
42 align-items: baseline;
43
44 h3.news {
45 height: 4rem;
46 font-size: 120%;
47 transition: all .2s ease-in-out;
48 -o-transition: all .2s ease-in-out;
49 -moz-transition: all .2s ease-in-out;
50 -webkit-transition: all .2s ease-in-out;
51
52 &:hover {
53 background-color: $middle-green;
54 }
55
56 a {
57 display: block;
58 padding: 1.5rem 1rem;
59 color: $nearly-white;
60 }
61 }
62
63 fieldset.fieldset-login {
64 display: flex;
65 flex-direction: column;
66 margin-right: 4rem;
67 padding: 0;
68 min-inline-size: unset;
69 border: unset;
70
71 form.login {
72 display: flex;
73 align-items: center;
74
75 input[type=text],
76 input[type=password] {
77 @include input-field;
78 margin-right: 8px;
79 height: 1.5rem;
80 }
81
82 button.btn-login {
83 // width: 3rem;
84 // height: 3rem;
85 // background-color: $dark-green;
86 background-color: unset;
87 color: $nearly-white;
88 // padding: .75rem 1rem;
89 font-size: 180%;
90 border: none;
91 border-color: unset;
92 border-radius: 0;
93 text-shadow: none;
94 font-weight: normal;
95 top: unset;
96 transition: all .2s ease-in-out;
97 -o-transition: all .2s ease-in-out;
98 -moz-transition: all .2s ease-in-out;
99 -webkit-transition: all .2s ease-in-out;
100
101 &::after {
102 content: $fa-login;
103 }
104
105 &:hover {
106 // background-color: $middle-green;
107 color: $dark-orange;
108 }
109 }
110 }
111
112 p {
113 margin: 0;
114 font-size: .7rem;
115
116 a {
117 color: $dark-orange;
118
119 &:hover {
120 color: $middle-orange;
121 }
122 }
123 }
124 }
125 }
126
127 .dropdown {
128 display: flex;
129 align-items: center;
130 margin-right: 4rem;
131 position: relative;
132
133 &:hover .dropdown-content {
134 display: block;
135 }
136
137 &:hover .dropdown-btn {
138 background-color: $middle-green;
139 }
140
141 &-btn {
142 height: 4rem;
143 // padding: 1rem;
144 padding: 1.5rem 1rem;
145 // font-size: 180% !important;
146 color: $nearly-white;
147 transition: all .2s ease-in-out;
148 -o-transition: all .2s ease-in-out;
149 -moz-transition: all .2s ease-in-out;
150 -webkit-transition: all .2s ease-in-out;
151 cursor: pointer;
152
153 &.profile::before {
154 @include icon-font;
155 content: $fa-user;
156 font-size: 150%;
157 }
158
159 h3.user-name {
160 padding-right: 2px;
161 // font-size: 85%;
162 font-size: 120%;
163 display: inline;
164 }
165 }
166
167 &-content {
168 display: none;
169 width: fit-content;
170 margin-top: 4rem;
171 padding: 0;
172 background-color: $middle-green;
173 list-style: none;
174 position: absolute;
175 top: 0;
176 left: 0;
177 z-index: 999;
178 }
179
180 &-item {
181 display: block;
182 padding: .75rem;
183 font-size: 120%;
184 color: $nearly-white;
185 transition: all .2s ease-in-out;
186 -o-transition: all .2s ease-in-out;
187 -moz-transition: all .2s ease-in-out;
188 -webkit-transition: all .2s ease-in-out;
189
190 &:hover {
191 background-color: $light-green;
192 }
193 }
194 }
195
196 .burger-icon {
197 display: none;
198
199 &::after {
200 @include icon-font;
201 content: $fa-bars;
202 }
203 }
204 }
205
Akron7e5afce2020-08-25 15:50:19 +0200206 span.select {
207 display: inline-block;
208 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000209 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200210
Akron18660452017-11-13 11:06:24 +0100211 > span {
212 font-weight: bold;
213 }
Akron7e5afce2020-08-25 15:50:19 +0200214
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 border: {
Akron7e5afce2020-08-25 15:50:19 +0200216 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000217 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200218 style: solid;
219 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000220 }
Akron7e5afce2020-08-25 15:50:19 +0200221
Nils Diewalda944fab2015-04-08 21:02:04 +0000222 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200223 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000224 border-color: $dark-green;
225 }
Akron7e5afce2020-08-25 15:50:19 +0200226
Nils Diewalda944fab2015-04-08 21:02:04 +0000227 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200228 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000229 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200230 text-align: center;
231 content: $fa-down;
232
Akron6bb71582016-06-10 20:41:08 +0200233 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200234 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100235 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200236 }
237 }
Akron7e5afce2020-08-25 15:50:19 +0200238
239 &.active {
240 border-color: $dark-orange;
241 &::after {
242 content: $fa-up;
243 }
Akron6bb71582016-06-10 20:41:08 +0200244 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000245 }
246
247 form {
Akron7e5afce2020-08-25 15:50:19 +0200248 position: relative;
249 display: block;
Uyen-Nhu Tranb30a5a32024-04-10 01:17:24 +0200250 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200251 min-height: 2.7em;
Uyen-Nhu Tranb30a5a32024-04-10 01:17:24 +0200252
253 &#searchform {
254 margin: 0 4rem;
255 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000256 }
Akron7e5afce2020-08-25 15:50:19 +0200257
258 input {
259 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200260 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000261
262 .button {
Akron7e5afce2020-08-25 15:50:19 +0200263 color: $nearly-white;
264 line-height: 2em;
265 margin-right: $right-distance;
266
Nils Diewald7c8ced22015-04-15 19:21:00 +0000267 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200268 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000269 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100270 >.tutorial{
271 margin-left: 10px;
272 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000273 }
Akron7e5afce2020-08-25 15:50:19 +0200274
Nils Diewald7c8ced22015-04-15 19:21:00 +0000275 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200276 position: absolute;
277 display: block;
278 top: 0;
279 right: 0;
280 margin-right: 0;
Uyen-Nhu Tranb30a5a32024-04-10 01:17:24 +0200281 width: 20px;
282 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000283 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200284 text-align: center;
285 height: 100%;
286 z-index: 20;
287
Akron189b3592016-01-04 20:56:46 +0100288 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200289 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100290 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000291 }
Akron7e5afce2020-08-25 15:50:19 +0200292
Nils Diewald7c8ced22015-04-15 19:21:00 +0000293 > a {
Akron7e5afce2020-08-25 15:50:19 +0200294 color: $nearly-white;
295 cursor: pointer;
296 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000297 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200298
Nils Diewald7c8ced22015-04-15 19:21:00 +0000299 > span {
Akron7e5afce2020-08-25 15:50:19 +0200300 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000301 }
302 }
Akron7e5afce2020-08-25 15:50:19 +0200303
Nils Diewald7c8ced22015-04-15 19:21:00 +0000304 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200305 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000306 }
Akron7e5afce2020-08-25 15:50:19 +0200307
Nils Diewald7c8ced22015-04-15 19:21:00 +0000308 > a.tutorial::after {
309 content: $fa-tutorial;
310 }
Akron7e5afce2020-08-25 15:50:19 +0200311
Nils Diewald7c8ced22015-04-15 19:21:00 +0000312 > a.question::after {
313 content: $fa-question;
314 }
Akron7e5afce2020-08-25 15:50:19 +0200315
Nils Diewald7c8ced22015-04-15 19:21:00 +0000316 > a.login::after {
317 content: $fa-login;
318 }
Akron7e5afce2020-08-25 15:50:19 +0200319
Akrone5ef4e02017-04-19 17:07:52 +0200320 > a.logout::after {
321 content: $fa-logout;
322 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000323 }
Akrondbf7bae2020-10-07 10:44:24 +0200324}
325
326
327.query.button-group > span {
328 border-top-width: 0;
329 border-color: white;
330
331 &:first-child {
332 border-top-left-radius: 0;
333 }
334 &:last-child {
335 border-top-right-radius: 0;
336 }
Leo Repp57997402021-08-18 16:37:52 +0200337}