-
-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathstyle.css
More file actions
67 lines (65 loc) · 1.18 KB
/
style.css
File metadata and controls
67 lines (65 loc) · 1.18 KB
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: orange;
display: flex;
justify-content: center; /* horizontal centering */
align-items: flex-start; /* vertical centering */
height: 100vh; /* full viewport height */
font-family: Georgia, "Times New Roman", Times, serif;
}
.container {
background-color: white;
width: 70%;
max-width: 650px;
padding: 60px 80px;
border-radius: 8px;
text-align: center; /* centers text inside */
margin: 20% 20%;
display: block;
}
#quote {
font-size: 28px;
color: #f59e0b;
line-height: 1.5;
position: relative;
margin-bottom: 30px;
}
#quote::before {
content: "“";
font-size: 80px;
position: absolute;
left: -40px;
top: -20px;
color: #f59e0b;
}
#author {
display: block;
text-align: right;
font-size: 16px;
color: #f59e0b;
margin-bottom: 20px;
}
#author::before {
content: "~ ";
font-size: 20px;
color: #f59e0b;
}
#new-quote {
align-items: right;
text-align: right;
background-color: #f59e0b;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
border-radius: 2px;
display: block;
}
#new-quote :hover {
opacity: 0.9;
}