blob: 110c6ee5b90ad3dcacdddd3d4135f92b95bb4507 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02002@use "sass:math";
Akron7636edf2025-11-04 12:44:53 +01003@use "../util";
4@use "../base/choose";
5@use "../base/colors";
6@use "../base/icons";
7@use "../base/lengths";
8@use "../base/mixins";
Nils Diewalda944fab2015-04-08 21:02:04 +00009
Nils Diewald7c8ced22015-04-15 19:21:00 +000010aside {
Akron7636edf2025-11-04 12:44:53 +010011 background-color: colors.$dark-green;
12 color: colors.$nearly-white;
13 width: lengths.$logo-left-distance;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020014 position: fixed;
15 display: block;
16 transition: all 0.3s ease-in-out;
17 outline: none;
18 font-size: 10pt;
19 z-index: 100; // Needs to be behind alerts
20 top: 0;
21 left: 0;
22 height: 100%;
Nils Diewald61e6ff52015-05-07 17:26:50 +000023 padding-top: 65px;
Akron7e5afce2020-08-25 15:50:19 +020024
Nils Diewalda944fab2015-04-08 21:02:04 +000025 > div {
26 overflow-y: auto;
27 overflow-x: visible;
28 max-height: 100%;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020029
30 .fieldset-login {
31 display: none;
32 }
Nils Diewalda944fab2015-04-08 21:02:04 +000033 }
Akron7e5afce2020-08-25 15:50:19 +020034
Nils Diewalda944fab2015-04-08 21:02:04 +000035 > * {
36 opacity: 1;
37 }
Akron7e5afce2020-08-25 15:50:19 +020038
Nils Diewalda944fab2015-04-08 21:02:04 +000039 &::after {
Akron7636edf2025-11-04 12:44:53 +010040 @include mixins.icon-font;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020041 position: absolute;
42 display: block;
43 opacity: 0;
44 cursor: pointer;
45 right: 0;
46 bottom: 0;
47 // content: $fa-settings;
48 // content: $fa-login;
Nils Diewalda944fab2015-04-08 21:02:04 +000049 font-size: 16pt;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020050 width: 16pt;
51 height: 17pt;
52 padding: 6pt;
Akron7636edf2025-11-04 12:44:53 +010053 background-color: colors.$dark-green;
54 border-top-right-radius: lengths.$standard-border-radius;
55 margin-right: -1 * math.div(lengths.$standard-margin, 2);
Nils Diewalda944fab2015-04-08 21:02:04 +000056 }
57
Akron1d09b532021-06-15 18:18:25 +020058 &.settings::after {
Akron7636edf2025-11-04 12:44:53 +010059 content: icons.$fa-settings;
Akron1d09b532021-06-15 18:18:25 +020060 }
61
Akron7e5afce2020-08-25 15:50:19 +020062 h2,
63 legend {
64 line-height: 2em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020065 text-align: center;
66 padding: 0;
67 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +020068 font: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020069 size: 100%;
Akron7e5afce2020-08-25 15:50:19 +020070 weight: bold;
71 }
72 }
73
74 /**
75 * Navigation menu
76 */
Akrone8235be2016-06-27 11:02:18 +020077 ul.nav {
Nils Diewalda944fab2015-04-08 21:02:04 +000078 list-style-type: none;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020079 margin: 0;
80 font-size: 10pt;
81 text-indent: 0;
82 padding: 0;
Akron7e5afce2020-08-25 15:50:19 +020083
Nils Diewalda944fab2015-04-08 21:02:04 +000084 li {
85 padding: 0;
86 > a {
Akron7636edf2025-11-04 12:44:53 +010087 padding: lengths.$item-padding;
Akronb9cdb102017-04-25 00:52:31 +020088 &:visited {
Akron7636edf2025-11-04 12:44:53 +010089 @include choose.choose-item;
Akronb9cdb102017-04-25 00:52:31 +020090 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000091 }
Nils Diewalda31a5152015-04-17 21:05:23 +000092
Akron936e7e42020-09-21 14:43:26 +020093 &.folded {
Akrona7258cb2021-09-13 12:27:25 +020094 &.active > ul {
Akronb9cdb102017-04-25 00:52:31 +020095 display: block;
96 }
Akrona7258cb2021-09-13 12:27:25 +020097 > ul {
Akronb9cdb102017-04-25 00:52:31 +020098 display: none;
Akron64833cc2021-09-08 17:19:27 +020099 &.active {
100 display: block !important;
101 }
Akronb9cdb102017-04-25 00:52:31 +0200102 }
Nils Diewalda31a5152015-04-17 21:05:23 +0000103 }
104
105 &.active > a:link {
Akron7636edf2025-11-04 12:44:53 +0100106 @include choose.choose-active;
Nils Diewalda31a5152015-04-17 21:05:23 +0000107 }
108
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000109 > a:link {
Akron7636edf2025-11-04 12:44:53 +0100110 @include choose.choose-item;
Akron7e5afce2020-08-25 15:50:19 +0200111 display: block;
112
Akronb9cdb102017-04-25 00:52:31 +0200113 border-right: {
Akron7636edf2025-11-04 12:44:53 +0100114 width: lengths.$border-size;
Akronb9cdb102017-04-25 00:52:31 +0200115 style: solid;
116 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000117
Akronb9cdb102017-04-25 00:52:31 +0200118 &:hover {
Akron7636edf2025-11-04 12:44:53 +0100119 @include choose.choose-hover;
Akron7e5afce2020-08-25 15:50:19 +0200120 transition: none;
Akronb9cdb102017-04-25 00:52:31 +0200121 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000122 }
Akron7e5afce2020-08-25 15:50:19 +0200123
Nils Diewalda944fab2015-04-08 21:02:04 +0000124 h3 {
Akronb9cdb102017-04-25 00:52:31 +0200125 padding: 0;
126 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +0200127 font: {
128 weight: bold;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200129 size: 100%;
Akron7e5afce2020-08-25 15:50:19 +0200130 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000131 }
Akron7e5afce2020-08-25 15:50:19 +0200132
Nils Diewalda944fab2015-04-08 21:02:04 +0000133 > a {
Akronb9cdb102017-04-25 00:52:31 +0200134 padding-left: 6pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000135 }
Akron7e5afce2020-08-25 15:50:19 +0200136
Nils Diewalda944fab2015-04-08 21:02:04 +0000137 li > a {
Akronb9cdb102017-04-25 00:52:31 +0200138 padding-left: 18pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000139 }
Akron7e5afce2020-08-25 15:50:19 +0200140
Nils Diewalda944fab2015-04-08 21:02:04 +0000141 li li > a {
Akronb9cdb102017-04-25 00:52:31 +0200142 padding-left: 36pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000143 }
144 }
145 }
Akron7e5afce2020-08-25 15:50:19 +0200146
Nils Diewalda944fab2015-04-08 21:02:04 +0000147 nav > ul > li > a {
148 font-weight: bold;
149 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200150
Akron189b3592016-01-04 20:56:46 +0100151 fieldset {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200152 position: relative;
Akron189b3592016-01-04 20:56:46 +0100153 border-width: 0;
Akron7e5afce2020-08-25 15:50:19 +0200154
Akrone8235be2016-06-27 11:02:18 +0200155 legend {
156 display: none;
157 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200158
159 input[type="text"],
160 input[type="password"] {
Akron7636edf2025-11-04 12:44:53 +0100161 @include mixins.input-field;
Akron189b3592016-01-04 20:56:46 +0100162 width: 100%;
163 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200164
165 .login {
166 display: none;
167 }
168
169 // search form
Akron189b3592016-01-04 20:56:46 +0100170 > form > div {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200171 position: relative;
172 width: 100%;
173 margin-top: 4px;
Akron7636edf2025-11-04 12:44:53 +0100174 padding-right: lengths.$button-width;
Akron189b3592016-01-04 20:56:46 +0100175 }
176
Akron2670f5b2017-05-31 17:54:07 +0200177 > p {
Akron7636edf2025-11-04 12:44:53 +0100178 color: colors.$light-green;
Akron2670f5b2017-05-31 17:54:07 +0200179 }
Akron7e5afce2020-08-25 15:50:19 +0200180
Akron066cd352018-05-24 20:41:28 +0200181 > p.announcement {
Akron7636edf2025-11-04 12:44:53 +0100182 color: colors.$nearly-white;
Akron066cd352018-05-24 20:41:28 +0200183 > time {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200184 display: block;
Akron066cd352018-05-24 20:41:28 +0200185 font-size: 70%;
186 }
187 }
Akron7e5afce2020-08-25 15:50:19 +0200188
Akron066cd352018-05-24 20:41:28 +0200189 hr {
190 border: none;
Akron7636edf2025-11-04 12:44:53 +0100191 border-top: 2px solid colors.$ids-grey-2;
Akron066cd352018-05-24 20:41:28 +0200192 }
Akron7e5afce2020-08-25 15:50:19 +0200193
Akrone8235be2016-06-27 11:02:18 +0200194 ul {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200195 display: block;
196 font-size: 80%;
Akrone8235be2016-06-27 11:02:18 +0200197 text-align: right;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200198 padding: 0;
Akrone8235be2016-06-27 11:02:18 +0200199 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200200
201 > li {
202 display: inline;
203 &:first-child::after {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200204 content: " | ";
Akron7e5afce2020-08-25 15:50:19 +0200205 }
206 }
Akrone8235be2016-06-27 11:02:18 +0200207 }
208
Akron189b3592016-01-04 20:56:46 +0100209 button {
210 position: absolute;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200211 top: 0;
212 right: 0;
Akron189b3592016-01-04 20:56:46 +0100213 &::after {
Akron7636edf2025-11-04 12:44:53 +0100214 content: icons.$fa-login;
Akron189b3592016-01-04 20:56:46 +0100215 }
216 }
217 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000218
Akron7e5afce2020-08-25 15:50:19 +0200219 // Off aside
220 &.off,
221 &:not(:focus):not(.active) {
Akron7636edf2025-11-04 12:44:53 +0100222 margin-left: -1 * (lengths.$logo-left-distance - math.div(lengths.$standard-margin, 2));
Akron7e5afce2020-08-25 15:50:19 +0200223 &::after {
224 opacity: 1;
225 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200226
Akron7e5afce2020-08-25 15:50:19 +0200227 > * {
228 opacity: 0;
229 transition: {
230 property: opacity;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200231 duration: 0.3s;
Akron7e5afce2020-08-25 15:50:19 +0200232 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000233 }
234 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000235
Akron7e5afce2020-08-25 15:50:19 +0200236 &.off::after {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200237 display: none;
238 }
239
240 &.invisible {
241 display: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000242 }
243}