forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatetime.mat.styl
More file actions
265 lines (234 loc) · 5.24 KB
/
datetime.mat.styl
File metadata and controls
265 lines (234 loc) · 5.24 KB
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
255
256
257
258
259
260
261
262
263
264
265
.q-datetime-input
min-width $datetime-input-min-width
.q-datetime-controls
padding 0 10px 8px
.q-datetime
font-size 12px
text-align center
user-select none
line-height initial
.modal-buttons
padding-top 8px
.q-datetime-header
background currentColor
> div
color white
.q-datetime-weekdaystring
font-size .8rem
background rgba(0, 0, 0, .1)
padding 5px 0
.q-datetime-time
padding 10px 0
div + .q-datetime-time
padding-top 0
.q-datetime-ampm
font-size .9rem
.q-datetime-datestring
font-size 2.7rem
span.small
font-size 1.2rem
.q-datetime-link
cursor pointer
opacity .6
&.active
opacity 1
.q-datetime-clockstring
font-size 2.7rem
direction: ltr /* rtl:ignore */
.q-datetime-selector
height 310px
overflow auto
.q-datetime-view-day
width 250px
height 285px
color black
.q-datetime-view-year, .q-datetime-view-month
> .q-btn:not(.active)
color black
.q-datetime-month-stamp
font-size 16px
.q-datetime-weekdays
margin-bottom 5px
div
opacity .6
width 35px
height 35px
line-height 35px
margin 0
padding 0
min-width 0
min-height 0
background transparent
.q-datetime-days div
margin 1px
line-height 33px
width 33px
height 33px
border-radius 50%
&.q-datetime-day-active
background currentColor
> span
color white
font-weight bold
&.q-datetime-day-today
color currentColor
font-weight bold
font-size 14px
&:not(.q-datetime-fillerday):not(.disabled):not(.q-datetime-day-active):hover
background $grey-4
.q-datetime-btn
font-weight normal
&.active
font-size 1.5rem
padding-top 1rem
padding-bottom 1rem
.q-datetime-clock
width 250px
height 250px
border-radius 50%
background $grey-4
padding 24px
.q-datetime-clock-circle
position relative
animation q-pop .5s /* rtl:ignore */
.q-datetime-clock-center
height 6px
width 6px
top 0
margin auto
border-radius 50%
min-height 0
position absolute
left 0
right 0
bottom 0
background currentColor
.q-datetime-clock-pointer
width 1px
height 50%
margin 0 auto
transform-origin top center /* rtl:ignore */
min-height 0
position absolute
left 0
right 0
bottom 0
background currentColor
span
position absolute
border-radius 50%
width 8px
height 8px
bottom -8px
left 0
min-width 0
min-height 0
transform translate(-50%, -50%)
background currentColor
.q-datetime-arrow
color $grey-7
.q-datetime-dark
background $dark
background var(--q-color-dark)
.q-datetime-arrow
color $light
color var(--q-color-light)
.q-datetime-header, .q-datetime-clock
background $grey-8
.q-datetime-view-day
color white
.q-datetime-view-year, .q-datetime-view-month
> .q-btn:not(.active)
color white
.q-datetime-days div
&.q-datetime-day-active > span, &:not(.q-datetime-fillerday):not(.disabled):not(.q-datetime-day-active):hover
color black
body.desktop .q-datetime-clock-position:not(.active):hover
background $grey-2 !important
body.desktop .q-datetime-dark .q-datetime-clock-position:not(.active):hover
color black
.q-datetime-clock-position
position absolute
min-height 32px
width 32px
height 32px
font-size 12px
line-height 32px
margin 0
padding 0
transform translate(-50%, -50%) /* rtl:ignore */
border-radius 50%
&:not(.active)
color black
.q-datetime-dark &
color white
&.active
background currentColor
> span
color white
for $pos in 0..12
$degree = (270 + 30 * $pos)
.q-datetime-clock-pos-{$pos}
top round(((1 + sin($degree * 1deg)) * 100%) / 2, 2)
left round(((1 + cos($degree * 1deg)) * 100%) / 2, 2) /* rtl:ignore */
for $pos in 0..23
$degree = (270 + 15 * $pos)
.q-datetime-clock-pos-{$pos}.fmt24
top round(((1 + sin($degree * 1deg)) * 100%) / 2, 2)
left round(((1 + cos($degree * 1deg)) * 100%) / 2, 2) /* rtl:ignore */
.q-datetime-range
&.row
.q-datetime-range-left
border-top-right-radius 0
border-bottom-right-radius 0
.q-datetime-range-right
border-top-left-radius 0
border-bottom-left-radius 0
&.column > div + div
margin-top $datetime-range-space
@media (max-width $breakpoint-sm-max)
.q-datetime-ampm
margin-left 1.5rem
.q-datetime-datestring span
margin 10px 5px
&.small
margin-top 1.3rem
.q-datetime
width 290px
&:not(.no-border)
&:not(.q-datetime-dark) .q-datetime-content
border-width 0 1px 1px 1px
border-style solid
border-color $grey-4
&.q-datetime-dark
border 1px solid $dark
border 1px solid var(--q-color-dark)
@media (min-width $breakpoint-md-min)
.q-datetime-datestring
padding 10px 0
.q-datetime-ampm
margin-top 5px
div
margin 2px 0
.q-datetime-header
width 170px
position relative
.q-datetime-weekdaystring
position absolute
top 0
left 0
right 0
.q-datetime-content
width 290px
.q-datetime
width 480px
&:not(.no-border)
&:not(.q-datetime-dark) .q-datetime-content
border-width 1px 1px 1px 0
border-style solid
border-color $grey-4
&.q-datetime-dark
border 1px solid $dark
border 1px solid var(--q-color-dark)
.q-datetime-minimal
width 320px