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 | // 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; |
| 36 | margin-right: -30px; |
| 37 | background-color: $dark-green; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 38 | font-family: FontAwesome; |
| 39 | content: $fa-bars; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 40 | 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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 69 | padding: $item-padding; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 70 | } |
Nils Diewald | a31a515 | 2015-04-17 21:05:23 +0000 | [diff] [blame] | 71 | |
| 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 Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 85 | > a:link { |
| 86 | @include choose-item; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 87 | border-right: { |
| 88 | width: $border-size; |
| 89 | style: solid; |
| 90 | } |
| 91 | |
| 92 | display: block; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 93 | &:visited { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 94 | color: inherited; |
| 95 | } |
| 96 | &:hover { |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 97 | // color: inherit; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 98 | transition: none; |
| 99 | @include choose-hover; |
| 100 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 101 | } |
| 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 Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 137 | aside:not(:focus):not(.active) { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 138 | margin-left: -1 * ($logo-left-distance - 15px); |
| 139 | // 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 | */ |