-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
118 lines (85 loc) · 1.47 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
* {
box-sizing: border-box;
}
html, body, p, h1, h2, h3, ul {
margin: 0;
padding: 0;
}
html {
font-family: Montserrat, sans-serif;
font-weight: 300;
}
img {
max-width: 100%;
display: block;
}
.wrapper {
background: white;
max-width: 1000px;
margin: 0 auto;
height: 100vh;
display: flex;
flex-direction: column;
}
header {
display: flex;
padding: 20px 0;
flex-shrink: 0; /* this ensures that it won't shrink in size to accomodate for the <main> element's size */
}
.header__brand {
margin-right: auto;
}
.header__nav {
list-style-type: none;
display: flex;
}
.header__nav li {
margin-left: 30px;
}
@media screen and (max-width: 700px) {
header {
flex-direction: column;
justify-content: center;
}
.header__brand {
margin: auto;
}
.header__nav {
justify-content: center;
}
.header__nav li {
margin: 0 15px;
}
}
.hero {
background: #333;
color: white;
min-height: 400px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
main {
flex-grow: 1;
}
.products {
display: flex;
justify-content: space-between;
padding: 30px 0;
}
.product {
flex-basis: 32%;
background: #f2f2f2;
padding: 25px;
}
@media screen and (max-width: 700px) {
.products {
flex-direction: column;
}
}
footer {
padding: 20px;
text-align: center;
flex-shrink: 0; /* this ensures that it won't shrink in size to accomodate for the <main> element's size */
}