blob: 5d9d4dfd5b37e5d03a3c40671ab0c22aef90e9b2 [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;
5
Nils Diewald7c8ced22015-04-15 19:21:00 +00006aside {
Nils Diewalda944fab2015-04-08 21:02:04 +00007 // box-shadow: 2px 2px 5px darken($dark-green, 15%);
8 // box-shadow: $choose-box-shadow;
9 outline: none;
10 display: block;
11 background-color: $dark-green;
12 position: fixed;
13 z-index: 7100;
14 color: $nearly-white;
15 width: $logo-left-distance;
16 top: 0;
17 left: 0;
18 height: 100%;
19 padding-top: 80px;
20 transition: all .3s ease-in-out;
21 > div {
22 overflow-y: auto;
23 overflow-x: visible;
24 max-height: 100%;
25 }
26 > * {
27 opacity: 1;
28 }
29 &::after {
30 display: block;
31 opacity: 0;
32 cursor: pointer;
33 position: absolute;
34 right: 0;
35 bottom: 0;
Nils Diewald4347ee92015-05-04 20:32:48 +000036 margin-right: -1 * ($standard-margin / 2);
Nils Diewalda944fab2015-04-08 21:02:04 +000037 background-color: $dark-green;
Nils Diewald2488d052015-04-09 21:46:02 +000038 font-family: FontAwesome;
39 content: $fa-bars;
Nils Diewalda944fab2015-04-08 21:02:04 +000040 font-size: 16pt;
41 width: 16pt;
42 height: 17pt;
43 padding: 6pt;
44 border-top-right-radius: $standard-border-radius;
45 }
46 h2 {
47 font: {
48 size: 100%;
49 weight: bold;
50 }
51 line-height: 2em;
52 text-align: center;
53 padding: 0;
54 margin: 0;
55 }
56
57 ul {
58 list-style-type: none;
59/*
60 background-color: $light-green;
61*/
62 margin: 0;
63 font-size: 10pt;
64 text-indent: 0;
65 padding: 0;
66 li {
67 padding: 0;
68 > a {
Nils Diewalda944fab2015-04-08 21:02:04 +000069 padding: $item-padding;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000070 }
Nils Diewalda31a5152015-04-17 21:05:23 +000071
72 li.folded {
73 &.active ul {
74 display: block;
75 }
76 ul {
77 display: none;
78 }
79 }
80
81 &.active > a:link {
82 @include choose-active;
83 }
84
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000085 > a:link {
86 @include choose-item;
Nils Diewalda944fab2015-04-08 21:02:04 +000087 border-right: {
88 width: $border-size;
89 style: solid;
90 }
91
92 display: block;
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000093 &:visited {
Nils Diewalda944fab2015-04-08 21:02:04 +000094 color: inherited;
95 }
96 &:hover {
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000097 // color: inherit;
Nils Diewalda944fab2015-04-08 21:02:04 +000098 transition: none;
99 @include choose-hover;
100 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 }
102 h3 {
103 font: {
104 weight: bold;
105 size: 100%;
106 }
107 padding: 0;
108 margin: 0;
109 }
110/*
111 &.active {
112 text-shadow: none;
113 h3 {
114 margin-bottom: 2pt;
115 padding-bottom: 2pt;
116 border-bottom: 1px solid black;
117 }
118 }
119*/
120 > a {
121 padding-left: 6pt;
122 }
123 li > a {
124 padding-left: 18pt;
125 }
126 li li > a {
127 padding-left: 36pt;
128 }
129 }
130 }
131 nav > ul > li > a {
132 font-weight: bold;
133 }
134}
135
136
Nils Diewald7c8ced22015-04-15 19:21:00 +0000137aside:not(:focus):not(.active) {
Nils Diewald4347ee92015-05-04 20:32:48 +0000138 margin-left: -1 * ($logo-left-distance - ($standard-margin / 2));
Nils Diewalda944fab2015-04-08 21:02:04 +0000139// box-shadow: none;
140/*
141 overflow-y: hidden;
142 overflow-x: visible;
143*/
144 &::after {
145 opacity: 1;
146 }
147 > * {
148 opacity: 0;
149 // TODO
150 transition: {
151 property: opacity;
152 duration: .3s;
153 }
154 }
155}
156
157/*
158#sidebar {
159 text-shadow: none;
160 height: 105%;
161 margin-top: -10px;
162 background-color: #496000;
163 left: 0;
164 top: 0;
165 &.active {
166 box-shadow: 2px 2px 5px darken($dark-green, 15%);
167 margin-left: 0px;
168 left: 0;
169 top: 0;
170 }
171 &:not(.active) > i.fa-bars {
172 opacity: 1;
173 cursor: pointer;
174 background-color: #496000;
175 position: fixed;
176 font-size: 16pt;
177 width: 16pt;
178 height: 17pt;
179 padding: 6pt;
180 bottom: 0;
181 left: 0;
182 border-top-right-radius: 5pt;
183 }
184 dl.info {
185 font-size: 9pt;
186 padding: 0 10pt;
187 > dt {
188 font-weight: bold;
189 float: left;
190 }
191 > dd {
192 text-align: right;
193 }
194 }
195}
196*/