blob: b640531bedef6ae19f7b37728c23fa95ce206501 [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;
35
36 &-group {
37
38 & fieldset.fieldset-login {
39 display: inline;
40 margin-right: 0;
41 padding: 0;
42 min-inline-size: unset;
43 border: unset;
44
45 & form.login {
46 display: flex;
47 align-items: center;
48
49 & input[type=text],
50 & input[type=password] {
51 @include input-field;
52 margin-right: 8px;
53 height: 2rem;
54 }
55
56 & button.btn-login {
57 width: 3rem;
58 height: 3rem;
59 background-color: $dark-green;
60 color: $nearly-white;
61 // padding: .75rem 1rem;
62 font-size: 180%;
63 border: none;
64 border-color: unset;
65 border-radius: 0;
66 text-shadow: none;
67 font-weight: normal;
68 top: unset;
69 transition: all .2s ease-in-out;
70 -o-transition: all .2s ease-in-out;
71 -moz-transition: all .2s ease-in-out;
72 -webkit-transition: all .2s ease-in-out;
73
74 &::after {
75 content: $fa-login;
76 }
77 }
78 & button.btn-login:hover {
79 background-color: $middle-green;
80 }
81 }
82 }
83 }
84
85 .dropdown {
86 display: flex;
87 align-items: center;
88 margin-right: 4rem;
89 position: relative;
90
91 &:hover .dropdown-content {
92 display: block;
93 }
94
95 &:hover .dropdown-btn {
96 background-color: $middle-green;
97 }
98
99 &-btn {
100 height: 3rem;
101 padding: .6rem .9rem;
102 font-size: 180% !important;
103 color: $nearly-white;
104 transition: all .2s ease-in-out;
105 -o-transition: all .2s ease-in-out;
106 -moz-transition: all .2s ease-in-out;
107 -webkit-transition: all .2s ease-in-out;
108 cursor: pointer;
109
110 &.profile::before {
111 @include icon-font;
112 content: $fa-user;
113 }
114
115 h3.user-name {
116 padding-right: 2px;
117 font-size: 85%;
118 display: inline;
119 }
120 }
121
122 &-content {
123 display: none;
124 width: 100%;
125 margin-top: 3rem;
126 padding: 0;
127 background-color: $middle-green;
128 list-style: none;
129 position: absolute;
130 top: 0;
131 left: 0;
132 z-index: 999;
133 }
134
135 &-item {
136 display: block;
137 padding: .75rem;
138 font-size: 120%;
139 // font-weight: bold;
140 color: $nearly-white;
141 transition: all .2s ease-in-out;
142 -o-transition: all .2s ease-in-out;
143 -moz-transition: all .2s ease-in-out;
144 -webkit-transition: all .2s ease-in-out;
145
146 &:hover {
147 background-color: $light-green;
148 }
149 }
150 }
151
152 // &-item {
153 // height: 3rem;
154 // padding: .6rem .9rem;
155 // font-size: 180% !important;
156 // transition: all .2s ease-in-out;
157 // -o-transition: all .2s ease-in-out;
158 // -moz-transition: all .2s ease-in-out;
159 // -webkit-transition: all .2s ease-in-out;
160
161 // &:hover {
162 // background-color: $middle-green;
163 // }
164
165 // &.profile {
166 // width: 3rem;
167 // height: 3rem;
168 // padding: .6rem .9rem;
169
170 // &:hover {
171 // background-color: $middle-green;
172 // }
173 // }
174
175 // &.logout {
176 // width: 3rem;
177 // height: 3rem;
178 // margin-left: 1rem;
179 // padding: .6rem .9rem;
180
181 // &:hover {
182 // background-color: $middle-green;
183 // }
184 // }
185 // }
186 }
187
Akron7e5afce2020-08-25 15:50:19 +0200188 span.select {
189 display: inline-block;
190 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000191 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200192
Akron18660452017-11-13 11:06:24 +0100193 > span {
194 font-weight: bold;
195 }
Akron7e5afce2020-08-25 15:50:19 +0200196
Nils Diewalda944fab2015-04-08 21:02:04 +0000197 border: {
Akron7e5afce2020-08-25 15:50:19 +0200198 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000199 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200200 style: solid;
201 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000202 }
Akron7e5afce2020-08-25 15:50:19 +0200203
Nils Diewalda944fab2015-04-08 21:02:04 +0000204 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200205 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 border-color: $dark-green;
207 }
Akron7e5afce2020-08-25 15:50:19 +0200208
Nils Diewalda944fab2015-04-08 21:02:04 +0000209 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200210 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000211 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200212 text-align: center;
213 content: $fa-down;
214
Akron6bb71582016-06-10 20:41:08 +0200215 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200216 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100217 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200218 }
219 }
Akron7e5afce2020-08-25 15:50:19 +0200220
221 &.active {
222 border-color: $dark-orange;
223 &::after {
224 content: $fa-up;
225 }
Akron6bb71582016-06-10 20:41:08 +0200226 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000227 }
228
229 form {
Akron7e5afce2020-08-25 15:50:19 +0200230 position: relative;
231 display: block;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200232 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200233 min-height: 2.7em;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200234 margin: 0 4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000235 }
Akron7e5afce2020-08-25 15:50:19 +0200236
237 input {
238 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200239 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000240
241 .button {
Akron7e5afce2020-08-25 15:50:19 +0200242 color: $nearly-white;
243 line-height: 2em;
244 margin-right: $right-distance;
245
Nils Diewald7c8ced22015-04-15 19:21:00 +0000246 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200247 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000248 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100249 >.tutorial{
250 margin-left: 10px;
251 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000252 }
Akron7e5afce2020-08-25 15:50:19 +0200253
Nils Diewald7c8ced22015-04-15 19:21:00 +0000254 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200255 position: absolute;
256 display: block;
257 top: 0;
258 right: 0;
259 margin-right: 0;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200260 width: 20px;
261 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000262 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200263 text-align: center;
264 height: 100%;
265 z-index: 20;
266
Akron189b3592016-01-04 20:56:46 +0100267 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200268 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100269 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000270 }
Akron7e5afce2020-08-25 15:50:19 +0200271
Nils Diewald7c8ced22015-04-15 19:21:00 +0000272 > a {
Akron7e5afce2020-08-25 15:50:19 +0200273 color: $nearly-white;
274 cursor: pointer;
275 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000276 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200277
Nils Diewald7c8ced22015-04-15 19:21:00 +0000278 > span {
Akron7e5afce2020-08-25 15:50:19 +0200279 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000280 }
281 }
Akron7e5afce2020-08-25 15:50:19 +0200282
Nils Diewald7c8ced22015-04-15 19:21:00 +0000283 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200284 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000285 }
Akron7e5afce2020-08-25 15:50:19 +0200286
Nils Diewald7c8ced22015-04-15 19:21:00 +0000287 > a.tutorial::after {
288 content: $fa-tutorial;
289 }
Akron7e5afce2020-08-25 15:50:19 +0200290
Nils Diewald7c8ced22015-04-15 19:21:00 +0000291 > a.question::after {
292 content: $fa-question;
293 }
Akron7e5afce2020-08-25 15:50:19 +0200294
Nils Diewald7c8ced22015-04-15 19:21:00 +0000295 > a.login::after {
296 content: $fa-login;
297 }
Akron7e5afce2020-08-25 15:50:19 +0200298
Akrone5ef4e02017-04-19 17:07:52 +0200299 > a.logout::after {
300 content: $fa-logout;
301 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000302 }
Akrondbf7bae2020-10-07 10:44:24 +0200303}
304
305
306.query.button-group > span {
307 border-top-width: 0;
308 border-color: white;
309
310 &:first-child {
311 border-top-left-radius: 0;
312 }
313 &:last-child {
314 border-top-right-radius: 0;
315 }
Leo Repp57997402021-08-18 16:37:52 +0200316}