blob: da6541fbe0d11775d56db8e94985503b35c75580 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akronbaba3b62021-11-22 17:24:48 +01002@use 'sass:math';
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00003@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00004
Nils Diewald7c8ced22015-04-15 19:21:00 +00005aside {
Nils Diewalda944fab2015-04-08 21:02:04 +00006 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +02007 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 Diewald61e6ff52015-05-07 17:26:50 +000018 padding-top: 65px;
Akron7e5afce2020-08-25 15:50:19 +020019
Nils Diewalda944fab2015-04-08 21:02:04 +000020 > div {
21 overflow-y: auto;
22 overflow-x: visible;
23 max-height: 100%;
24 }
Akron7e5afce2020-08-25 15:50:19 +020025
Nils Diewalda944fab2015-04-08 21:02:04 +000026 > * {
27 opacity: 1;
28 }
Akron7e5afce2020-08-25 15:50:19 +020029
Nils Diewalda944fab2015-04-08 21:02:04 +000030 &::after {
Akron7e5afce2020-08-25 15:50:19 +020031 @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 Diewalda944fab2015-04-08 21:02:04 +000039 font-size: 16pt;
Akron7e5afce2020-08-25 15:50:19 +020040 width: 16pt;
41 height: 17pt;
42 padding: 6pt;
43 background-color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +000044 border-top-right-radius: $standard-border-radius;
Akronbaba3b62021-11-22 17:24:48 +010045 margin-right: -1 * math.div($standard-margin,2);
Nils Diewalda944fab2015-04-08 21:02:04 +000046 }
47
Akron1d09b532021-06-15 18:18:25 +020048 &.settings::after {
49 content: $fa-settings;
50 }
51
Akron7e5afce2020-08-25 15:50:19 +020052 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 */
Akrone8235be2016-06-27 11:02:18 +020067 ul.nav {
Nils Diewalda944fab2015-04-08 21:02:04 +000068 list-style-type: none;
Akron7e5afce2020-08-25 15:50:19 +020069 margin: 0;
70 font-size: 10pt;
71 text-indent: 0;
72 padding: 0;
73
Nils Diewalda944fab2015-04-08 21:02:04 +000074 li {
75 padding: 0;
76 > a {
Akronb9cdb102017-04-25 00:52:31 +020077 padding: $item-padding;
78 &:visited {
79 @include choose-item;
80 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000081 }
Nils Diewalda31a5152015-04-17 21:05:23 +000082
Akron936e7e42020-09-21 14:43:26 +020083 &.folded {
Akrona7258cb2021-09-13 12:27:25 +020084 &.active > ul {
Akronb9cdb102017-04-25 00:52:31 +020085 display: block;
86 }
Akrona7258cb2021-09-13 12:27:25 +020087 > ul {
Akronb9cdb102017-04-25 00:52:31 +020088 display: none;
Akron64833cc2021-09-08 17:19:27 +020089 &.active {
90 display: block !important;
91 }
Akronb9cdb102017-04-25 00:52:31 +020092 }
Nils Diewalda31a5152015-04-17 21:05:23 +000093 }
94
95 &.active > a:link {
Akronb9cdb102017-04-25 00:52:31 +020096 @include choose-active;
Nils Diewalda31a5152015-04-17 21:05:23 +000097 }
98
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000099 > a:link {
Akronb9cdb102017-04-25 00:52:31 +0200100 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +0200101 display: block;
102
Akronb9cdb102017-04-25 00:52:31 +0200103 border-right: {
104 width: $border-size;
105 style: solid;
106 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000107
Akronb9cdb102017-04-25 00:52:31 +0200108 &:hover {
Akronb9cdb102017-04-25 00:52:31 +0200109 @include choose-hover;
Akron7e5afce2020-08-25 15:50:19 +0200110 transition: none;
Akronb9cdb102017-04-25 00:52:31 +0200111 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000112 }
Akron7e5afce2020-08-25 15:50:19 +0200113
Nils Diewalda944fab2015-04-08 21:02:04 +0000114 h3 {
Akronb9cdb102017-04-25 00:52:31 +0200115 padding: 0;
116 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +0200117 font: {
118 weight: bold;
119 size: 100%;
120 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 }
Akron7e5afce2020-08-25 15:50:19 +0200122
Nils Diewalda944fab2015-04-08 21:02:04 +0000123 > a {
Akronb9cdb102017-04-25 00:52:31 +0200124 padding-left: 6pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000125 }
Akron7e5afce2020-08-25 15:50:19 +0200126
Nils Diewalda944fab2015-04-08 21:02:04 +0000127 li > a {
Akronb9cdb102017-04-25 00:52:31 +0200128 padding-left: 18pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000129 }
Akron7e5afce2020-08-25 15:50:19 +0200130
Nils Diewalda944fab2015-04-08 21:02:04 +0000131 li li > a {
Akronb9cdb102017-04-25 00:52:31 +0200132 padding-left: 36pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000133 }
134 }
135 }
Akron7e5afce2020-08-25 15:50:19 +0200136
Nils Diewalda944fab2015-04-08 21:02:04 +0000137 nav > ul > li > a {
138 font-weight: bold;
139 }
Akronb9cdb102017-04-25 00:52:31 +0200140
Akron189b3592016-01-04 20:56:46 +0100141 fieldset {
Akron7e5afce2020-08-25 15:50:19 +0200142 position: relative;
Akron189b3592016-01-04 20:56:46 +0100143 border-width: 0;
Akron7e5afce2020-08-25 15:50:19 +0200144
Akrone8235be2016-06-27 11:02:18 +0200145 legend {
146 display: none;
147 }
Akronb9cdb102017-04-25 00:52:31 +0200148
Akron7e5afce2020-08-25 15:50:19 +0200149 input[type=text],
150 input[type=password] {
Akron189b3592016-01-04 20:56:46 +0100151 @include input-field;
152 width: 100%;
153 }
Akronb9cdb102017-04-25 00:52:31 +0200154
Akron189b3592016-01-04 20:56:46 +0100155 > form > div {
Akron7e5afce2020-08-25 15:50:19 +0200156 position: relative;
157 width: 100%;
158 margin-top: 4px;
Akron189b3592016-01-04 20:56:46 +0100159 padding-right: $button-width
160 }
161
Akron2670f5b2017-05-31 17:54:07 +0200162 > p {
163 color: $light-green;
164 }
Akron7e5afce2020-08-25 15:50:19 +0200165
Akron066cd352018-05-24 20:41:28 +0200166 > p.announcement {
167 color: $nearly-white;
168 > time {
Akron7e5afce2020-08-25 15:50:19 +0200169 display: block;
Akron066cd352018-05-24 20:41:28 +0200170 font-size: 70%;
171 }
172 }
Akron7e5afce2020-08-25 15:50:19 +0200173
Akron066cd352018-05-24 20:41:28 +0200174 hr {
175 border: none;
176 border-top: 2px solid $ids-grey-2;
177 }
Akron7e5afce2020-08-25 15:50:19 +0200178
Akrone8235be2016-06-27 11:02:18 +0200179 ul {
Akron7e5afce2020-08-25 15:50:19 +0200180 display: block;
181 font-size: 80%;
Akrone8235be2016-06-27 11:02:18 +0200182 text-align: right;
Akron7e5afce2020-08-25 15:50:19 +0200183 padding: 0;
Akrone8235be2016-06-27 11:02:18 +0200184 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200185
186 > li {
187 display: inline;
188 &:first-child::after {
189 content: ' | ';
190 }
191 }
Akrone8235be2016-06-27 11:02:18 +0200192 }
193
Akron189b3592016-01-04 20:56:46 +0100194 button {
195 position: absolute;
Akron7e5afce2020-08-25 15:50:19 +0200196 top: 0;
197 right: 0;
Akron189b3592016-01-04 20:56:46 +0100198 &::after {
Akronb9cdb102017-04-25 00:52:31 +0200199 content: $fa-login;
Akron189b3592016-01-04 20:56:46 +0100200 }
201 }
202 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000203
Akron7e5afce2020-08-25 15:50:19 +0200204 // Off aside
205 &.off,
206 &:not(:focus):not(.active) {
Akronbaba3b62021-11-22 17:24:48 +0100207 margin-left: -1 * ($logo-left-distance - math.div($standard-margin,2));
Akron7e5afce2020-08-25 15:50:19 +0200208 &::after {
209 opacity: 1;
210 }
Akronb9cdb102017-04-25 00:52:31 +0200211
Akron7e5afce2020-08-25 15:50:19 +0200212 > * {
213 opacity: 0;
214 transition: {
215 property: opacity;
216 duration: .3s;
217 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000218 }
219 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000220
Akron7e5afce2020-08-25 15:50:19 +0200221 &.off::after {
222 display:none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000223 }
224}