| 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%; | ||||
| Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 17 | padding-top: 65px; |
| 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 | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 91 | @include choose-item; |
| 92 | // color: inherited; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 93 | } |
| 94 | &:hover { | ||||
| Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 95 | // color: inherit; |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 96 | transition: none; |
| 97 | @include choose-hover; | ||||
| 98 | } | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 99 | } |
| 100 | h3 { | ||||
| 101 | font: { | ||||
| 102 | weight: bold; | ||||
| 103 | size: 100%; | ||||
| 104 | } | ||||
| 105 | padding: 0; | ||||
| 106 | margin: 0; | ||||
| 107 | } | ||||
| 108 | /* | ||||
| 109 | &.active { | ||||
| 110 | text-shadow: none; | ||||
| 111 | h3 { | ||||
| 112 | margin-bottom: 2pt; | ||||
| 113 | padding-bottom: 2pt; | ||||
| 114 | border-bottom: 1px solid black; | ||||
| 115 | } | ||||
| 116 | } | ||||
| 117 | */ | ||||
| 118 | > a { | ||||
| 119 | padding-left: 6pt; | ||||
| 120 | } | ||||
| 121 | li > a { | ||||
| 122 | padding-left: 18pt; | ||||
| 123 | } | ||||
| 124 | li li > a { | ||||
| 125 | padding-left: 36pt; | ||||
| 126 | } | ||||
| 127 | } | ||||
| 128 | } | ||||
| 129 | nav > ul > li > a { | ||||
| 130 | font-weight: bold; | ||||
| 131 | } | ||||
| 132 | } | ||||
| 133 | |||||
| Nils Diewald | 565db10 | 2015-05-06 22:48:43 +0000 | [diff] [blame] | 134 | aside:focus { |
| 135 | transition: all .3s ease-in-out; | ||||
| 136 | } | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 137 | |
| Nils Diewald | 565db10 | 2015-05-06 22:48:43 +0000 | [diff] [blame] | 138 | aside.off, aside:not(:focus):not(.active) { |
| Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 139 | margin-left: -1 * ($logo-left-distance - ($standard-margin / 2)); |
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 140 | &::after { |
| 141 | opacity: 1; | ||||
| 142 | } | ||||
| 143 | > * { | ||||
| 144 | opacity: 0; | ||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 145 | transition: { |
| 146 | property: opacity; | ||||
| 147 | duration: .3s; | ||||
| 148 | } | ||||
| 149 | } | ||||
| 150 | } | ||||
| 151 | |||||
| Nils Diewald | 565db10 | 2015-05-06 22:48:43 +0000 | [diff] [blame] | 152 | aside.off::after { |
| 153 | display:none; | ||||
| 154 | } | ||||
| 155 | |||||
| Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 156 | /* |
| 157 | #sidebar { | ||||
| 158 | text-shadow: none; | ||||
| 159 | height: 105%; | ||||
| 160 | margin-top: -10px; | ||||
| 161 | background-color: #496000; | ||||
| 162 | left: 0; | ||||
| 163 | top: 0; | ||||
| 164 | &.active { | ||||
| 165 | box-shadow: 2px 2px 5px darken($dark-green, 15%); | ||||
| 166 | margin-left: 0px; | ||||
| 167 | left: 0; | ||||
| 168 | top: 0; | ||||
| 169 | } | ||||
| 170 | &:not(.active) > i.fa-bars { | ||||
| 171 | opacity: 1; | ||||
| 172 | cursor: pointer; | ||||
| 173 | background-color: #496000; | ||||
| 174 | position: fixed; | ||||
| 175 | font-size: 16pt; | ||||
| 176 | width: 16pt; | ||||
| 177 | height: 17pt; | ||||
| 178 | padding: 6pt; | ||||
| 179 | bottom: 0; | ||||
| 180 | left: 0; | ||||
| 181 | border-top-right-radius: 5pt; | ||||
| 182 | } | ||||
| 183 | dl.info { | ||||
| 184 | font-size: 9pt; | ||||
| 185 | padding: 0 10pt; | ||||
| 186 | > dt { | ||||
| 187 | font-weight: bold; | ||||
| 188 | float: left; | ||||
| 189 | } | ||||
| 190 | > dd { | ||||
| 191 | text-align: right; | ||||
| 192 | } | ||||
| 193 | } | ||||
| 194 | } | ||||
| 195 | */ | ||||