Skip to content

Commit 023221e

Browse files
committed
style: add initial CSS styles
1 parent 20c667d commit 023221e

File tree

1 file changed

+66
-1
lines changed

1 file changed

+66
-1
lines changed

Sprint-3/quote-generator/style.css

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
/** Write your CSS in here **/
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
background-color: #f5a742;
9+
font-family: Georgia, serif;
10+
min-height: 100vh;
11+
display: flex;
12+
flex-direction: column;
13+
justify-content: center;
14+
align-items: center;
15+
padding: 40px;
16+
}
17+
18+
#quote {
19+
background-color: white;
20+
padding: 80px 60px 40px;
21+
margin: 0;
22+
font-size: 2.5rem;
23+
color: #f5a742;
24+
line-height: 1.5;
25+
position: relative;
26+
max-width: 1200px;
27+
width: 100%;
28+
}
29+
30+
#quote::before {
31+
content: '"';
32+
font-size: 5rem;
33+
left: 30px;
34+
top: 10px;
35+
font-weight: bold;
36+
line-height: 1;
37+
}
38+
39+
#author {
40+
background-color: white;
41+
padding: 20px 60px 80px;
42+
margin: 0;
43+
text-align: right;
44+
font-size: 1.5rem;
45+
color: #f5a742;
46+
max-width: 1200px;
47+
width: 100%;
48+
position: relative;
49+
}
50+
51+
#new-quote {
52+
position: absolute;
53+
bottom: 30px;
54+
right: 60px;
55+
background-color: #f5a742;
56+
color: white;
57+
border: none;
58+
padding: 15px 35px;
59+
font-size: 1.1rem;
60+
cursor: pointer;
61+
font-family: sans-serif;
62+
}
63+
64+
#new-quote:hover {
65+
background-color: #e69630;
66+
}

0 commit comments

Comments
 (0)