File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 1
- .date-picker-x {
2
- $background : #444 ;
3
- $active : #06f ;
4
- $daySize : 44px ;
5
- $weekdaySize : 24px ;
1
+ @import " variables" ;
6
2
7
- background : $background ;
3
+ .date-picker-x {
4
+ background : $dpxBackgroundColor ;
8
5
box-sizing : content-box ;
9
6
color : #fff ;
10
7
display : none ;
13
10
position : absolute ;
14
11
transform : translateY (15px );
15
12
user-select : none ;
16
- width : $daySize * 7 ;
13
+ width : $dpxDaySize * 7 ;
17
14
z-index : 1 ;
18
15
19
16
& ::before {
20
- border-color : $background transparent ;
17
+ border-color : $dpxBackgroundColor transparent ;
21
18
border-style : solid ;
22
19
border-width : 0 10px 10px ;
23
20
bottom : 100% ;
67
64
box-sizing : content-box ;
68
65
display : flex ;
69
66
flex-wrap : wrap ;
70
- height : $weekdaySize + $daySize * 6 ;
67
+ height : $dpxWeekdaySize + $dpxDaySize * 6 ;
71
68
justify-content : center ;
72
69
padding-top : 10px ;
73
70
}
91
88
cursor : pointer ;
92
89
93
90
& :hover {
94
- box-shadow : inset 0 0 0 2px lighten ($active , 10% ), inset 0 0 0 4px $background ;
91
+ box-shadow : inset 0 0 0 2px lighten ($dpxActiveColor , 10% ), inset 0 0 0 4px $dpxBackgroundColor ;
95
92
}
96
93
}
97
94
}
98
95
.dpx-weekday {
99
96
font-size : 15px ;
100
- height : $weekdaySize !important ;
97
+ height : $dpxWeekdaySize !important ;
101
98
}
102
99
& [data-dpx-type = " day" ] .dpx-item {
103
- flex-basis : $daySize ;
104
- height : $daySize ;
100
+ flex-basis : $dpxDaySize ;
101
+ height : $dpxDaySize ;
105
102
}
106
103
.dpx-current {
107
- box-shadow : inset 0 0 0 2px lighten ($active , 20% );
104
+ box-shadow : inset 0 0 0 2px lighten ($dpxActiveColor , 20% );
108
105
}
109
106
.dpx-selected {
110
- background : $active ;
107
+ background : $dpxActiveColor ;
111
108
}
112
109
.dpx-weekend {
113
110
color : #f99 ;
121
118
box-shadow : none !important ;
122
119
123
120
& .dpx-current {
124
- box-shadow : inset 0 0 0 2px lighten ($active , 20% ) !important ;
121
+ box-shadow : inset 0 0 0 2px lighten ($dpxActiveColor , 20% ) !important ;
125
122
}
126
123
}
127
124
}
Original file line number Diff line number Diff line change
1
+ $dpxBackgroundColor : #444 !default ;
2
+ $dpxActiveColor : #06f !default ;
3
+ $dpxDaySize : 44px !default ;
4
+ $dpxWeekdaySize : 24px !default ;
You can’t perform that action at this time.
0 commit comments