Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame^] | 1 | @charset "utf-8"; |
| 2 | @import "../util"; |
| 3 | |
| 4 | div.datepicker { |
| 5 | display: inline-block; |
| 6 | padding: 4pt; |
| 7 | box-shadow: $choose-box-shadow; |
| 8 | border: { |
| 9 | width: 2px; |
| 10 | style: solid; |
| 11 | radius: $standard-border-radius; |
| 12 | } |
| 13 | > div { |
| 14 | font-size: 120%; |
| 15 | width: 45%; |
| 16 | } |
| 17 | > div.year { |
| 18 | float: right; |
| 19 | } |
| 20 | |
| 21 | @include choose-item; |
| 22 | > div > span { |
| 23 | display: inline-block; |
| 24 | &:first-child::before { |
| 25 | cursor: pointer; |
| 26 | font-family: 'FontAwesome'; |
| 27 | content: $fa-previous; |
| 28 | width: 10%; |
| 29 | } |
| 30 | &:last-child::after { |
| 31 | cursor: pointer; |
| 32 | font-family: 'FontAwesome'; |
| 33 | content: $fa-next; |
| 34 | width: 10%; |
| 35 | } |
| 36 | &:nth-child(2) { |
| 37 | display: inline-block; |
| 38 | width: 80%; |
| 39 | text-align: center; |
| 40 | } |
| 41 | } |
| 42 | table { |
| 43 | border-collapse: separate; |
| 44 | border-spacing: 1px; |
| 45 | } |
| 46 | td { |
| 47 | @include standard-text-padding; |
| 48 | text-align: center; |
| 49 | border: { |
| 50 | style: solid; |
| 51 | width: 1px; |
| 52 | } |
| 53 | &:not(.out) { |
| 54 | cursor: pointer; |
| 55 | @include choose-item; |
| 56 | background-color: $nearly-white; |
| 57 | &.today { |
| 58 | background-color: $light-blue; |
| 59 | color: $dark-blue; |
| 60 | text-shadow: none; |
| 61 | } |
| 62 | &.selected { |
| 63 | @include choose-active; |
| 64 | } |
| 65 | &:hover { |
| 66 | @include choose-hover; |
| 67 | } |
| 68 | } |
| 69 | &.out { |
| 70 | border-color: transparent; |
| 71 | } |
| 72 | } |
| 73 | } |