-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
134 lines (116 loc) · 2.78 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
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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;800&display=swap");
body {
display: flex;
flex-flow: column;
align-items: center;
font-family: "Poppins", serif;
background: black;
padding: 1rem;
min-height: 100vh;
}
h1 {
font-weight: 800;
margin: 1rem 0 0;
text-align: center;
color: #FFF;
filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.85));
text-transform: uppercase;
letter-spacing: 0.1rem;
}
h1 + p {
color: #FFF;
filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.85));
text-transform: uppercase;
letter-spacing: 0.1rem;
}
ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.5rem;
list-style: none;
padding: 0;
width: 100%;
max-width: 1200px;
}
li a {
color: #FFF;
text-decoration: none;
display: flex;
align-items: flex-start;
justify-content: center;
width: 100%;
height: 10rem;
margin: 0.25rem;
flex-flow: column;
border-radius: 0.2rem;
padding: 1rem;
font-weight: 300;
font-size: 0.8rem;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.25);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.18);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
li a:hover, li a:focus, li a:active {
transform: scale(1.05);
box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.95) !important;
}
li a time {
font-size: 2rem;
margin: 0 0 1rem 0;
font-weight: 500;
filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.85));
}
li a span {
font-size: 1rem;
font-weight: 400;
color: #FFF;
filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.85));
line-height: 1.15;
}
.today {
border-radius: 10px;
}
.today a {
animation: glow 2s infinite alternate;
border: 2px solid #FFF;
}
// Bright glowing animation using filter
@keyframes glow {
from {
filter: drop-shadow(0 0 10px #fff), drop-shadow(0 0 10px #fff), drop-shadow(0 0 10px #fff);
}
to {
filter: drop-shadow(0 0 20px #fff);
}
}
/* Responsive adjustments */
@media (max-width: 768px) {
li a {
width: 100%;
height: 8rem;
font-size: 0.7rem;
}
li a time {
font-size: 1.5rem;
}
}
@media (max-width: 480px) {
body {
padding: 0.5rem;
}
h1 {
font-size: 1.5rem;
}
li a {
height: 6rem;
font-size: 0.6rem;
}
li a time {
font-size: 1.2rem;
}
}