Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 2 | @use "sass:math"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 3 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 4 | |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 5 | aside { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 6 | background-color: $dark-green; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 7 | color: $nearly-white; |
8 | width: $logo-left-distance; | ||||
9 | position: fixed; | ||||
10 | display: block; | ||||
11 | transition: all 0.3s ease-in-out; | ||||
12 | outline: none; | ||||
13 | font-size: 10pt; | ||||
14 | z-index: 100; // Needs to be behind alerts | ||||
15 | top: 0; | ||||
16 | left: 0; | ||||
17 | height: 100%; | ||||
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 18 | padding-top: 65px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 19 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 20 | > div { |
21 | overflow-y: auto; | ||||
22 | overflow-x: visible; | ||||
23 | max-height: 100%; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 24 | |
25 | .fieldset-login { | ||||
26 | display: none; | ||||
27 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 28 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 29 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 30 | > * { |
31 | opacity: 1; | ||||
32 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 33 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 34 | &::after { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 35 | @include icon-font; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 36 | position: absolute; |
37 | display: block; | ||||
38 | opacity: 0; | ||||
39 | cursor: pointer; | ||||
40 | right: 0; | ||||
41 | bottom: 0; | ||||
42 | // content: $fa-settings; | ||||
43 | // content: $fa-login; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 44 | font-size: 16pt; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 45 | width: 16pt; |
46 | height: 17pt; | ||||
47 | padding: 6pt; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 48 | background-color: $dark-green; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 49 | border-top-right-radius: $standard-border-radius; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 50 | margin-right: -1 * math.div($standard-margin, 2); |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 51 | } |
52 | |||||
Akron | 1d09b53 | 2021-06-15 18:18:25 +0200 | [diff] [blame] | 53 | &.settings::after { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 54 | content: $fa-settings; |
Akron | 1d09b53 | 2021-06-15 18:18:25 +0200 | [diff] [blame] | 55 | } |
56 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 57 | h2, |
58 | legend { | ||||
59 | line-height: 2em; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 60 | text-align: center; |
61 | padding: 0; | ||||
62 | margin: 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 63 | font: { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 64 | size: 100%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 65 | weight: bold; |
66 | } | ||||
67 | } | ||||
68 | |||||
69 | /** | ||||
70 | * Navigation menu | ||||
71 | */ | ||||
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 72 | ul.nav { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 73 | list-style-type: none; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 74 | margin: 0; |
75 | font-size: 10pt; | ||||
76 | text-indent: 0; | ||||
77 | padding: 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 78 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 79 | li { |
80 | padding: 0; | ||||
81 | > a { | ||||
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 82 | padding: $item-padding; |
83 | &:visited { | ||||
84 | @include choose-item; | ||||
85 | } | ||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 86 | } |
Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 87 | |
Akron | 936e7e4 | 2020-09-21 14:43:26 +0200 | [diff] [blame] | 88 | &.folded { |
Akron | a7258cb | 2021-09-13 12:27:25 +0200 | [diff] [blame] | 89 | &.active > ul { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 90 | display: block; |
91 | } | ||||
Akron | a7258cb | 2021-09-13 12:27:25 +0200 | [diff] [blame] | 92 | > ul { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 93 | display: none; |
Akron | 64833cc | 2021-09-08 17:19:27 +0200 | [diff] [blame] | 94 | &.active { |
95 | display: block !important; | ||||
96 | } | ||||
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 97 | } |
Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 98 | } |
99 | |||||
100 | &.active > a:link { | ||||
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 101 | @include choose-active; |
Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 102 | } |
103 | |||||
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 104 | > a:link { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 105 | @include choose-item; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 106 | display: block; |
107 | |||||
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 108 | border-right: { |
109 | width: $border-size; | ||||
110 | style: solid; | ||||
111 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 112 | |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 113 | &:hover { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 114 | @include choose-hover; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 115 | transition: none; |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 116 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 117 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 118 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 119 | h3 { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 120 | padding: 0; |
121 | margin: 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 122 | font: { |
123 | weight: bold; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 124 | size: 100%; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 125 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 126 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 127 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 128 | > a { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 129 | padding-left: 6pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 130 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 131 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 132 | li > a { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 133 | padding-left: 18pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 134 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 135 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 136 | li li > a { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 137 | padding-left: 36pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 138 | } |
139 | } | ||||
140 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 141 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 142 | nav > ul > li > a { |
143 | font-weight: bold; | ||||
144 | } | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 145 | |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 146 | fieldset { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 147 | position: relative; |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 148 | border-width: 0; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 149 | |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 150 | legend { |
151 | display: none; | ||||
152 | } | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 153 | |
154 | input[type="text"], | ||||
155 | input[type="password"] { | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 156 | @include input-field; |
157 | width: 100%; | ||||
158 | } | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 159 | |
160 | .login { | ||||
161 | display: none; | ||||
162 | } | ||||
163 | |||||
164 | // search form | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 165 | > form > div { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 166 | position: relative; |
167 | width: 100%; | ||||
168 | margin-top: 4px; | ||||
169 | padding-right: $button-width; | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 170 | } |
171 | |||||
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 172 | > p { |
173 | color: $light-green; | ||||
174 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 175 | |
Akron | 066cd35 | 2018-05-24 20:41:28 +0200 | [diff] [blame] | 176 | > p.announcement { |
177 | color: $nearly-white; | ||||
178 | > time { | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 179 | display: block; |
Akron | 066cd35 | 2018-05-24 20:41:28 +0200 | [diff] [blame] | 180 | font-size: 70%; |
181 | } | ||||
182 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 183 | |
Akron | 066cd35 | 2018-05-24 20:41:28 +0200 | [diff] [blame] | 184 | hr { |
185 | border: none; | ||||
186 | border-top: 2px solid $ids-grey-2; | ||||
187 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 188 | |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 189 | ul { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 190 | display: block; |
191 | font-size: 80%; | ||||
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 192 | text-align: right; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 193 | padding: 0; |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 194 | margin-top: 0; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 195 | |
196 | > li { | ||||
197 | display: inline; | ||||
198 | &:first-child::after { | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 199 | content: " | "; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 200 | } |
201 | } | ||||
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 202 | } |
203 | |||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 204 | button { |
205 | position: absolute; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 206 | top: 0; |
207 | right: 0; | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 208 | &::after { |
Akron | b9cdb10 | 2017-04-25 00:52:31 +0200 | [diff] [blame] | 209 | content: $fa-login; |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 210 | } |
211 | } | ||||
212 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 213 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 214 | // Off aside |
215 | &.off, | ||||
216 | &:not(:focus):not(.active) { | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 217 | margin-left: -1 * ($logo-left-distance - math.div($standard-margin, 2)); |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 218 | &::after { |
219 | opacity: 1; | ||||
220 | } | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 221 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 222 | > * { |
223 | opacity: 0; | ||||
224 | transition: { | ||||
225 | property: opacity; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 226 | duration: 0.3s; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 227 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 228 | } |
229 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 230 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 231 | &.off::after { |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 232 | display: none; |
233 | } | ||||
234 | |||||
235 | &.invisible { | ||||
236 | display: none; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 237 | } |
238 | } |