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