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