-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (123 loc) · 2.09 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
@import url("https://fonts.google.com/specimen/Manrope");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--LightCyan: hsl(193, 38%, 86%);
--neonGreen: hsl(150, 100%, 66%);
--grayishBlue: #313a49;
--darkGrayishBlue: #202632;
--darkBlue: #222222;
}
body {
background-color: var(--darkBlue);
overflow-y: hidden;
}
section,
.container,
.box-cont,
.quote-cont,
.dice-hold,
footer {
justify-content: center;
align-items: center;
display: flex;
font-family: "Manrope", sans-serif;
}
section {
padding: 0 7em;
}
.container {
background-color: var(--darkGrayishBlue);
width: 100%;
height: 40em;
}
.box-hold {
background-color: var(--grayishBlue);
width: 32em;
height: 20em;
border-radius: 12px;
}
.advice p {
text-align: center;
color: var(--neonGreen);
text-transform: uppercase;
letter-spacing: 4px;
font-size: 11px;
padding-top: 3em;
font-weight: 600;
}
.quote-hold {
width: 15em;
max-height: 23em;
padding-top: 0.5em;
font-size: 32px;
text-align: center;
color: var(--LightCyan);
}
.divider-cont,
.dice-cont {
position: relative;
}
.divider-hold,
.dice-hold {
position: absolute;
top: 5em;
right: 2.2em;
}
.dice-hold {
top: 10em;
right: 17.3em;
background-color: var(--neonGreen);
width: 4em;
height: 4em;
border: 1px solid var(--neonGreen);
border-radius: 50%;
}
.dice-hold:hover {
box-shadow: 0px 0px 23px var(--neonGreen);
}
footer {
position: relative;
}
.attribution {
position: absolute;
bottom: 2em;
font-size: 16px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
text-decoration: none;
}
@media (max-width: 430px) {
body {
background-color: var(--darkGrayishBlue);
overflow-y: scroll;
}
.box-hold {
width: 22em;
height: 20em;
}
.quote-hold {
width: 11em;
font-size: 27px;
padding-top: 1em;
}
.img-divider {
content: url("./images/pattern-divider-mobile.svg");
}
.dice-hold {
top: 10em;
right: 11.5em;
background-color: var(--neonGreen);
width: 4em;
height: 4em;
border-radius: 50%;
}
.attribution{
width: 19em;
}
}