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