blob: 5b244ba318ac505f02d4d3bd00b700fa3aab117b [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
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020042 fieldset.fieldset-login {
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020043 display: inline;
44 margin-right: 0;
45 padding: 0;
46 min-inline-size: unset;
47 border: unset;
48
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020049 form.login {
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020050 display: flex;
51 align-items: center;
52
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020053 input[type=text],
54 input[type=password] {
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020055 @include input-field;
56 margin-right: 8px;
57 height: 2rem;
58 }
59
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020060 button.btn-login {
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020061 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 }
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +020082 button.btn-login:hover {
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020083 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%;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200143 color: $nearly-white;
144 transition: all .2s ease-in-out;
145 -o-transition: all .2s ease-in-out;
146 -moz-transition: all .2s ease-in-out;
147 -webkit-transition: all .2s ease-in-out;
148
149 &:hover {
150 background-color: $light-green;
151 }
152 }
153 }
154
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200155 .burger-icon {
156 display: none;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200157
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +0200158 &::after {
159 @include icon-font;
160 content: $fa-bars;
161 }
162 }
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200163 }
164
Akron7e5afce2020-08-25 15:50:19 +0200165 span.select {
166 display: inline-block;
167 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +0000168 line-height: 1.8em;
Akron7e5afce2020-08-25 15:50:19 +0200169
Akron18660452017-11-13 11:06:24 +0100170 > span {
171 font-weight: bold;
172 }
Akron7e5afce2020-08-25 15:50:19 +0200173
Nils Diewalda944fab2015-04-08 21:02:04 +0000174 border: {
Akron7e5afce2020-08-25 15:50:19 +0200175 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000176 bottom-width: 3px;
Akron7e5afce2020-08-25 15:50:19 +0200177 style: solid;
178 color: transparent;
Nils Diewalda944fab2015-04-08 21:02:04 +0000179 }
Akron7e5afce2020-08-25 15:50:19 +0200180
Nils Diewalda944fab2015-04-08 21:02:04 +0000181 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200182 color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +0000183 border-color: $dark-green;
184 }
Akron7e5afce2020-08-25 15:50:19 +0200185
Nils Diewalda944fab2015-04-08 21:02:04 +0000186 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200187 @include icon-font;
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 pointer-events: none;
Akron7e5afce2020-08-25 15:50:19 +0200189 text-align: center;
190 content: $fa-down;
191
Akron6bb71582016-06-10 20:41:08 +0200192 padding: {
Akron7e5afce2020-08-25 15:50:19 +0200193 left: 4pt;
Akron18660452017-11-13 11:06:24 +0100194 right: 4pt;
Akron6bb71582016-06-10 20:41:08 +0200195 }
196 }
Akron7e5afce2020-08-25 15:50:19 +0200197
198 &.active {
199 border-color: $dark-orange;
200 &::after {
201 content: $fa-up;
202 }
Akron6bb71582016-06-10 20:41:08 +0200203 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000204 }
205
206 form {
Akron7e5afce2020-08-25 15:50:19 +0200207 position: relative;
208 display: block;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200209 // padding-left: $logo-left-distance;
Akron7e5afce2020-08-25 15:50:19 +0200210 min-height: 2.7em;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200211 margin: 0 4rem;
Nils Diewalda944fab2015-04-08 21:02:04 +0000212 }
Akron7e5afce2020-08-25 15:50:19 +0200213
214 input {
215 @include input-field;
Akron1120a582017-10-17 12:29:16 +0200216 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000217
218 .button {
Akron7e5afce2020-08-25 15:50:19 +0200219 color: $nearly-white;
220 line-height: 2em;
221 margin-right: $right-distance;
222
Nils Diewald7c8ced22015-04-15 19:21:00 +0000223 &.right {
Akron7e5afce2020-08-25 15:50:19 +0200224 float: right;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000225 display: inline-block;
Helge2e434be2023-02-01 16:47:16 +0100226 >.tutorial{
227 margin-left: 10px;
228 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000229 }
Akron7e5afce2020-08-25 15:50:19 +0200230
Nils Diewald7c8ced22015-04-15 19:21:00 +0000231 &.top {
Akron7e5afce2020-08-25 15:50:19 +0200232 position: absolute;
233 display: block;
234 top: 0;
235 right: 0;
236 margin-right: 0;
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +0200237 width: 20px;
238 // width: math.div($standard-margin,2);
Nils Diewald7c8ced22015-04-15 19:21:00 +0000239 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +0200240 text-align: center;
241 height: 100%;
242 z-index: 20;
243
Akron189b3592016-01-04 20:56:46 +0100244 > a:hover {
Akron7e5afce2020-08-25 15:50:19 +0200245 color: $nearly-white
Akron189b3592016-01-04 20:56:46 +0100246 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000247 }
Akron7e5afce2020-08-25 15:50:19 +0200248
Nils Diewald7c8ced22015-04-15 19:21:00 +0000249 > a {
Akron7e5afce2020-08-25 15:50:19 +0200250 color: $nearly-white;
251 cursor: pointer;
252 position: relative;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000253 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +0200254
Nils Diewald7c8ced22015-04-15 19:21:00 +0000255 > span {
Akron7e5afce2020-08-25 15:50:19 +0200256 @include blind;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000257 }
258 }
Akron7e5afce2020-08-25 15:50:19 +0200259
Nils Diewald7c8ced22015-04-15 19:21:00 +0000260 > a::after {
Akron7e5afce2020-08-25 15:50:19 +0200261 @include icon-font;
Nils Diewald7c8ced22015-04-15 19:21:00 +0000262 }
Akron7e5afce2020-08-25 15:50:19 +0200263
Nils Diewald7c8ced22015-04-15 19:21:00 +0000264 > a.tutorial::after {
265 content: $fa-tutorial;
266 }
Akron7e5afce2020-08-25 15:50:19 +0200267
Nils Diewald7c8ced22015-04-15 19:21:00 +0000268 > a.question::after {
269 content: $fa-question;
270 }
Akron7e5afce2020-08-25 15:50:19 +0200271
Nils Diewald7c8ced22015-04-15 19:21:00 +0000272 > a.login::after {
273 content: $fa-login;
274 }
Akron7e5afce2020-08-25 15:50:19 +0200275
Akrone5ef4e02017-04-19 17:07:52 +0200276 > a.logout::after {
277 content: $fa-logout;
278 }
Nils Diewald7c8ced22015-04-15 19:21:00 +0000279 }
Akrondbf7bae2020-10-07 10:44:24 +0200280}
281
282
283.query.button-group > span {
284 border-top-width: 0;
285 border-color: white;
286
287 &:first-child {
288 border-top-left-radius: 0;
289 }
290 &:last-child {
291 border-top-right-radius: 0;
292 }
Leo Repp57997402021-08-18 16:37:52 +0200293}