-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
63 lines (54 loc) · 953 Bytes
/
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
@import url('https://fonts.googleapis.com/css2?family=Andada+Pro:ital@1&display=swap');
body{
font-family: 'Andada Pro', serif;
}
.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;
}
}