-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (81 loc) · 1.81 KB
/
style.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
$calendar-font-size: $uiFontSize;
$calendar-font-family: $uiFontFamily;
$calendar-color: $uiColor;
$calendar-active-color: $uiActiveColor;
$calendar-bg-color: $uiBgColor;
$calendar-cell-height: $uiCalendarCellHeight;
$calendar-padding: $uiCalendarPadding;
$calendar-animation-style: $uiBaseTransition;
$calendar-animation-time: $uiBaseTransitionDuration;
$calendar-uppercase: $uiCalendarUppercase;
.calendar {
display: inline-block;
width: 100%;
position: relative;
padding: calc(2*$calendar-padding) $calendar-padding;
box-sizing: border-box;
font: normal $calendar-font-size $calendar-font-family;
background: $calendar-bg-color;
@if $calendar-uppercase == true {
text-transform: uppercase;
}
a {
text-decoration: none;
color: $calendar-color;
}
}
.calendar-header {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
margin-bottom: 0.75em;
}
.calendar-flip {
padding-top: 0.75em;
.calendar-header {
margin-top: 0.5em;
margin-bottom: 0;
}
}
.calendar-button,
.calendar-mode {
display: block;
text-align: center;
}
.calendar-back,
.calendar-forward {
}
.calendar-mode {
flex-grow: 1;
}
.calendar-display {
box-sizing: border-box;
width: 100%;
height: calc(6*$calendar-cell-height);
display: flex;
justify-content: center;
ul {
display: flex;
flex-wrap: wrap;
/*align-items: center;*/
list-style: none;
padding: 0;
margin: 0;
}
li {
display: flex;
justify-content: center;
align-items: center;
height: $calendar-cell-height;
}
}
.calendar-days {
align-self: flex-start;
li { width: 14.28%; }
}
.calendar-months li { width: 25%; }
.calendar-years li { width: 20%; }
.calendar-current a {
color: $calendar-active-color;
}