1 | .datepicker {
|
2 | border-radius: $border-radius;
|
3 | #{&}-inline {
|
4 | width: 220px;
|
5 | }
|
6 | direction: ltr;
|
7 | #{&}#{&}-rtl {
|
8 | direction: rtl;
|
9 | table tr td span {
|
10 | float: right;
|
11 | }
|
12 | }
|
13 | #{&}-dropdown {
|
14 | top: 0;
|
15 | left: 0;
|
16 | padding: 4px;
|
17 | &::before {
|
18 | content: '';
|
19 | display: inline-block;
|
20 | border-left: 7px solid transparent;
|
21 | border-right: 7px solid transparent;
|
22 | border-bottom: 7px solid $dropdown-border-color;
|
23 | border-top: 0;
|
24 | border-bottom-color: rgba(0,0,0,.2);
|
25 | position: absolute;
|
26 | }
|
27 | &::after {
|
28 | content: '';
|
29 | display: inline-block;
|
30 | border-left: 6px solid transparent;
|
31 | border-right: 6px solid transparent;
|
32 | border-bottom: 6px solid $dropdown-bg;
|
33 | border-top: 0;
|
34 | position: absolute;
|
35 | }
|
36 | &.datepicker-orient-left:before { left: 6px; }
|
37 | &.datepicker-orient-left:after { left: 7px; }
|
38 | &.datepicker-orient-right:before { right: 6px; }
|
39 | &.datepicker-orient-right:after { right: 7px; }
|
40 | &.datepicker-orient-bottom:before { top: -7px; }
|
41 | &.datepicker-orient-bottom:after { top: -6px; }
|
42 | &.datepicker-orient-top:before {
|
43 | bottom: -7px;
|
44 | border-bottom: 0;
|
45 | border-top: 7px solid $dropdown-border-color;
|
46 | }
|
47 | &.datepicker-orient-top:after {
|
48 | bottom: -6px;
|
49 | border-bottom: 0;
|
50 | border-top: 6px solid $dropdown-bg;
|
51 | }
|
52 | }
|
53 | > div {
|
54 | display: none;
|
55 | }
|
56 | table {
|
57 | margin: 0;
|
58 | -webkit-touch-callout: none;
|
59 | -webkit-user-select: none;
|
60 | -khtml-user-select: none;
|
61 | -moz-user-select: none;
|
62 | -ms-user-select: none;
|
63 | user-select: none;
|
64 | tr {
|
65 | td, th {
|
66 | text-align: center;
|
67 | width: 30px;
|
68 | height: 30px;
|
69 | border-radius: 4px;
|
70 | border: none;
|
71 | }
|
72 | }
|
73 | }
|
74 |
|
75 |
|
76 | .table-striped & table tr {
|
77 | td, th {
|
78 | background-color: transparent;
|
79 | }
|
80 | }
|
81 | table tr td {
|
82 | &.old,
|
83 | &.new {
|
84 | color: $btn-link-disabled-color;
|
85 | }
|
86 | &.day:hover,
|
87 | &.focused {
|
88 | background: $gray-lighter;
|
89 | cursor: pointer;
|
90 | }
|
91 | &.disabled,
|
92 | &.disabled:hover {
|
93 | background: none;
|
94 | color: $btn-link-disabled-color;
|
95 | cursor: default;
|
96 | }
|
97 | &.highlighted {
|
98 | $highlighted-bg: $state-info-bg;
|
99 | @include button-variant(#000, $highlighted-bg, darken($highlighted-bg, 20%));
|
100 | border-radius: 0;
|
101 |
|
102 | &.focused {
|
103 | background: darken($highlighted-bg, 10%);
|
104 | }
|
105 |
|
106 | &.disabled,
|
107 | &.disabled:active {
|
108 | background: $highlighted-bg;
|
109 | color: $btn-link-disabled-color;
|
110 | }
|
111 | }
|
112 | &.today {
|
113 | $today-bg: lighten(orange, 30%);
|
114 | @include button-variant(#000, $today-bg, darken($today-bg, 20%));
|
115 |
|
116 | &.focused {
|
117 | background: darken($today-bg, 10%);
|
118 | }
|
119 |
|
120 | &.disabled,
|
121 | &.disabled:active {
|
122 | background: $today-bg;
|
123 | color: $btn-link-disabled-color;
|
124 | }
|
125 | }
|
126 | &.range {
|
127 | $range-bg: $gray-lighter;
|
128 | @include button-variant(#000, $range-bg, darken($range-bg, 20%));
|
129 | border-radius: 0;
|
130 |
|
131 | &.focused {
|
132 | background: darken($range-bg, 10%);
|
133 | }
|
134 |
|
135 | &.disabled,
|
136 | &.disabled:active {
|
137 | background: $range-bg;
|
138 | color: $btn-link-disabled-color;
|
139 | }
|
140 | }
|
141 | &.range.highlighted {
|
142 | $range-highlighted-bg: mix($state-info-bg, $gray-lighter, 50%);
|
143 | @include button-variant(#000, $range-highlighted-bg, darken($range-highlighted-bg, 20%));
|
144 |
|
145 | &.focused {
|
146 | background: darken($range-highlighted-bg, 10%);
|
147 | }
|
148 |
|
149 | &.disabled,
|
150 | &.disabled:active {
|
151 | background: $range-highlighted-bg;
|
152 | color: $btn-link-disabled-color;
|
153 | }
|
154 | }
|
155 | &.range.today {
|
156 | $range-today-bg: mix(orange, $gray-lighter, 50%);
|
157 | @include button-variant(#000, $range-today-bg, darken($range-today-bg, 20%));
|
158 |
|
159 | &.disabled,
|
160 | &.disabled:active {
|
161 | background: $range-today-bg;
|
162 | color: $btn-link-disabled-color;
|
163 | }
|
164 | }
|
165 | &.selected,
|
166 | &.selected.highlighted {
|
167 | @include button-variant(#fff, $gray-light, $gray);
|
168 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
169 | }
|
170 | &.active,
|
171 | &.active.highlighted {
|
172 | @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
173 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
174 | }
|
175 | span {
|
176 | display: block;
|
177 | width: 23%;
|
178 | height: 54px;
|
179 | line-height: 54px;
|
180 | float: left;
|
181 | margin: 1%;
|
182 | cursor: pointer;
|
183 | border-radius: 4px;
|
184 | &:hover,
|
185 | &.focused {
|
186 | background: $gray-lighter;
|
187 | }
|
188 | &.disabled,
|
189 | &.disabled:hover {
|
190 | background: none;
|
191 | color: $btn-link-disabled-color;
|
192 | cursor: default;
|
193 | }
|
194 | &.active,
|
195 | &.active:hover,
|
196 | &.active.disabled,
|
197 | &.active.disabled:hover {
|
198 | @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
199 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
200 | }
|
201 | &.old,
|
202 | &.new {
|
203 | color: $btn-link-disabled-color;
|
204 | }
|
205 | }
|
206 | }
|
207 |
|
208 | .datepicker-switch {
|
209 | width: 145px;
|
210 | }
|
211 |
|
212 | .datepicker-switch,
|
213 | .prev,
|
214 | .next,
|
215 | tfoot tr th {
|
216 | cursor: pointer;
|
217 | &:hover {
|
218 | background: $gray-lighter;
|
219 | }
|
220 | }
|
221 |
|
222 |
|
223 | .cw {
|
224 | font-size: 10px;
|
225 | width: 12px;
|
226 | padding: 0 2px 0 5px;
|
227 | vertical-align: middle;
|
228 | }
|
229 | }
|
230 | .input-group.date .input-group-addon {
|
231 | cursor: pointer;
|
232 | }
|
233 | .input-daterange {
|
234 | width: 100%;
|
235 | input {
|
236 | text-align: center;
|
237 | }
|
238 | input:first-child {
|
239 | border-radius: 3px 0 0 3px;
|
240 | }
|
241 | input:last-child {
|
242 | border-radius: 0 3px 3px 0;
|
243 | }
|
244 | .input-group-addon {
|
245 | width: auto;
|
246 | min-width: 16px;
|
247 | padding: 4px 5px;
|
248 | line-height: $line-height;
|
249 | text-shadow: 0 1px 0 #fff;
|
250 | border-width: 1px 0;
|
251 | margin-left: -5px;
|
252 | margin-right: -5px;
|
253 | }
|
254 | }
|
255 |
|
256 | .has-datepicker[type="date"]::-webkit-calendar-picker-indicator,
|
257 | .has-datepicker[type="date"]::-webkit-inner-spin-button{
|
258 | display: none;
|
259 | }
|
260 | .has-datepicker[type="date"]::-webkit-input-placeholder{
|
261 | visibility: hidden !important;
|
262 | }
|