-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
179 lines (153 loc) · 3.59 KB
/
styles.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.calendar-container {
width: 100%;
display: grid;
gap: clamp(1em, 5vw, 5em);
}
.calendar-nav {
display: flex;
/* display: grid;
grid-template-columns: 1fr 100%; */
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-end;
gap: clamp(1.7em, 2vw, 2em);
}
.calendar-body {
display: grid;
width: 100%;
padding-left: 1px;
padding-bottom: 1em;
overflow-x: scroll; /* Calendar just won't fit for mobile, so adding a scroll allows users use of the calendar that gets hidden */
}
@media (hover: hover) {
/* If device can hover, we'll hide the ugly scrollbar until the calendar is being hovered over */
.calendar-body {
overflow-x: hidden;
}
.calendar-body:hover {
overflow-x: scroll;
}
}
h3.calendar-current-month {
font-size: 23px;
white-space: nowrap;
flex: 10;
}
@media (min-width: 480px) {
h3.calendar-current-month {
font-size: var(--fontSizeh2);
}
}
.calendar-button-container {
display: flex;
flex-wrap: nowrap;
flex: 1;
justify-content: space-between;
align-items: center;
gap: 2rem;
}
@media (max-width: 580px) {
.calendar-nav {
display: grid;
width: 100%;
justify-content: stretch;
}
}
/* Body section */
.calendar-weekdays-names,
.calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
min-height: clamp(300px, 10vw, 450px);
}
.weekday-name {
color: var(--colorBlue);
padding: clamp(0.1em, 2vw, 1em) clamp(0.1em, 2vw, 1em) 1em;
/* text-transform: uppercase;
letter-spacing: 4px; */
/* font-weight: 700; */
font-size: clamp(0.6em, 3vw, 0.8em);
}
.calendar-day-container {
/* background: rgba(var(--colorBlueRaw), .05); */
border: 1px solid var(--colorGrey50l);
padding: clamp(0.1em, 1.2vw, 0.8em);
margin: -1px 0 0 -1px;
display: grid;
grid-template-rows: auto 1fr;
align-items: start;
gap: 0.5em;
min-width: 10ch;
min-height: clamp(7ch, 11vw, 10ch);
}
.calendar-day-container:not(.month-day):not(.current-day) {
background: rgba(174, 196, 213, 0.2);
color: var(--colorGrey50l);
}
.calendar-day-container:hover:not(.current-day) {
background: var(--colorLightBlue50l);
}
.current-day {
background: var(--colorBlue);
}
.calendar-date {
color: var(--colorRoyalBlue);
font-size: clamp(0.8em, 3vw, 1.2em);
line-height: 1;
}
.current-day .calendar-date {
color: var(--colorLight);
}
.calendar-day-container:not(.month-day):not(.current-day) .calendar-date {
color: var(--colorGrey25l);
}
.calendar-day-container:not(.month-day):not(.current-day) .calendar-tags {
opacity: 0.6;
filter: brightness(0.9);
-webkit-filter: brightness(0.9);
}
.calendar-tags {
display: flex;
flex-wrap: wrap;
gap: 0.3em;
}
.current-day .calendar-link {
border-left: 4px solid var(--colorBlue25l);
}
.calendar-link {
font-size: clamp(0.6em, 1vw, 0.7em);
padding: 0.5em 0.6em;
position: relative;
background: var(--calendarLinkBgColor);
border-radius: 4px;
line-height: clamp(12px, 1.2vw, 14px);
/* color: var(--colorRoyalBluse); */
cursor: pointer;
color: var(--colorRoyalBlue);
border-left: 4px solid var(--calendarLinkColor);
z-index: 3;
}
.today {
font-size: clamp(1em, 3vw, 1.125em);
color: var(--colorBlue);
transition: color 0.25s ease-in;
-webkit-transition: color 0.25s ease-in;
-moz-transition: color 0.25s ease-in;
-ms-transition: color 0.25s ease-in;
-o-transition: color 0.25s ease-in;
}
.today:hover {
color: var(--colorOrange);
}
.action-button {
height: 30px;
width: 30px;
}
.action-button:hover svg path {
fill: var(--colorOrange);
}
.action-button:hover svg path + path {
stroke: var(--colorLight);
}