forked from Twipped/Kalendae
-
Notifications
You must be signed in to change notification settings - Fork 4
/
kalendae.less
254 lines (221 loc) · 5.11 KB
/
kalendae.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
@import "../../../modules/formFunnel/style/variables";
@color: @white;
@selection-color: @blue;
@border-color: @grey;
/** Base container **/
.kalendae {
background: @color;
padding: 10px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
font-size: 11px;
cursor: default;
position: relative;
/** Popup Container for Kalendae.Input **/
&.k-floating {
position: absolute;
top: 0;
left: 0;
z-index: 100000;
margin: 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
/** Month Container **/
.k-calendar {
display: inline-block;
width: 180px;
}
/** Month Separator **/
.k-separator {
display: inline-block;
zoom: 1;
width: 2px;
vertical-align: top;
margin: 0 8px;
}
/** Force specific width for month container contents **/
.k-title,
.k-header,
.k-days {
display: block;
overflow: hidden;
}
/** Month Title Row **/
.k-title {
background: @selection-color;
text-align: center;
white-space: nowrap;
position: relative;
padding: 10px 0;
color: @color;
}
.k-header {
padding: 10px 10px 0 10px;
border-width: 0 1px;
border-color: @border-color;
border-style: solid;
}
.k-days {
padding: 10px;
border: 1px solid @border-color;
border-top-width: 0;
}
/** Kalendae.Input's popup close button **/
.k-btn-close {
position: absolute;
top: -8px;
right: -8px;
width: 16px;
height: 16px;
background: white;
border: 2px solid #ccc;
color: #999;
line-height: 17px;
text-align: center;
font-size: 13px;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
cursor: pointer;
text-decoration: none;
&:after {
content: "\2716";
}
&:hover {
color: #7EA0E2;
background: white;
border-color: #7EA0E2;
}
}
.k-caption {
font-size: 12px;
line-height: 18px;
}
/** Month and Year Buttons **/
.k-btn-previous-month,
.k-btn-next-month,
.k-btn-previous-year,
.k-btn-next-year {
width: 16px;
height: 16px;
cursor: pointer;
position: absolute;
top: 8px;
color: @color;
font-size: 26px;
line-height: 18px;
font-weight: bold;
text-decoration: none;
}
.k-btn-previous-year {
left: 0;
}
.k-btn-previous-month {
left: 16px;
}
.k-btn-next-month {
right: 16px;
}
.k-btn-next-year {
right: 0;
}
.k-btn-previous-month:after {
content: "\2039";
}
.k-btn-next-month:after {
content: "\203A";
}
.k-btn-previous-year:after {
content: "\00AB";
}
.k-btn-next-year:after {
content: "\00BB";
}
.k-btn-previous-month:hover,
.k-btn-next-month:hover {
color: @color;
}
.k-btn-previous-year:hover,
.k-btn-next-year:hover {
color: #6FDF81;
}
/** Remove extra buttons when calendar shows multiple months **/
.k-first-month .k-btn-next-month,
.k-middle-month .k-btn-next-month,
.k-middle-month .k-btn-previous-month,
.k-last-month .k-btn-previous-month,
.k-first-month .k-btn-next-year,
.k-middle-month .k-btn-next-year,
.k-middle-month .k-btn-previous-year,
.k-last-month .k-btn-previous-year {
display: none;
}
/** Disable year nav option **/
.k-title.k-disable-year-nav .k-btn-next-year,
.k-title.k-disable-year-nav .k-btn-previous-year {
display: none;
}
.k-title.k-disable-year-nav .k-btn-next-month {
right: 0;
}
.k-title.k-disable-year-nav .k-btn-previous-month {
left: 0;
}
/** Hide unusable buttons **/
&.k-disable-next-month-btn .k-btn-next-month,
&.k-disable-previous-month-btn .k-btn-previous-month,
&.k-disable-next-year-btn .k-btn-next-year,
&.k-disable-previous-year-btn .k-btn-previous-year {
display: none;
}
/** Week columns and day cells **/
.k-header span,
.k-days span {
float: left;
}
.k-header span {
text-align: center;
font-weight: bold;
width: 22px;
padding: 1px 0;
color: #666;
}
.k-days span {
text-align: center;
width: 22px;
line-height: 1em;
padding: 4px;
color: #999;
/** Days outside of the month view (before the first day of the month, after the last day of the month) **/
&.k-out-of-month {
color: #ddd;
&.k-range {}
}
/** Days inside of the month view not necassiarly after today **/
&.k-in-month {
color: #ddd;
/** Days inside of the month view after today **/
&.k-active {
color: black;
cursor: pointer;
/** Days between the start and end points on a range, inside of the selectable area **/
/** Selected day, when outside the selectable area **/
&.k-range, &.k-selected {
background: @selection-color;
color: @color;
}
}
}
/** Today **/
&.k-today {
text-decoration: underline;
}
}
/** Selectable week, hovered **/
.k-week:hover span.k-active {
border-color:#666;
}
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
}