Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame] | 2 | @use 'sass:math'; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 3 | @import "../util"; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 4 | @import "hint"; // Hint specific menu list |
Leo Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 5 | @import "containermenu"; // Container menu specific |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 6 | @import "searchbar"; // The search bar |
7 | @import "vc"; // Virtual corpus builder | ||||
8 | @import "statistics"; // Statistics for VCs | ||||
9 | @import "datepicker"; // Datepicker | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 10 | @import "querylanguage"; // Query language |
11 | @import "pipe"; // Pipe | ||||
Akron | bc4aff3 | 2022-02-08 16:08:42 +0100 | [diff] [blame] | 12 | @import "state"; // State |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 13 | |
14 | header { | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 15 | @include box-sizing-box(); |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 16 | position: relative; |
17 | background-color: $light-green; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 18 | // padding: $base-padding 0 0 $base-padding; |
19 | padding-top: 4rem; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 20 | font-size: 10pt; |
21 | color: $nearly-white; | ||||
22 | |||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 23 | .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 Tran | 4e7cd1d | 2024-04-10 11:15:39 +0200 | [diff] [blame^] | 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; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 39 | |
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 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 192 | span.select { |
193 | display: inline-block; | ||||
194 | cursor: pointer; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 195 | line-height: 1.8em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 196 | |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 197 | > span { |
198 | font-weight: bold; | ||||
199 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 200 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 201 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 202 | width: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 203 | bottom-width: 3px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 204 | style: solid; |
205 | color: transparent; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 206 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 207 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 208 | &:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 209 | color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 210 | border-color: $dark-green; |
211 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 212 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 213 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 214 | @include icon-font; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 215 | pointer-events: none; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 216 | text-align: center; |
217 | content: $fa-down; | ||||
218 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 219 | padding: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 220 | left: 4pt; |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 221 | right: 4pt; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 222 | } |
223 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 224 | |
225 | &.active { | ||||
226 | border-color: $dark-orange; | ||||
227 | &::after { | ||||
228 | content: $fa-up; | ||||
229 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 230 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 231 | } |
232 | |||||
233 | form { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 234 | position: relative; |
235 | display: block; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 236 | // padding-left: $logo-left-distance; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 237 | min-height: 2.7em; |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 238 | margin: 0 4rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 239 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 240 | |
241 | input { | ||||
242 | @include input-field; | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 243 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 244 | |
245 | .button { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 246 | color: $nearly-white; |
247 | line-height: 2em; | ||||
248 | margin-right: $right-distance; | ||||
249 | |||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 250 | &.right { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 251 | float: right; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 252 | display: inline-block; |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 253 | >.tutorial{ |
254 | margin-left: 10px; | ||||
255 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 256 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 257 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 258 | &.top { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 259 | position: absolute; |
260 | display: block; | ||||
261 | top: 0; | ||||
262 | right: 0; | ||||
263 | margin-right: 0; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 264 | width: 20px; |
265 | // width: math.div($standard-margin,2); | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 266 | background-color: $dark-green; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 267 | text-align: center; |
268 | height: 100%; | ||||
269 | z-index: 20; | ||||
270 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 271 | > a:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 272 | color: $nearly-white |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 273 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 274 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 275 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 276 | > a { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 277 | color: $nearly-white; |
278 | cursor: pointer; | ||||
279 | position: relative; | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 280 | font-size: 120%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 281 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 282 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 283 | @include blind; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 284 | } |
285 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 286 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 287 | > a::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 288 | @include icon-font; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 289 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 290 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 291 | > a.tutorial::after { |
292 | content: $fa-tutorial; | ||||
293 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 294 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 295 | > a.question::after { |
296 | content: $fa-question; | ||||
297 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 298 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 299 | > a.login::after { |
300 | content: $fa-login; | ||||
301 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 302 | |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 303 | > a.logout::after { |
304 | content: $fa-logout; | ||||
305 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 306 | } |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 307 | } |
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 Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 320 | } |