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; | ||||
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 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 188 | span.select { |
189 | display: inline-block; | ||||
190 | cursor: pointer; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 191 | line-height: 1.8em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 192 | |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 193 | > span { |
194 | font-weight: bold; | ||||
195 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 196 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 197 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 198 | width: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 199 | bottom-width: 3px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 200 | style: solid; |
201 | color: transparent; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 202 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 203 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 204 | &:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 205 | color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 206 | border-color: $dark-green; |
207 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 208 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 209 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 210 | @include icon-font; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 211 | pointer-events: none; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 212 | text-align: center; |
213 | content: $fa-down; | ||||
214 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 215 | padding: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 216 | left: 4pt; |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 217 | right: 4pt; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 218 | } |
219 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 220 | |
221 | &.active { | ||||
222 | border-color: $dark-orange; | ||||
223 | &::after { | ||||
224 | content: $fa-up; | ||||
225 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 226 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 227 | } |
228 | |||||
229 | form { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 230 | position: relative; |
231 | display: block; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 232 | // padding-left: $logo-left-distance; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 233 | min-height: 2.7em; |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 234 | margin: 0 4rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 235 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 236 | |
237 | input { | ||||
238 | @include input-field; | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 239 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 240 | |
241 | .button { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 242 | color: $nearly-white; |
243 | line-height: 2em; | ||||
244 | margin-right: $right-distance; | ||||
245 | |||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 246 | &.right { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 247 | float: right; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 248 | display: inline-block; |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 249 | >.tutorial{ |
250 | margin-left: 10px; | ||||
251 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 252 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 253 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 254 | &.top { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 255 | position: absolute; |
256 | display: block; | ||||
257 | top: 0; | ||||
258 | right: 0; | ||||
259 | margin-right: 0; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 260 | width: 20px; |
261 | // width: math.div($standard-margin,2); | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 262 | background-color: $dark-green; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 263 | text-align: center; |
264 | height: 100%; | ||||
265 | z-index: 20; | ||||
266 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 267 | > a:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 268 | color: $nearly-white |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 269 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 270 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 271 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 272 | > a { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 273 | color: $nearly-white; |
274 | cursor: pointer; | ||||
275 | position: relative; | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 276 | font-size: 120%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 277 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 278 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 279 | @include blind; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 280 | } |
281 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 282 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 283 | > a::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 284 | @include icon-font; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 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.tutorial::after { |
288 | content: $fa-tutorial; | ||||
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.question::after { |
292 | content: $fa-question; | ||||
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.login::after { |
296 | content: $fa-login; | ||||
297 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 298 | |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 299 | > a.logout::after { |
300 | content: $fa-logout; | ||||
301 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 302 | } |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 303 | } |
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 Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 316 | } |