-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcalendar.css
93 lines (80 loc) · 1.64 KB
/
calendar.css
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
* {
margin: 0;
padding: 0;
}
.calendar-wrapper {
max-width: 310px;
}
.calendar-header {
position: relative;
background-color: #c61b01;
padding: 10px 0;
overflow: auto;
}
.calendar-mid {
position: absolute;
left: 50%;
-webkit-transform: translate(-50%);
transform: translate(-50%);
}
.calendar-header .leftArrow {
width: 0;
height: 0;
border-width: 10px;
border-style: solid;
border-top-color: transparent;
border-bottom-color: transparent;
border-left-color: transparent;
border-right-color: #ffffff;
margin-left: 5px;
float: left;
cursor: pointer;
}
.calendar-header .rightArrow {
width: 0;
height: 0;
border-width: 10px;
border-style: solid;
border-top-color: transparent;
border-bottom-color: transparent;
border-left-color: #fff;
border-right-color: transparent;
margin-left: 5px;
float: right;
cursor: pointer;
}
ul.weekTip, ul.date {
font-size: 0;
}
ul.weekTip > li, ul.date > li {
display: inline-block;
box-sizing: border-box;
font-size: 15px;
color: #000000;
width: 40px;
height: 40px;
border-radius:50%;
line-height: 40px;
text-align: center;
cursor: pointer;
margin-bottom: 5px;
}
ul.weekTip > li:not(:nth-of-type(7n)), ul.date > li:not(:nth-of-type(7n)) {
margin-right: 5px;
}
ul.date > li.active {
background-color: rgb(200, 17, 1);
color: #ffffff;
}
ul.date > li.across {
border: 1px solid rgb(200, 17, 1);
color: rgb(200, 17, 1);
}
ul > li.weekend {
color: rgb(200, 17, 1);
}
ul > li.disabled {
color: lightgray;
}
#demo {
position: relative;}