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 | |||||
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 42 | fieldset.fieldset-login { |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 43 | display: inline; |
44 | margin-right: 0; | ||||
45 | padding: 0; | ||||
46 | min-inline-size: unset; | ||||
47 | border: unset; | ||||
48 | |||||
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 49 | form.login { |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 50 | display: flex; |
51 | align-items: center; | ||||
52 | |||||
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 53 | input[type=text], |
54 | input[type=password] { | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 55 | @include input-field; |
56 | margin-right: 8px; | ||||
57 | height: 2rem; | ||||
58 | } | ||||
59 | |||||
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 60 | button.btn-login { |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 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 | } | ||||
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 82 | button.btn-login:hover { |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 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%; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 143 | 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 Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 155 | .burger-icon { |
156 | display: none; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 157 | |
Uyen-Nhu Tran | 74103b5 | 2024-04-23 01:17:58 +0200 | [diff] [blame^] | 158 | &::after { |
159 | @include icon-font; | ||||
160 | content: $fa-bars; | ||||
161 | } | ||||
162 | } | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 163 | } |
164 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 165 | span.select { |
166 | display: inline-block; | ||||
167 | cursor: pointer; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 168 | line-height: 1.8em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 169 | |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 170 | > span { |
171 | font-weight: bold; | ||||
172 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 173 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 174 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 175 | width: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 176 | bottom-width: 3px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 177 | style: solid; |
178 | color: transparent; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 179 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 180 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 181 | &:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 182 | color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 183 | border-color: $dark-green; |
184 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 185 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 186 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 187 | @include icon-font; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 188 | pointer-events: none; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 189 | text-align: center; |
190 | content: $fa-down; | ||||
191 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 192 | padding: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 193 | left: 4pt; |
Akron | 1866045 | 2017-11-13 11:06:24 +0100 | [diff] [blame] | 194 | right: 4pt; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 195 | } |
196 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 197 | |
198 | &.active { | ||||
199 | border-color: $dark-orange; | ||||
200 | &::after { | ||||
201 | content: $fa-up; | ||||
202 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 203 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 204 | } |
205 | |||||
206 | form { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 207 | position: relative; |
208 | display: block; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 209 | // padding-left: $logo-left-distance; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 210 | min-height: 2.7em; |
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 211 | margin: 0 4rem; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 212 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 213 | |
214 | input { | ||||
215 | @include input-field; | ||||
Akron | 1120a58 | 2017-10-17 12:29:16 +0200 | [diff] [blame] | 216 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 217 | |
218 | .button { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 219 | color: $nearly-white; |
220 | line-height: 2em; | ||||
221 | margin-right: $right-distance; | ||||
222 | |||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 223 | &.right { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 224 | float: right; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 225 | display: inline-block; |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 226 | >.tutorial{ |
227 | margin-left: 10px; | ||||
228 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 229 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 230 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 231 | &.top { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 232 | position: absolute; |
233 | display: block; | ||||
234 | top: 0; | ||||
235 | right: 0; | ||||
236 | margin-right: 0; | ||||
Uyen-Nhu Tran | 87aabcc | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 237 | width: 20px; |
238 | // width: math.div($standard-margin,2); | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 239 | background-color: $dark-green; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 240 | text-align: center; |
241 | height: 100%; | ||||
242 | z-index: 20; | ||||
243 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 244 | > a:hover { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 245 | color: $nearly-white |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 246 | } |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 247 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 248 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 249 | > a { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 250 | color: $nearly-white; |
251 | cursor: pointer; | ||||
252 | position: relative; | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 253 | font-size: 120%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 254 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 255 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 256 | @include blind; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 257 | } |
258 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 259 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 260 | > a::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 261 | @include icon-font; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 262 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 263 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 264 | > a.tutorial::after { |
265 | content: $fa-tutorial; | ||||
266 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 267 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 268 | > a.question::after { |
269 | content: $fa-question; | ||||
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.login::after { |
273 | content: $fa-login; | ||||
274 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 275 | |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 276 | > a.logout::after { |
277 | content: $fa-logout; | ||||
278 | } | ||||
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 279 | } |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 280 | } |
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 Repp | 5799740 | 2021-08-18 16:37:52 +0200 | [diff] [blame] | 293 | } |