-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookies.css
219 lines (169 loc) · 4.97 KB
/
cookies.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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
/* Lets take our knowledge of CSS selectors, properties, and inheritance to add some style to the Sweet Eats Bakery website.
Task 1: Fork this pen. You will want to have your own version saved.
Task 2: Explore the CSS. Look at all the unique selectors. Find things that are new to you and learn what they do. Find properties you may not be familiar with and google them.
Task 3: Update the CSS. You will notice the CSS comments throughout the file below. Follow the instructions to complete the Sweet Eats Bakery site. If you follow the instructions, you should see this as a final result:
https://tk-assets.lambdaschool.com/44f6a520-b218-4ed1-910b-f4dc876cd1a6_sweet-eats-home-page.png
***DO NOT ATTEMPT STRETCH UNTIL YOU ARE FINISHED WITH EVERYTHING ELSE!***
Stretch Task: Fork your final work and see how much you can change the design without changing the HTML. Try to transform the site by only using CSS selectors.
Stretch Task: Look at CSS animations and see if you could integrate them on the navigation hovers.
Stretch Task: Pick a navigation item and create a new page with the same header and footer as the home page. Example: you could make a new page just for cookies. Be creative and have fun coming up with your own unique content and styles.
*/
body {
background: #f9f2ec;
}
/*======= Create a new universal selector that changes the font color to: #3C373B */
h1 {
font-family: 'Patrick Hand', cursive;
margin: 20px 0;
/*======= Update the font size to 60px and center the text */
font-size: 60px;
text-align: center;
color: #ff4d88;
}
h1 a {
text-decoration: none;
color: #ff4d88;
}
h1 a:visited {
text-decoration: none;
color: #ff4d88;
}
h2, h3, h4, h5, h6 {
font-family: 'Gaegu', cursive;
margin-bottom: 0;
padding: 0 10px;
/*======= Update the font size to 30px */
font-size: 30px;
color: #ff6699;
}
/*======= Create a selector for ALL p tags in the site to have the following styles: */
p {
font-size: 16px;
font-family: roboto;
padding: 10px;
line-height: 1.4;
}
/*======= Create a selector for ALL images in the site to have the following styles: */
img {
border-radius: 10px;
}
img.cookies {
width: 150px;
height: 150px;
padding: 20px;
box-sizing: border-box;
border-radius: 10%;
}
p.cookies {
padding: 25px;
box-sizing: border-box;
}
.content-row {
display: flex;
}
.content-row div {
/*======= create a margin propery. Set the value to 20px */
margin: 20px;
}
.container {
/*======= create a width property. Set the value to 600px */
margin: 0 auto;
width: 600px;
}
#active {
background-color: #4d3319;
color: #f2e6d9;
}
#active:hover {
background: white;
color: pink;
}
#active2 {
color: #ffcce6;
}
#active2:hover {
color: black;
}
.container header nav a {
margin: 0 10px;
border: 1px solid lightgrey;
padding: 20px;
display: inline-block;
border-radius: 20px;
color: white;
text-decoration: none;
margin-bottom: 20px;
/*======= create a background property. Set the value to #F87B99 */
background: #bf8040;
animation-duration: 4s;
animation-iteration-count: 1;
animation-name: jashele;
}
@keyframes jashele {
from {
background-color: #ff6699;
}
to {
background-color: #bf8040;
}
}
.container header nav a:hover {
/*======= create a background property and set it to white. Then create a color property and set it's value to pink. */
background: white;
color: pink;
}
/*======= Create a selector for the about section to have the following styles: */
.about {
margin-top: 20px;
}
.contact-section {
border-top: 1px dashed black;
padding: 20px 0;
}
.contact-section h2 {
padding: 0;
margin: 0 0 10px 0;
}
/*======= Create a selector for the address tag in the contact-section class to have the following styles:
line-height: 2;
*/
address {
line-height: 2;
}
footer {
width: 100%;
background: #F87B99;
border-top: 1px dashed white;
}
footer .footer-content {
margin: 0 auto;
/*======= create a width property. Set the value to 600px */
width: 600px;
}
footer .footer-content h3 {
padding: 0;
margin: 20px 0;
color: black;
font-family: 'Patrick Hand', cursive;
}
footer nav {
display: flex;
}
/*======= Create a selector for the anchor tag in the footer to have the following styles: */
footer a {
margin: 10px;
color: #261a0d;
text-decoration: underline;
}
footer nav a:first-child {
margin-left: 0;
}
/*======= Create a hover state for the anchor tag in the footer nav to have the following styles: */
footer a:hover {
color: white;
}
footer .footer-content .copyright {
padding: 20px 0;
text-align: center;
/*======= center the text here */
}