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