forked from ikarosu/vue-datepicker-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
113 lines (113 loc) · 2 KB
/
style.scss
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
$x1: 8px;
$x0: $x1 / 2;
$x2: 2 * $x1;
$x3: 3 * $x1;
$x4: 4 * $x1;
.aki-date {
display: flex;
flex-direction: column;
width: 100vw;
text-align: center;
font-size: 12px;
background-color: #fff;
transition: ease-out .35s;
z-index: 600;
&-fixed{
position: fixed;
top: 100%;
height: 100%;
min-height: calc(100vh - 60px);
max-height: 100vh;
}
&-content{
position: relative;
max-height: 100%;
}
&-visible{
top: 0;
}
&-header {
border-top: solid 1px #eee;
> div {
display: flex;
justify-content: space-between;
background-color: #fff;
}
&-action{
height: 48px;
> button {
padding: $x2;
border: none;
outline: none;
background: none;
}
}
&-week{
display: flex;
justify-content: space-evenly;
padding: $x1 0;
font-weight: bold;
background-color: #fff!important;
> span {
flex: 1;
&.rest{
color: tomato;
}
}
}
}
&-body {
flex: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
&-month {
&-header {
position: sticky;
top: 0;
padding: $x1 0;
background-color: #f9f9f9;
}
&-body {
display: flex;
flex-wrap: wrap;
}
&-day {
min-height: 72px;
color: #999;
background-color: #fff;
box-shadow: inset 0 0 2px 2px white;
> p {
margin: 0;
width: calc(100vw / 7);
&.tip{
margin: $x0 0;
color: #f0f0f0;
}
&:last-child{
margin-bottom: $x0;
}
}
&-number{
color: #666;
&.rest{
color: tomato;
}
&.disabled{
color: #eee;
}
}
&-boundary {
color: white;
background-color: deepskyblue!important;
}
&-range {
background-color: #afdfff;
}
&-disabled {
color: #eee;
box-shadow: none;
}
}
}
}