-
Notifications
You must be signed in to change notification settings - Fork 0
/
advice.css
95 lines (80 loc) · 1.68 KB
/
advice.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
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@800&display=swap');
body {
background-color: hsl(218, 23%, 16%);
font-family: 'Manrope', sans-serif;
}
.advice-container {
background-color: hsl(217, 19%, 24%);
margin: 50px auto 100px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
flex-direction: column;
width: 512px;
height: auto;
border-radius: 25px;
padding: 10px 0px;
color: white;
}
.advice-heading {
color: hsl(150, 100%, 66%);
align-self: center;
text-transform: uppercase;
letter-spacing: 3px;
}
.advice-body {
display: block;
font-weight: 800;
font-size: 28px;
padding: 0px 25px;
text-align: center;
}
.advice-divider{
display:block;
}
.advice-divider-mobile{
display:none;
}
.dice {
background-color: hsl(150, 100%, 66%);
border-radius: 50px;
padding: 10px 15px;
position: relative;
top: 35px;
}
.dice:hover{
box-shadow: 0 0 50px 15px hsl(150, 100%, 66%);
animation: tilt-shaking 0.25s infinite;
}
.dice svg{
margin-top: 3px;
}
@keyframes tilt-shaking {
0% { transform: rotate(0deg); }
25% { transform: rotate(5deg); }
50% { transform: rotate(0eg); }
75% { transform: rotate(-5deg); }
100% { transform: rotate(0deg); }
}
.attribution {
font-size: 11px;
text-align: center;
color: white;
}
.attribution a {
color: white;
}
@media (max-width: 375px){
.advice-container {
width: 100%;
align-content: center;
justify-content: center;
}
.advice-divider{
display:none;
}
.advice-divider-mobile{
display:block;
}
}