blob: 7ef4fde75409e6cbc58c613517b49d34865c31fc [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
4$border-size: 2px;
Akron189b3592016-01-04 20:56:46 +01005$right-padding: 60px;
Nils Diewalda944fab2015-04-08 21:02:04 +00006
Nils Diewald7c8ced22015-04-15 19:21:00 +00007aside {
Nils Diewalda944fab2015-04-08 21:02:04 +00008 outline: none;
Akron189b3592016-01-04 20:56:46 +01009 font-size: 10pt;
Nils Diewalda944fab2015-04-08 21:02:04 +000010 display: block;
11 background-color: $dark-green;
12 position: fixed;
Akronbd36c712018-02-15 11:14:23 +010013 z-index: 100; // Needs to be behind alerts
Nils Diewalda944fab2015-04-08 21:02:04 +000014 color: $nearly-white;
15 width: $logo-left-distance;
16 top: 0;
17 left: 0;
18 height: 100%;
Nils Diewald61e6ff52015-05-07 17:26:50 +000019 padding-top: 65px;
Nils Diewalda944fab2015-04-08 21:02:04 +000020 > div {
21 overflow-y: auto;
22 overflow-x: visible;
23 max-height: 100%;
24 }
25 > * {
26 opacity: 1;
27 }
28 &::after {
Akron1885ce92017-04-26 23:10:01 +020029 position: absolute;
Nils Diewalda944fab2015-04-08 21:02:04 +000030 display: block;
31 opacity: 0;
32 cursor: pointer;
Nils Diewalda944fab2015-04-08 21:02:04 +000033 right: 0;
34 bottom: 0;
Nils Diewald4347ee92015-05-04 20:32:48 +000035 margin-right: -1 * ($standard-margin / 2);
Nils Diewalda944fab2015-04-08 21:02:04 +000036 background-color: $dark-green;
Nils Diewald2488d052015-04-09 21:46:02 +000037 font-family: FontAwesome;
38 content: $fa-bars;
Nils Diewalda944fab2015-04-08 21:02:04 +000039 font-size: 16pt;
40 width: 16pt;
41 height: 17pt;
42 padding: 6pt;
43 border-top-right-radius: $standard-border-radius;
44 }
Akron189b3592016-01-04 20:56:46 +010045 h2, legend {
Nils Diewalda944fab2015-04-08 21:02:04 +000046 font: {
47 size: 100%;
48 weight: bold;
49 }
50 line-height: 2em;
51 text-align: center;
52 padding: 0;
53 margin: 0;
54 }
55
Akrone8235be2016-06-27 11:02:18 +020056 ul.nav {
Nils Diewalda944fab2015-04-08 21:02:04 +000057 list-style-type: none;
58/*
59 background-color: $light-green;
60*/
61 margin: 0;
62 font-size: 10pt;
63 text-indent: 0;
64 padding: 0;
65 li {
66 padding: 0;
67 > a {
Akronb9cdb102017-04-25 00:52:31 +020068 padding: $item-padding;
69 &:visited {
70 @include choose-item;
71 }
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000072 }
Nils Diewalda31a5152015-04-17 21:05:23 +000073
74 li.folded {
Akronb9cdb102017-04-25 00:52:31 +020075 &.active ul {
76 display: block;
77 }
78 ul {
79 display: none;
80 }
Nils Diewalda31a5152015-04-17 21:05:23 +000081 }
82
83 &.active > a:link {
Akronb9cdb102017-04-25 00:52:31 +020084 @include choose-active;
Nils Diewalda31a5152015-04-17 21:05:23 +000085 }
86
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000087 > a:link {
Akronb9cdb102017-04-25 00:52:31 +020088 @include choose-item;
89 border-right: {
90 width: $border-size;
91 style: solid;
92 }
Nils Diewalda944fab2015-04-08 21:02:04 +000093
Akronb9cdb102017-04-25 00:52:31 +020094 display: block;
95 &:hover {
96 // color: inherit;
97 transition: none;
98 @include choose-hover;
99 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000100 }
101 h3 {
102 font: {
Akronb9cdb102017-04-25 00:52:31 +0200103 weight: bold;
104 size: 100%;
105 }
106 padding: 0;
107 margin: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000108 }
109/*
110 &.active {
Akronb9cdb102017-04-25 00:52:31 +0200111 text-shadow: none;
112 h3 {
113 margin-bottom: 2pt;
114 padding-bottom: 2pt;
115 border-bottom: 1px solid black;
116 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 }
118*/
119 > a {
Akronb9cdb102017-04-25 00:52:31 +0200120 padding-left: 6pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 }
122 li > a {
Akronb9cdb102017-04-25 00:52:31 +0200123 padding-left: 18pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000124 }
125 li li > a {
Akronb9cdb102017-04-25 00:52:31 +0200126 padding-left: 36pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000127 }
128 }
129 }
130 nav > ul > li > a {
131 font-weight: bold;
132 }
Akronb9cdb102017-04-25 00:52:31 +0200133
Akron189b3592016-01-04 20:56:46 +0100134 fieldset {
135 position: relative;
136 border-width: 0;
Akrone8235be2016-06-27 11:02:18 +0200137 legend {
138 display: none;
139 }
Akronb9cdb102017-04-25 00:52:31 +0200140
Akron189b3592016-01-04 20:56:46 +0100141 input[type=text], input[type=password] {
142 @include input-field;
143 width: 100%;
144 }
Akronb9cdb102017-04-25 00:52:31 +0200145
Akron189b3592016-01-04 20:56:46 +0100146 > form > div {
147 position: relative;
148 width: 100%;
149 margin-top: 4px;
150 padding-right: $button-width
151 }
152
Akron2670f5b2017-05-31 17:54:07 +0200153 > p {
154 color: $light-green;
155 }
Akrone8235be2016-06-27 11:02:18 +0200156 ul {
157 display: block;
158 font-size: 80%;
159 text-align: right;
160 > li {
Akronb9cdb102017-04-25 00:52:31 +0200161 display: inline;
162 &:first-child::after {
163 content: ' | ';
164 }
Akrone8235be2016-06-27 11:02:18 +0200165 }
166 padding: 0;
167 margin-top: 0;
168 }
169
Akron189b3592016-01-04 20:56:46 +0100170 button {
171 position: absolute;
172 // height: 100%;
173 top: 0;
174 right: 0;
175 &::after {
Akronb9cdb102017-04-25 00:52:31 +0200176 content: $fa-login;
Akron189b3592016-01-04 20:56:46 +0100177 }
178 }
179 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000180}
181
Akrone0c32c72017-04-25 22:38:23 +0200182aside {
Nils Diewald565db102015-05-06 22:48:43 +0000183 transition: all .3s ease-in-out;
184}
Nils Diewalda944fab2015-04-08 21:02:04 +0000185
Nils Diewald565db102015-05-06 22:48:43 +0000186aside.off, aside:not(:focus):not(.active) {
Nils Diewald4347ee92015-05-04 20:32:48 +0000187 margin-left: -1 * ($logo-left-distance - ($standard-margin / 2));
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 &::after {
189 opacity: 1;
190 }
Akronb9cdb102017-04-25 00:52:31 +0200191
Nils Diewalda944fab2015-04-08 21:02:04 +0000192 > * {
193 opacity: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +0000194 transition: {
195 property: opacity;
196 duration: .3s;
197 }
198 }
199}
200
Nils Diewald565db102015-05-06 22:48:43 +0000201aside.off::after {
202 display:none;
203}
204
Akronae8f31c2017-11-28 18:05:52 +0100205
Nils Diewalda944fab2015-04-08 21:02:04 +0000206/*
207#sidebar {
208 text-shadow: none;
209 height: 105%;
210 margin-top: -10px;
211 background-color: #496000;
212 left: 0;
213 top: 0;
214 &.active {
215 box-shadow: 2px 2px 5px darken($dark-green, 15%);
216 margin-left: 0px;
217 left: 0;
218 top: 0;
219 }
220 &:not(.active) > i.fa-bars {
221 opacity: 1;
222 cursor: pointer;
223 background-color: #496000;
224 position: fixed;
225 font-size: 16pt;
226 width: 16pt;
227 height: 17pt;
228 padding: 6pt;
229 bottom: 0;
230 left: 0;
231 border-top-right-radius: 5pt;
232 }
233 dl.info {
234 font-size: 9pt;
235 padding: 0 10pt;
236 > dt {
237 font-weight: bold;
238 float: left;
239 }
240 > dd {
241 text-align: right;
242 }
243 }
244}
245*/