blob: 04e318ee132c32617bb96288b69f0f5a41a8bf86 [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 Tran87aabcc2024-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 Tran87aabcc2024-04-10 01:17:24 +020023 .navbar {
24 width: 100%;
25 height: 3rem;
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;
Uyen-Nhu Tran4e7cd1d2024-04-10 11:15:39 +020035 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;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020039
40 &-group {
41
42 & fieldset.fieldset-login {
43 display: inline;
44 margin-right: 0;
45 padding: 0;
46 min-inline-size: unset;
47 border: unset;
48
49 & form.login {
50 display: flex;
51 align-items: center;
52
53 & input[type=text],
54 & input[type=password] {
55 @include input-field;
56 margin-right: 8px;
57 height: 2rem;
58 }
59
60 & button.btn-login {
61 width: 3rem;
62 height: 3rem;
63 background-color: $dark-green;
64 color: $nearly-white;
65 // padding: .75rem 1rem;
66 font-size: 180%;
67 border: none;
68 border-color: unset;
69 border-radius: 0;
70 text-shadow: none;
71 font-weight: normal;
72 top: unset;
73 transition: all .2s ease-in-out;
74 -o-transition: all .2s ease-in-out;
75 -moz-transition: all .2s ease-in-out;
76 -webkit-transition: all .2s ease-in-out;
77
78 &::after {
79 content: $fa-login;
80 }
81 }
82 & button.btn-login:hover {
83 background-color: $middle-green;
84 }
85 }
86 }
87 }
88
89 .dropdown {
90 display: flex;
91 align-items: center;
92 margin-right: 4rem;
93 position: relative;
94
95 &:hover .dropdown-content {
96 display: block;
97 }
98
99 &:hover .dropdown-btn {
100 background-color: $middle-green;
101 }
102
103 &-btn {
104 height: 3rem;
105 padding: .6rem .9rem;
106 font-size: 180% !important;
107 color: $nearly-white;
108 transition: all .2s ease-in-out;
109 -o-transition: all .2s ease-in-out;
110 -moz-transition: all .2s ease-in-out;
111 -webkit-transition: all .2s ease-in-out;
112 cursor: pointer;
113
114 &.profile::before {
115 @include icon-font;
116 content: $fa-user;
117 }
118
119 h3.user-name {
120 padding-right: 2px;
121 font-size: 85%;
122 display: inline;
123 }
124 }
125
126 &-content {
127 display: none;
128 width: 100%;
129 margin-top: 3rem;
130 padding: 0;
131 background-color: $middle-green;
132 list-style: none;
133 position: absolute;
134 top: 0;
135 left: 0;
136 z-index: 999;
137 }
138
139 &-item {
140 display: block;
141 padding: .75rem;
142 font-size: 120%;
143 // font-weight: bold;
144 color: $nearly-white;
145 transition: all .2s ease-in-out;
146 -o-transition: all .2s ease-in-out;
147 -moz-transition: all .2s ease-in-out;
148 -webkit-transition: all .2s ease-in-out;
149
150 &:hover {
151 background-color: $light-green;
152 }
153 }
154 }
155
156 // &-item {
157 // height: 3rem;
158 // padding: .6rem .9rem;
159 // font-size: 180% !important;
160 // transition: all .2s ease-in-out;
161 // -o-transition: all .2s ease-in-out;
162 // -moz-transition: all .2s ease-in-out;
163 // -webkit-transition: all .2s ease-in-out;
164
165 // &:hover {
166 // background-color: $middle-green;
167 // }
168
169 // &.profile {
170 // width: 3rem;
171 // height: 3rem;
172 // padding: .6rem .9rem;
173
174 // &:hover {
175 // background-color: $middle-green;
176 // }
177 // }
178
179 // &.logout {
180 // width: 3rem;
181 // height: 3rem;
182 // margin-left: 1rem;
183 // padding: .6rem .9rem;
184
185 // &:hover {
186 // background-color: $middle-green;
187 // }
188 // }
189 // }
190 }
191
Akron7e5afce2020-08-25 15:50:19 +0200192 span.select {
193 display: inline-block;
194 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000195 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200196
Akron18660452017-11-13 11:06:24 +0100197 > span {
198 font-weight: bold;
199 }
Akron7e5afce2020-08-25 15:50:19 +0200200
Nils Diewalda944fab2015-04-08 21:02:04 +0000201 border: {
Akron7e5afce2020-08-25 15:50:19 +0200202 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000203 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200204 style: solid;
205 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 }
Akron7e5afce2020-08-25 15:50:19 +0200207
Nils Diewalda944fab2015-04-08 21:02:04 +0000208 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200209 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000210 border-color: $dark-green;
211 }
Akron7e5afce2020-08-25 15:50:19 +0200212
Nils Diewalda944fab2015-04-08 21:02:04 +0000213 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200214 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200216 text-align: center;
217 content: $fa-down;
218
Akron6bb71582016-06-10 20:41:08 +0200219 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200220 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100221 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200222 }
223 }
Akron7e5afce2020-08-25 15:50:19 +0200224
225 &.active {
226 border-color: $dark-orange;
227 &::after {
228 content: $fa-up;
229 }
Akron6bb71582016-06-10 20:41:08 +0200230 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000231 }
232
233 form {
Akron7e5afce2020-08-25 15:50:19 +0200234 position: relative;
235 display: block;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200236 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200237 min-height: 2.7em;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200238 margin: 0 4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000239 }
Akron7e5afce2020-08-25 15:50:19 +0200240
241 input {
242 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200243 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000244
245 .button {
Akron7e5afce2020-08-25 15:50:19 +0200246 color: $nearly-white;
247 line-height: 2em;
248 margin-right: $right-distance;
249
Nils Diewald7c8ced22015-04-15 19:21:00 +0000250 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200251 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000252 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100253 >.tutorial{
254 margin-left: 10px;
255 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000256 }
Akron7e5afce2020-08-25 15:50:19 +0200257
Nils Diewald7c8ced22015-04-15 19:21:00 +0000258 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200259 position: absolute;
260 display: block;
261 top: 0;
262 right: 0;
263 margin-right: 0;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200264 width: 20px;
265 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000266 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200267 text-align: center;
268 height: 100%;
269 z-index: 20;
270
Akron189b3592016-01-04 20:56:46 +0100271 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200272 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100273 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000274 }
Akron7e5afce2020-08-25 15:50:19 +0200275
Nils Diewald7c8ced22015-04-15 19:21:00 +0000276 > a {
Akron7e5afce2020-08-25 15:50:19 +0200277 color: $nearly-white;
278 cursor: pointer;
279 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000280 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200281
Nils Diewald7c8ced22015-04-15 19:21:00 +0000282 > span {
Akron7e5afce2020-08-25 15:50:19 +0200283 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000284 }
285 }
Akron7e5afce2020-08-25 15:50:19 +0200286
Nils Diewald7c8ced22015-04-15 19:21:00 +0000287 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200288 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000289 }
Akron7e5afce2020-08-25 15:50:19 +0200290
Nils Diewald7c8ced22015-04-15 19:21:00 +0000291 > a.tutorial::after {
292 content: $fa-tutorial;
293 }
Akron7e5afce2020-08-25 15:50:19 +0200294
Nils Diewald7c8ced22015-04-15 19:21:00 +0000295 > a.question::after {
296 content: $fa-question;
297 }
Akron7e5afce2020-08-25 15:50:19 +0200298
Nils Diewald7c8ced22015-04-15 19:21:00 +0000299 > a.login::after {
300 content: $fa-login;
301 }
Akron7e5afce2020-08-25 15:50:19 +0200302
Akrone5ef4e02017-04-19 17:07:52 +0200303 > a.logout::after {
304 content: $fa-logout;
305 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000306 }
Akrondbf7bae2020-10-07 10:44:24 +0200307}
308
309
310.query.button-group > span {
311 border-top-width: 0;
312 border-color: white;
313
314 &:first-child {
315 border-top-left-radius: 0;
316 }
317 &:last-child {
318 border-top-right-radius: 0;
319 }
Leo Repp57997402021-08-18 16:37:52 +0200320}