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