-
Notifications
You must be signed in to change notification settings - Fork 2
/
_datepicker.sass
107 lines (94 loc) · 2.3 KB
/
_datepicker.sass
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
// Datepicker styles intended for use with Angular bootstrap ui datepicker
// https://angular-ui.github.io/bootstrap/#/top for docs
.datepicker
$datepicker-button-size: rem(32px) !default
overflow: hidden
td
width: $datepicker-button-size
button
border: 0
padding: 0
margin: 0
outline: 0
text:
align: center
display: block
width: $datepicker-button-size
height: $datepicker-button-size
&,
table
table-layout: fixed
width: 100%
.title-row
th
cursor: pointer
text-align: center
height: $datepicker-button-size
vertical-align: middle
.title
width: 100%
button
width: 100%
.prev,
.next
width: $datepicker-button-size
.prev
button
border:
right: 1px solid
.next
button
border:
left: 1px solid
.table-body
td,
th
text-align: center
vertical-align: middle
td
border: 1px solid
button
width: 100%
background: rgba(#000, 0.4)
&[disabled]
&,
&.text-muted
background: rgba(#000, 0.1)
cursor: default
color: rgba(#000, 0.4)
// Days in previous and next months have this class
.text-muted
background: rgba(#000, 0.2)
.today
background: rgba(#000, 0.6)
color: #fff
.selected
color: red
background: rgba(yellow, 0.4)
.highlighted
$datepicker-highlight-size: rem(8px)
position: relative
&:after
content: ''
background: red
height: $datepicker-highlight-size
width: $datepicker-highlight-size
position: absolute
top: rem(3px)
right: rem(3px)
.datepicker-popup
background: #fff
border: 1px solid
position: absolute
top: 100%
left: 0
z-index: 1000
display: none
margin: 0
top: rem(5px)
min-width: rem(160px)
list-style: none
.datepicker
width: rem(290px)
.inner-table-wrapper
padding: $site-padding / 4