Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame^] | 1 | @charset "utf-8"; |
| 2 | @import "util"; |
| 3 | |
| 4 | $border-size: 2px; |
| 5 | |
| 6 | #sidebar { |
| 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; |
| 38 | content: '#'; |
| 39 | font-size: 16pt; |
| 40 | width: 16pt; |
| 41 | height: 17pt; |
| 42 | padding: 6pt; |
| 43 | border-top-right-radius: $standard-border-radius; |
| 44 | } |
| 45 | h2 { |
| 46 | font: { |
| 47 | size: 100%; |
| 48 | weight: bold; |
| 49 | } |
| 50 | line-height: 2em; |
| 51 | text-align: center; |
| 52 | padding: 0; |
| 53 | margin: 0; |
| 54 | } |
| 55 | |
| 56 | ul { |
| 57 | 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 { |
| 68 | @include choose-item; |
| 69 | padding: $item-padding; |
| 70 | |
| 71 | border-right: { |
| 72 | width: $border-size; |
| 73 | style: solid; |
| 74 | } |
| 75 | |
| 76 | display: block; |
| 77 | &:link, &:visited { |
| 78 | color: inherited; |
| 79 | } |
| 80 | &:hover { |
| 81 | color: inherit; |
| 82 | transition: none; |
| 83 | @include choose-hover; |
| 84 | } |
| 85 | &.active, &:active { |
| 86 | @include choose-active; |
| 87 | } |
| 88 | } |
| 89 | h3 { |
| 90 | font: { |
| 91 | weight: bold; |
| 92 | size: 100%; |
| 93 | } |
| 94 | padding: 0; |
| 95 | margin: 0; |
| 96 | } |
| 97 | /* |
| 98 | &.active { |
| 99 | text-shadow: none; |
| 100 | h3 { |
| 101 | margin-bottom: 2pt; |
| 102 | padding-bottom: 2pt; |
| 103 | border-bottom: 1px solid black; |
| 104 | } |
| 105 | } |
| 106 | */ |
| 107 | > a { |
| 108 | padding-left: 6pt; |
| 109 | } |
| 110 | li > a { |
| 111 | padding-left: 18pt; |
| 112 | } |
| 113 | li li > a { |
| 114 | padding-left: 36pt; |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | nav > ul > li > a { |
| 119 | font-weight: bold; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | |
| 124 | #sidebar:not(:focus):not(.active) { |
| 125 | margin-left: -1 * ($logo-left-distance - 15px); |
| 126 | // box-shadow: none; |
| 127 | /* |
| 128 | overflow-y: hidden; |
| 129 | overflow-x: visible; |
| 130 | */ |
| 131 | &::after { |
| 132 | opacity: 1; |
| 133 | } |
| 134 | > * { |
| 135 | opacity: 0; |
| 136 | // TODO |
| 137 | transition: { |
| 138 | property: opacity; |
| 139 | duration: .3s; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /* |
| 145 | #sidebar { |
| 146 | text-shadow: none; |
| 147 | height: 105%; |
| 148 | margin-top: -10px; |
| 149 | background-color: #496000; |
| 150 | left: 0; |
| 151 | top: 0; |
| 152 | &.active { |
| 153 | box-shadow: 2px 2px 5px darken($dark-green, 15%); |
| 154 | margin-left: 0px; |
| 155 | left: 0; |
| 156 | top: 0; |
| 157 | } |
| 158 | &:not(.active) > i.fa-bars { |
| 159 | opacity: 1; |
| 160 | cursor: pointer; |
| 161 | background-color: #496000; |
| 162 | position: fixed; |
| 163 | font-size: 16pt; |
| 164 | width: 16pt; |
| 165 | height: 17pt; |
| 166 | padding: 6pt; |
| 167 | bottom: 0; |
| 168 | left: 0; |
| 169 | border-top-right-radius: 5pt; |
| 170 | } |
| 171 | dl.info { |
| 172 | font-size: 9pt; |
| 173 | padding: 0 10pt; |
| 174 | > dt { |
| 175 | font-weight: bold; |
| 176 | float: left; |
| 177 | } |
| 178 | > dd { |
| 179 | text-align: right; |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | */ |