forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
186 lines (148 loc) · 2.64 KB
/
style.css
File metadata and controls
186 lines (148 loc) · 2.64 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/* Add your styling here */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');
/* css reset */
* {
padding: 0;
margin: 0;
}
/* base styling */
body {
font-family: 'Roboto Condensed', sans-serif;
background: #eee;
height: auto;
}
h1 {
font-weight: 400;
font-size: 2.5rem;
text-transform: uppercase;
}
h2 {
font-weight: 400;
font-size: 1.2rem;
text-transform: capitalize;
}
img {
display: block;
width: 100%;
}
main {
max-width: 900px;
margin: auto;
box-shadow: 30px 0px 40px rgba(0, 0, 0, 0.2), -30px 0px 40px rgba(0, 0, 0, 0.2);
}
span {
color: rgb(231, 10, 10);
}
/* landing styles */
#landing {
background: #fff;
}
#landing-text {
display: flex;
flex: 0 1 40vw;
height: 50vh;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 1rem;
}
#landing-text h2 {
color: #888;
}
#landing-image {
background: url(images/main-cake.jpg);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 50vh;
flex: 0 1 60vw;
margin: 0;
}
/* button style */
.btn {
padding: 0.5rem 2rem;
border: 1px #ccc solid;
display: inline-block;
margin-top: 2rem;
border-radius: 50px;
text-decoration: none;
color: #333;
transition: background 700ms ease;
}
.btn:hover {
background: rgb(231, 10, 10);
color: #fff
}
/* welcome section */
#welcome {
text-align: center;
}
#welcome h1 {
margin: 2rem 0;
}
#welcome p {
margin-bottom: 2rem;
margin-left: 1rem;
margin-right: 1rem;
}
/* headers */
#header {
padding: 1.5rem;
text-align: center;
background: #333;
color: #fff;
}
#header h2 {
border-left: dotted 1px #fff;
border-right: dotted 1px #fff;
display: inline-block;
padding: 0 1rem;
}
/* captions */
.caption {
padding: 0.8rem;
text-align: center;
}
/* footer */
footer {
text-align: center;
padding: 2rem 1rem;
margin-bottom: 4rem;
color: #333;
}
footer h3 {
font-size: 3rem;
margin-bottom: 2rem;
}
footer p {
padding-top: 1rem;
}
/* media query 400px and up */
@media only screen and (min-width: 400px) {
#landing {
display: flex;
height: 100%;
}
#landing-text {
height: 100vh;
}
#landing-image {
height: 100vh;
}
}
/* screen size 700px up */
@media (min-width: 700px) {
#landing {
display: flex;
height: 100%;
}
#landing-text {
height: 100vh;
}
#landing-image {
height: 100vh;
}
.btn {
padding: 1rem 3rem;
}
}