blob: de7465c99e231a4af0a0ab5a7be1493956c6e772 [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";
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;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02007 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 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%;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020024
25 .fieldset-login {
26 display: none;
27 }
Nils Diewalda944fab2015-04-08 21:02:04 +000028 }
Akron7e5afce2020-08-25 15:50:19 +020029
Nils Diewalda944fab2015-04-08 21:02:04 +000030 > * {
31 opacity: 1;
32 }
Akron7e5afce2020-08-25 15:50:19 +020033
Nils Diewalda944fab2015-04-08 21:02:04 +000034 &::after {
Akron7e5afce2020-08-25 15:50:19 +020035 @include icon-font;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020036 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 Diewalda944fab2015-04-08 21:02:04 +000044 font-size: 16pt;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020045 width: 16pt;
46 height: 17pt;
47 padding: 6pt;
Akron7e5afce2020-08-25 15:50:19 +020048 background-color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +000049 border-top-right-radius: $standard-border-radius;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020050 margin-right: -1 * math.div($standard-margin, 2);
Nils Diewalda944fab2015-04-08 21:02:04 +000051 }
52
Akron1d09b532021-06-15 18:18:25 +020053 &.settings::after {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020054 content: $fa-settings;
Akron1d09b532021-06-15 18:18:25 +020055 }
56
Akron7e5afce2020-08-25 15:50:19 +020057 h2,
58 legend {
59 line-height: 2em;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020060 text-align: center;
61 padding: 0;
62 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +020063 font: {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020064 size: 100%;
Akron7e5afce2020-08-25 15:50:19 +020065 weight: bold;
66 }
67 }
68
69 /**
70 * Navigation menu
71 */
Akrone8235be2016-06-27 11:02:18 +020072 ul.nav {
Nils Diewalda944fab2015-04-08 21:02:04 +000073 list-style-type: none;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020074 margin: 0;
75 font-size: 10pt;
76 text-indent: 0;
77 padding: 0;
Akron7e5afce2020-08-25 15:50:19 +020078
Nils Diewalda944fab2015-04-08 21:02:04 +000079 li {
80 padding: 0;
81 > a {
Akronb9cdb102017-04-25 00:52:31 +020082 padding: $item-padding;
83 &:visited {
84 @include choose-item;
85 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000086 }
Nils Diewalda31a5152015-04-17 21:05:23 +000087
Akron936e7e42020-09-21 14:43:26 +020088 &.folded {
Akrona7258cb2021-09-13 12:27:25 +020089 &.active > ul {
Akronb9cdb102017-04-25 00:52:31 +020090 display: block;
91 }
Akrona7258cb2021-09-13 12:27:25 +020092 > ul {
Akronb9cdb102017-04-25 00:52:31 +020093 display: none;
Akron64833cc2021-09-08 17:19:27 +020094 &.active {
95 display: block !important;
96 }
Akronb9cdb102017-04-25 00:52:31 +020097 }
Nils Diewalda31a5152015-04-17 21:05:23 +000098 }
99
100 &.active > a:link {
Akronb9cdb102017-04-25 00:52:31 +0200101 @include choose-active;
Nils Diewalda31a5152015-04-17 21:05:23 +0000102 }
103
Nils Diewaldab4d3ca2015-04-17 01:48:43 +0000104 > a:link {
Akronb9cdb102017-04-25 00:52:31 +0200105 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +0200106 display: block;
107
Akronb9cdb102017-04-25 00:52:31 +0200108 border-right: {
109 width: $border-size;
110 style: solid;
111 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000112
Akronb9cdb102017-04-25 00:52:31 +0200113 &:hover {
Akronb9cdb102017-04-25 00:52:31 +0200114 @include choose-hover;
Akron7e5afce2020-08-25 15:50:19 +0200115 transition: none;
Akronb9cdb102017-04-25 00:52:31 +0200116 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 }
Akron7e5afce2020-08-25 15:50:19 +0200118
Nils Diewalda944fab2015-04-08 21:02:04 +0000119 h3 {
Akronb9cdb102017-04-25 00:52:31 +0200120 padding: 0;
121 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +0200122 font: {
123 weight: bold;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200124 size: 100%;
Akron7e5afce2020-08-25 15:50:19 +0200125 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000126 }
Akron7e5afce2020-08-25 15:50:19 +0200127
Nils Diewalda944fab2015-04-08 21:02:04 +0000128 > a {
Akronb9cdb102017-04-25 00:52:31 +0200129 padding-left: 6pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000130 }
Akron7e5afce2020-08-25 15:50:19 +0200131
Nils Diewalda944fab2015-04-08 21:02:04 +0000132 li > a {
Akronb9cdb102017-04-25 00:52:31 +0200133 padding-left: 18pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000134 }
Akron7e5afce2020-08-25 15:50:19 +0200135
Nils Diewalda944fab2015-04-08 21:02:04 +0000136 li li > a {
Akronb9cdb102017-04-25 00:52:31 +0200137 padding-left: 36pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000138 }
139 }
140 }
Akron7e5afce2020-08-25 15:50:19 +0200141
Nils Diewalda944fab2015-04-08 21:02:04 +0000142 nav > ul > li > a {
143 font-weight: bold;
144 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200145
Akron189b3592016-01-04 20:56:46 +0100146 fieldset {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200147 position: relative;
Akron189b3592016-01-04 20:56:46 +0100148 border-width: 0;
Akron7e5afce2020-08-25 15:50:19 +0200149
Akrone8235be2016-06-27 11:02:18 +0200150 legend {
151 display: none;
152 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200153
154 input[type="text"],
155 input[type="password"] {
Akron189b3592016-01-04 20:56:46 +0100156 @include input-field;
157 width: 100%;
158 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200159
160 .login {
161 display: none;
162 }
163
164 // search form
Akron189b3592016-01-04 20:56:46 +0100165 > form > div {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200166 position: relative;
167 width: 100%;
168 margin-top: 4px;
169 padding-right: $button-width;
Akron189b3592016-01-04 20:56:46 +0100170 }
171
Akron2670f5b2017-05-31 17:54:07 +0200172 > p {
173 color: $light-green;
174 }
Akron7e5afce2020-08-25 15:50:19 +0200175
Akron066cd352018-05-24 20:41:28 +0200176 > p.announcement {
177 color: $nearly-white;
178 > time {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200179 display: block;
Akron066cd352018-05-24 20:41:28 +0200180 font-size: 70%;
181 }
182 }
Akron7e5afce2020-08-25 15:50:19 +0200183
Akron066cd352018-05-24 20:41:28 +0200184 hr {
185 border: none;
186 border-top: 2px solid $ids-grey-2;
187 }
Akron7e5afce2020-08-25 15:50:19 +0200188
Akrone8235be2016-06-27 11:02:18 +0200189 ul {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200190 display: block;
191 font-size: 80%;
Akrone8235be2016-06-27 11:02:18 +0200192 text-align: right;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200193 padding: 0;
Akrone8235be2016-06-27 11:02:18 +0200194 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200195
196 > li {
197 display: inline;
198 &:first-child::after {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200199 content: " | ";
Akron7e5afce2020-08-25 15:50:19 +0200200 }
201 }
Akrone8235be2016-06-27 11:02:18 +0200202 }
203
Akron189b3592016-01-04 20:56:46 +0100204 button {
205 position: absolute;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200206 top: 0;
207 right: 0;
Akron189b3592016-01-04 20:56:46 +0100208 &::after {
Akronb9cdb102017-04-25 00:52:31 +0200209 content: $fa-login;
Akron189b3592016-01-04 20:56:46 +0100210 }
211 }
212 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000213
Akron7e5afce2020-08-25 15:50:19 +0200214 // Off aside
215 &.off,
216 &:not(:focus):not(.active) {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200217 margin-left: -1 * ($logo-left-distance - math.div($standard-margin, 2));
Akron7e5afce2020-08-25 15:50:19 +0200218 &::after {
219 opacity: 1;
220 }
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200221
Akron7e5afce2020-08-25 15:50:19 +0200222 > * {
223 opacity: 0;
224 transition: {
225 property: opacity;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200226 duration: 0.3s;
Akron7e5afce2020-08-25 15:50:19 +0200227 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 }
229 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000230
Akron7e5afce2020-08-25 15:50:19 +0200231 &.off::after {
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +0200232 display: none;
233 }
234
235 &.invisible {
236 display: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000237 }
238}