-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonth-view-component.scss
109 lines (97 loc) · 2.01 KB
/
month-view-component.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
.calendar {
display: block;
width: 30px;
margin: 0 auto;
* {
box-sizing: border-box;
}
.calendar-navs {
background-color: rgb(0, 162, 255);
}
.month-nav {
padding: 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.year-nav {
padding: 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
font-family: 'Montserrat';
}
.month-grid {
.day-names {
display: flex;
flex-direction: row;
background: cornsilk;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.weeks {
display: flex;
flex-direction: column;
}
.week {
display: flex;
flex-direction: row;
}
.week-date,
.day-name {
text-align: center;
padding: 15px;
display: block;
width: 30px;
display: flex;
justify-content: center;
align-items: center;
}
.week-date {
height: 30px;
position: relative;
.date-text {
z-index: 10;
font-size: 10px;
font-family: 'Montserrat', sans-serif;
}
&::after {
content: '';
height: 30px ;
width: 30px ;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
transition: background-color 150ms linear, color 150ms linear;
z-index: 1;
}
&.enabled {
cursor: pointer;
&:hover {
&:after {
background-color: seagreen;
}
}
}
&.selected {
color: white;
&:after {
background-color: teal;
}
&:hover {
&:after {
background-color: teal;
}
}
}
&.disabled {
color: #ccc;
}
}
.today {
font-weight: bold;
}
}
}