-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstyle.css
362 lines (314 loc) · 8.32 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
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
/* Select readable font and text/background colors with good contrast. To search for different Google Fonts, go to https://www.w3schools.com/howto/howto_google_fonts.asp */
body, html {
height: 100%;
margin: 0;
font-family: 'Roboto';
color: black;
background-color: white;
}
.hero-image {
/* This selector controls the "hero image" class. You may need to change "hero.jpg" name/format to match your asset, or vice-versa */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("hero.jpg");
height: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
/* This selector places text in the middle of the image */
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* The next two selectors control hero-text font properties. 2em is 2x inherited font-size value. 5 em is 5x stated value. */
.hero-text h1 {
font-family: inherit;
font-size: 5em;
color: white;
}
.hero-text h2 {
font-family: inherit;
font-size: 2em;
color: white;
}
/* The text-block class selector controls the text-box on screens >800px. You will also need to adjust values in the next text-box selector. */
.text-block {
display: block;
width: 55%;
background-color: inherit;
padding: 0px;
border: 0px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-left: auto;
margin-right: auto;
font-family: inherit;
font-size: 1.5em;
color: inherit;
}
/* This code helps your text-block scale for screens ≤800px. */
@media screen and (max-width: 800px) {
.text-block {
display: block;
width: 90%;
background-color: inherit;
padding: 0px;
border: 0px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-left: auto;
margin-right: auto;
font-family: inherit;
font-size: 1.25em;
color: inherit;
}
}
/* The pull-quote class selector uses large text and border top/bottom properties. */
.pull-quote {
display: block;
width: 70%;
background-color: inherit;
padding-left: 20px;
padding-right: 20px;
border-top: 3px solid #000;
border-bottom: 3px solid #000;
margin-top: 100px;
margin-bottom: 100px;
margin-left: auto;
margin-right: auto;
font: inherit;
font-size: 1em;
color: inherit;
}
/* - Bulleted Points or List -
Unordered list element selector. Change unordered list from disc (default) to circle, square, or none. */
ul {
list-style-type: default;
padding-left: none;
font: inherit;
font-size: 1em;
line-height: 2.2;
color: inherit;
}
/* Ordered list element selector. Change ordered list to upper-roman or lower-alpha. */
ol {
list-style-type: default;
padding-left: none;
font: inherit;
font-size: 1em;
line-height: 2.2;
color: inherit;
}
/* - Link that Looks Like a Button -
Button-box class selector uses Flex Box Design (flex display) to scale the element in one dimension. */
.button-box {
display: flex;
height: 200px;
border: 0px solid none;
align-items: center;
justify-content: center;
}
/* Change button colors and other attributes here. */
.button {
display: inline-block;
background-color: #2A5DB0;
padding: 15px 32px;
border: none;
cursor: pointer;
font: inherit;
font-size: 16px;
color: white;
text-align: center;
}
/* Hover effect improves accessibility. */
.button:hover {
background-color: #4682B4;
}
/* - CSS Flexbox Layout -
CSS Flexbox creates responsive layouts for images, text, and other content. Reuse .column class to create additional grids with different proportions for specific content */
.flexbox-container {
padding-top: 100px;
padding-bottom: 100px;
text-align: center;
}
.row {
display: flex;
flex-wrap: wrap;
padding: 0 4px;
justify-content: center;
}
/* Change max-width value depending on number of columns. */
.column {
flex: 25%;
max-width: 25%;
padding: 0 4px;
}
.column img {
margin-top: 8px;
vertical-align: middle;
width: 100%;
}
/* CSS Grid Responsive layout - makes grid a one column-layout instead of two or three columns */
@media screen and (max-width: 800px) {
.column {
flex: 75%;
max-width: 75%;
}
}
/* - Frame class selector -
Use CSS box model to style image content. Adjust frame/filter class selector properties to customize. Copy, paste, rename class selector to quickly create alternative image stylings. */
.frame {
display: block;
background: orange;
padding: 5px;
border: 5px solid orangered;
border-radius: 3%;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
filter: grayscale(%);
filter: blur(px);
filter: hue-rotate(deg);
}
/* - Polaroid -
Polaroid class selector and container. Adjust Polaroid width here. */
.polaroid {
display: block;
width: 50%;
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin-left: auto;
margin-right: auto;
margin-top: none;
margin-bottom: none;
}
.polaroid img {
width: 100%; /* Keep 100% */
filter: grayscale(%);
filter: blur(px);
filter: hue-rotate(deg);
}
.polaroid-caption {
text-align: center;
padding: 10px 20px;
}
/* - Image Container with Text Box -
Add text to your image and control text-box location*/
.image-container {
display: block;
position: relative;
width: 90%;
margin-top: 100px;
margin-bottom:100px;
margin-left: auto;
margin-right: auto;
}
.image-container img {
width: 100%; /* Keep 100%. Add Filters.*/
}
.image-container-text {
position: absolute;
/*Using max-with property with pixels will prevent a left aligned box from over-scrolling*/
max-width: 300px;
/*Change location right/left and top/bottom. To center use top 50% left 50% */
bottom: 20px;
right: 20px;
/*Using rgba (red,blue,green, alpha) allows us to control color and opacity. For a white tinted text box, use 255, 255, 255, .3 */
background-color: rgba(0, 0, 0, .3);
color: white;
padding-left: 20px;
padding-right: 20px;
font-family: inherit;
font-size: inherit;
}
/* - Parallax -
This code controls that cool parallax image and scrolling effect. Change the image "fuego.jpg" below to match your asset.*/
.parallax {
background-image: url("parallax.jpg");
/* Set a specific height */
height: 500px;
/* control the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
margin-top: 100px;
margin-bottom: 0px;
}
/* This code stops the parallax image and scrolling effect for small screens--at the moment, iPhones just don't like it.*/
@media screen and (max-width: 768px) {
.parallax {
background-attachment: inherit;
height: 400px;
}
}
/* - YouTube Video -
Uses container to control video across different screen sizes. */
.video {
width: 75%;
padding-left: 20px;
padding-right: 20px;
padding-top: 100px;
padding-bottom: 100px;
margin: auto;
text-align: center;
}
.video-container {
position:relative;
height:0;
overflow:hidden;
padding-bottom:56.25%;
padding-top:30px;
}
.video-container iframe, .video-container object, .video-container embed {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
@media screen and (max-width: 800px) {
.video {
width: 90%;
margin-top: 100px;
margin-bottom: 100px;
}
}
/* - Caption -
Style caption left, center, justify, right. */
.caption {
display: block;
padding: none;
border: none;
margin: none;
text-align: center;
}
/* - Logo -
Logo width controlled inline */
.logo {
display: block;
padding: 10px;
border: 0px solid black;
margin-top: 200px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
font: inherit;
font-size: 12pt;
text-align: center;
}
/* - Footer -
Add a Copyright */
.footer {
border: none;
padding: 10px;
margin: auto;
font: inherit;
font-size: inherit;
text-align: center;
}