-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
49 lines (42 loc) · 844 Bytes
/
style.css
File metadata and controls
49 lines (42 loc) · 844 Bytes
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
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
body {
font-family: 'Comfortaa', cursive;
}
.container {
border: 1px solid black;
width: 95%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.hex-colors {
border: 1px solid black;
text-align: center;
}
.hex-colors h1 {
font-size: 2rem;
text-transform: uppercase;
animation: colorchange 5s infinite alternate;
}
.hex-colors h2 {
border: 1px solid black;
font-size: 2rem;
margin-top: 15%;
}
@keyframes colorchange {
0% { color: indigo; }
20% { color: blue; }
40% { color: green; }
60% { color: yellow; }
80% { color: orange; }
100% { color: red; }
}
@media (max-width: 480px) {
.hex-colors h1 {
font-size: 1.5rem;
}
.hex-colors h2 {
font-size: 1.5rem;
}
}