blob: f9cb33dbad9b9e975e6a0e9405f7a6c0628fe873 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
Nils Diewald7c8ced22015-04-15 19:21:00 +00004aside {
Nils Diewalda944fab2015-04-08 21:02:04 +00005 background-color: $dark-green;
Akron7e5afce2020-08-25 15:50:19 +02006 color: $nearly-white;
7 width: $logo-left-distance;
8 position: fixed;
9 display: block;
10 transition: all .3s ease-in-out;
11 outline: none;
12 font-size: 10pt;
13 z-index: 100; // Needs to be behind alerts
14 top: 0;
15 left: 0;
16 height: 100%;
Nils Diewald61e6ff52015-05-07 17:26:50 +000017 padding-top: 65px;
Akron7e5afce2020-08-25 15:50:19 +020018
Nils Diewalda944fab2015-04-08 21:02:04 +000019 > div {
20 overflow-y: auto;
21 overflow-x: visible;
22 max-height: 100%;
23 }
Akron7e5afce2020-08-25 15:50:19 +020024
Nils Diewalda944fab2015-04-08 21:02:04 +000025 > * {
26 opacity: 1;
27 }
Akron7e5afce2020-08-25 15:50:19 +020028
Nils Diewalda944fab2015-04-08 21:02:04 +000029 &::after {
Akron7e5afce2020-08-25 15:50:19 +020030 @include icon-font;
31 position: absolute;
32 display: block;
33 opacity: 0;
34 cursor: pointer;
35 right: 0;
36 bottom: 0;
37 content: $fa-login;
Nils Diewalda944fab2015-04-08 21:02:04 +000038 font-size: 16pt;
Akron7e5afce2020-08-25 15:50:19 +020039 width: 16pt;
40 height: 17pt;
41 padding: 6pt;
42 background-color: $dark-green;
Nils Diewalda944fab2015-04-08 21:02:04 +000043 border-top-right-radius: $standard-border-radius;
Akron7e5afce2020-08-25 15:50:19 +020044 margin-right: -1 * ($standard-margin / 2);
Nils Diewalda944fab2015-04-08 21:02:04 +000045 }
46
Akron7e5afce2020-08-25 15:50:19 +020047 h2,
48 legend {
49 line-height: 2em;
50 text-align: center;
51 padding: 0;
52 margin: 0;
53 font: {
54 size: 100%;
55 weight: bold;
56 }
57 }
58
59 /**
60 * Navigation menu
61 */
Akrone8235be2016-06-27 11:02:18 +020062 ul.nav {
Nils Diewalda944fab2015-04-08 21:02:04 +000063 list-style-type: none;
Akron7e5afce2020-08-25 15:50:19 +020064 margin: 0;
65 font-size: 10pt;
66 text-indent: 0;
67 padding: 0;
68
Nils Diewalda944fab2015-04-08 21:02:04 +000069 li {
70 padding: 0;
71 > a {
Akronb9cdb102017-04-25 00:52:31 +020072 padding: $item-padding;
73 &:visited {
74 @include choose-item;
75 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000076 }
Nils Diewalda31a5152015-04-17 21:05:23 +000077
78 li.folded {
Akronb9cdb102017-04-25 00:52:31 +020079 &.active ul {
80 display: block;
81 }
82 ul {
83 display: none;
84 }
Nils Diewalda31a5152015-04-17 21:05:23 +000085 }
86
87 &.active > a:link {
Akronb9cdb102017-04-25 00:52:31 +020088 @include choose-active;
Nils Diewalda31a5152015-04-17 21:05:23 +000089 }
90
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000091 > a:link {
Akronb9cdb102017-04-25 00:52:31 +020092 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020093 display: block;
94
Akronb9cdb102017-04-25 00:52:31 +020095 border-right: {
96 width: $border-size;
97 style: solid;
98 }
Nils Diewalda944fab2015-04-08 21:02:04 +000099
Akronb9cdb102017-04-25 00:52:31 +0200100 &:hover {
Akronb9cdb102017-04-25 00:52:31 +0200101 @include choose-hover;
Akron7e5afce2020-08-25 15:50:19 +0200102 transition: none;
Akronb9cdb102017-04-25 00:52:31 +0200103 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000104 }
Akron7e5afce2020-08-25 15:50:19 +0200105
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 h3 {
Akronb9cdb102017-04-25 00:52:31 +0200107 padding: 0;
108 margin: 0;
Akron7e5afce2020-08-25 15:50:19 +0200109 font: {
110 weight: bold;
111 size: 100%;
112 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000113 }
Akron7e5afce2020-08-25 15:50:19 +0200114
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 > a {
Akronb9cdb102017-04-25 00:52:31 +0200116 padding-left: 6pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 }
Akron7e5afce2020-08-25 15:50:19 +0200118
Nils Diewalda944fab2015-04-08 21:02:04 +0000119 li > a {
Akronb9cdb102017-04-25 00:52:31 +0200120 padding-left: 18pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 }
Akron7e5afce2020-08-25 15:50:19 +0200122
Nils Diewalda944fab2015-04-08 21:02:04 +0000123 li li > a {
Akronb9cdb102017-04-25 00:52:31 +0200124 padding-left: 36pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000125 }
126 }
127 }
Akron7e5afce2020-08-25 15:50:19 +0200128
Nils Diewalda944fab2015-04-08 21:02:04 +0000129 nav > ul > li > a {
130 font-weight: bold;
131 }
Akronb9cdb102017-04-25 00:52:31 +0200132
Akron189b3592016-01-04 20:56:46 +0100133 fieldset {
Akron7e5afce2020-08-25 15:50:19 +0200134 position: relative;
Akron189b3592016-01-04 20:56:46 +0100135 border-width: 0;
Akron7e5afce2020-08-25 15:50:19 +0200136
Akrone8235be2016-06-27 11:02:18 +0200137 legend {
138 display: none;
139 }
Akronb9cdb102017-04-25 00:52:31 +0200140
Akron7e5afce2020-08-25 15:50:19 +0200141 input[type=text],
142 input[type=password] {
Akron189b3592016-01-04 20:56:46 +0100143 @include input-field;
144 width: 100%;
145 }
Akronb9cdb102017-04-25 00:52:31 +0200146
Akron189b3592016-01-04 20:56:46 +0100147 > form > div {
Akron7e5afce2020-08-25 15:50:19 +0200148 position: relative;
149 width: 100%;
150 margin-top: 4px;
Akron189b3592016-01-04 20:56:46 +0100151 padding-right: $button-width
152 }
153
Akron2670f5b2017-05-31 17:54:07 +0200154 > p {
155 color: $light-green;
156 }
Akron7e5afce2020-08-25 15:50:19 +0200157
Akron066cd352018-05-24 20:41:28 +0200158 > p.announcement {
159 color: $nearly-white;
160 > time {
Akron7e5afce2020-08-25 15:50:19 +0200161 display: block;
Akron066cd352018-05-24 20:41:28 +0200162 font-size: 70%;
163 }
164 }
Akron7e5afce2020-08-25 15:50:19 +0200165
Akron066cd352018-05-24 20:41:28 +0200166 hr {
167 border: none;
168 border-top: 2px solid $ids-grey-2;
169 }
Akron7e5afce2020-08-25 15:50:19 +0200170
Akrone8235be2016-06-27 11:02:18 +0200171 ul {
Akron7e5afce2020-08-25 15:50:19 +0200172 display: block;
173 font-size: 80%;
Akrone8235be2016-06-27 11:02:18 +0200174 text-align: right;
Akron7e5afce2020-08-25 15:50:19 +0200175 padding: 0;
Akrone8235be2016-06-27 11:02:18 +0200176 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200177
178 > li {
179 display: inline;
180 &:first-child::after {
181 content: ' | ';
182 }
183 }
Akrone8235be2016-06-27 11:02:18 +0200184 }
185
Akron189b3592016-01-04 20:56:46 +0100186 button {
187 position: absolute;
Akron7e5afce2020-08-25 15:50:19 +0200188 top: 0;
189 right: 0;
Akron189b3592016-01-04 20:56:46 +0100190 &::after {
Akronb9cdb102017-04-25 00:52:31 +0200191 content: $fa-login;
Akron189b3592016-01-04 20:56:46 +0100192 }
193 }
194 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000195
Akron7e5afce2020-08-25 15:50:19 +0200196 // Off aside
197 &.off,
198 &:not(:focus):not(.active) {
199 margin-left: -1 * ($logo-left-distance - ($standard-margin / 2));
200 &::after {
201 opacity: 1;
202 }
Akronb9cdb102017-04-25 00:52:31 +0200203
Akron7e5afce2020-08-25 15:50:19 +0200204 > * {
205 opacity: 0;
206 transition: {
207 property: opacity;
208 duration: .3s;
209 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000210 }
211 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000212
Akron7e5afce2020-08-25 15:50:19 +0200213 &.off::after {
214 display:none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 }
216}