| Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 1 | @import "colors"; | 
|  | 2 |  | 
|  | 3 | #sidebar { | 
|  | 4 | color: #fff; | 
|  | 5 | text-shadow: none; | 
|  | 6 | transition: all .3s ease-in-out; | 
|  | 7 | position: fixed; | 
|  | 8 | z-index: 500; | 
|  | 9 | height: 105%; | 
|  | 10 | margin-top: -10px; | 
|  | 11 | background-color: #496000; | 
|  | 12 | width: 230px; | 
|  | 13 | margin-left: -215px; | 
|  | 14 | padding-top: 80px; | 
|  | 15 | left: 0; | 
|  | 16 | top: 0; | 
|  | 17 | &.active { | 
|  | 18 | box-shadow: 2px 2px 5px darken($dark-green, 15%); | 
|  | 19 | margin-left: 0px; | 
|  | 20 | left: 0; | 
|  | 21 | top: 0; | 
|  | 22 | } | 
|  | 23 | > * { | 
|  | 24 | opacity: 0; | 
|  | 25 | // TODO | 
|  | 26 | transition: { | 
|  | 27 | property: opacity; | 
|  | 28 | duration: .3s; | 
|  | 29 | } | 
|  | 30 | } | 
|  | 31 | &.active { | 
|  | 32 | > * { | 
|  | 33 | opacity: 1; | 
|  | 34 | } | 
|  | 35 | > i.fa-bars { | 
|  | 36 | opacity: 0; | 
|  | 37 | } | 
|  | 38 | } | 
|  | 39 | &:not(.active) > i.fa-bars { | 
|  | 40 | opacity: 1; | 
|  | 41 | cursor: pointer; | 
|  | 42 | background-color: #496000; | 
|  | 43 | position: fixed; | 
|  | 44 | font-size: 16pt; | 
|  | 45 | width: 16pt; | 
|  | 46 | height: 17pt; | 
|  | 47 | padding: 6pt; | 
|  | 48 | bottom: 0; | 
|  | 49 | left: 0; | 
|  | 50 | border-top-right-radius: 5pt; | 
|  | 51 | } | 
|  | 52 | h2 { | 
|  | 53 | font: { | 
|  | 54 | size: 100%; | 
|  | 55 | weight: bold; | 
|  | 56 | } | 
|  | 57 | text-align: center; | 
|  | 58 | padding: 0; | 
|  | 59 | margin: 0 0 5pt 0; | 
|  | 60 | } | 
|  | 61 | ul { | 
|  | 62 | list-style-type: none; | 
|  | 63 | margin: 0; | 
|  | 64 | font-size: 10pt; | 
|  | 65 | text-indent: 0; | 
|  | 66 | padding: 0; | 
|  | 67 | li { | 
|  | 68 | padding: 4pt 10pt; | 
|  | 69 | h3 { | 
|  | 70 | font: { | 
|  | 71 | weight: bold; | 
|  | 72 | size: 100%; | 
|  | 73 | } | 
|  | 74 | padding: 0; | 
|  | 75 | margin: 0; | 
|  | 76 | } | 
|  | 77 | &.active { | 
|  | 78 | background-color: $light-green; | 
|  | 79 | text-shadow: 1px 1px rgba(0, 0, 0, 0.4); | 
|  | 80 | h3 { | 
|  | 81 | margin-bottom: 2pt; | 
|  | 82 | padding-bottom: 2pt; | 
|  | 83 | border-bottom: 1px solid black; | 
|  | 84 | } | 
|  | 85 | } | 
|  | 86 | } | 
|  | 87 | } | 
|  | 88 | dl.info { | 
|  | 89 | font-size: 9pt; | 
|  | 90 | padding: 0 10pt; | 
|  | 91 | > dt { | 
|  | 92 | font-weight: bold; | 
|  | 93 | float: left; | 
|  | 94 | } | 
|  | 95 | > dd { | 
|  | 96 | text-align: right; | 
|  | 97 | } | 
|  | 98 | } | 
|  | 99 | } |