-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
83 lines (70 loc) · 4.82 KB
/
index.css
File metadata and controls
83 lines (70 loc) · 4.82 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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700'); /* imports the poppins font to use in your project (compared to standard insertion in meta as link) */
*, *::before, *::after {
box-sizing: border-box;
font-family: 'Poppins', sans-serif; /* all numbers Poppins with default of sans-serif*/
font-weight: normal; /* set font boldness to normal */
margin: 0; /* zero-out margin otherwise there will be a white margin on the sides of the window. */
padding: 0; /* zero-out padding otherwise there will be a white margin on the sides of the window. */
}
header { /* For the header (i.e. "Scoll Magic Study"... */
height: 100vh; /* The header section is 100% of the viewport height*/
display: flex; /* display is set to flex (elements side by side) */
justify-content: center; /* now that display is set to flex, center the content hoizontally */
align-items: center; /* center content veritcally (remember: stretch, center, start, end)*/
background: linear-gradient(to right, rgb(177, 178, 189), rgb(165, 168, 149));
}
header > h1 { /* header h1 style*/
font-size: 4.5em;
color: rgb(255, 255, 255);
}
.product { /* For the "product" section, which will function as our scroll section example*/
height: 300vh; /* set the height to x3 the viewport height*/
display: flex; /* display elements side by side. */
}
.product-title { /* For the title of the section...*/
width: 50%; /* set 50% (remember this is the left column, so .product-pages will take the other 50%)*/
height: 100vh; /* Set the height of the title to 100vh.*/
display: flex; /* and center the title accordingly...*/
justify-content: center;
align-items: center;
font-size: 2.5em;
margin: 0!important; /* FOR JS BUG: makes sure that the reveal of the title is smooth */
}
.product-pages { /* For the right side...*/
width: 50%; /* set to 50% so that the left and right are half-and-half */
}
.product-pages div { /* For each of the divs in the product-pages section...*/
height: 100vh; /* each div will have a 100% viewport size.*/
display: flex; /* align elements side-by-side */
flex-direction: column; /* but have the direction as a column so the elements are stacked on top of each other.*/
justify-content: center; /* have the content centered in the middle of the 100vh */
align-items: center;
color: white;
}
.product-pages div > h2 { /* for each h2 in the divs in product-pages */
padding-bottom: 5%;
font-size: 2em;
}
.product-pages div > p { /* for each of the paragraphs inside the divs in the product-pages...*/
width: 80%; /* make the width of the paragraph 80% of the columns */
font-size: 1.2em; /* font size and line height to make it look good...*/
line-height: 30px;
}
.product-pages div:nth-child(1) { /* select the FIRST child inside the div...*/
background-color: rgb(209, 212, 192);
}
.product-pages div:nth-child(2) { /* select the FIRST child inside the div...*/
background-color: rgb(178, 203, 204);
}
.product-pages div:nth-child(3) { /* select the FIRST child inside the div...*/
background-color: rgb(209, 192, 212);
}
footer { /* standard centering for footer section*/
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(172, 170, 184);
font-size: 2em;
color: white;
}