Skip to content

Commit 85daa46

Browse files
authored
Merge pull request #6 from owen-webb/section-7
Section 7
2 parents d922db1 + 9a05fa2 commit 85daa46

40 files changed

+1407
-0
lines changed

starter/07-Omnifood-Desktop/content/content.md renamed to starter/07-Omnifood-Desktop/content.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,17 @@ Careers
126126
Recipe directory
127127
Help center
128128
Privacy & terms
129+
130+
######
131+
132+
## Sections
133+
134+
- Navigation
135+
- Hero
136+
- Featured in
137+
- How it works
138+
- Meals / Diets
139+
- Testimonials / Gallery
140+
- Pricing / Features
141+
- CTA
142+
- Footer
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
/*
2+
3+
--- TYPOGRAPHY SYSTEM
4+
5+
FONT SIZE SYSTEM (px)
6+
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
7+
8+
FONT WEIGHTS
9+
Default: 400
10+
Medium: 500
11+
Semi-bold: 600
12+
Bold: 700
13+
14+
LINE HEIGHTS
15+
Default: 1
16+
Small: 1.05
17+
Paragraph default: 1.6
18+
19+
--- COLORS
20+
21+
Primary: #e67e22
22+
Tints: #fdf2e9
23+
Shades: #cf711f
24+
Accents:
25+
Greys: #555, #333
26+
27+
28+
--- SHADOWS
29+
30+
31+
-- BORDER RADIUS
32+
Default: 0.9rem
33+
34+
--- WHITE SPACE
35+
36+
SPACING SYSTEM (px)
37+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
38+
39+
*/
40+
41+
/*** GENERAL ***/
42+
43+
* {
44+
box-sizing: border-box;
45+
padding: 0;
46+
margin: 0;
47+
}
48+
49+
*:focus {
50+
box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.5);
51+
outline: none;
52+
}
53+
54+
html {
55+
font-size: 62.5%;
56+
}
57+
58+
body {
59+
color: #555;
60+
font-family: "Rubik", sans-serif;
61+
font-weight: 400;
62+
line-height: 1;
63+
}
64+
65+
strong {
66+
font-weight: 500;
67+
}
68+
69+
.btn, .btn:link, .btn:visited {
70+
border: none;
71+
border-radius: .9rem;
72+
color: #fff;
73+
cursor: pointer;
74+
display: inline-block;
75+
font-size: 2rem;
76+
padding: 1.6rem 3.2rem;
77+
text-decoration: none;
78+
transition: all 300ms;
79+
}
80+
81+
.btn--form {
82+
align-self: end;
83+
background-color: #45260a;
84+
color: #fdf2e9;
85+
padding: 1.2rem;
86+
}
87+
88+
.btn--form:hover {
89+
background-color: #fff;
90+
color: #555;
91+
}
92+
93+
.btn--full:link, .btn--full:visited {
94+
background-color: #e67e22;
95+
color: #fff;
96+
}
97+
98+
.btn--full:hover, .btn--full:active {
99+
background-color: #cf711f;
100+
}
101+
102+
.btn--outline:link, .btn--outline:visited {
103+
background-color: #fff;
104+
color: #555;
105+
}
106+
107+
.btn--outline:hover, .btn--outline:active {
108+
background-color: #fdf2e9;
109+
box-shadow: inset 0 0 0 .3rem #fff;
110+
}
111+
112+
.center-text {
113+
text-align: center;
114+
}
115+
116+
.container {
117+
margin: 0 auto;
118+
max-width: 120rem;
119+
padding: 0 3.2rem;
120+
}
121+
122+
.grid {
123+
column-gap: 6.4rem;
124+
display: grid;
125+
row-gap: 9.6rem;
126+
}
127+
128+
.grid:not(:last-child) {
129+
margin-bottom: 9.6rem;
130+
}
131+
132+
.grid--center-v {
133+
align-items: center;
134+
}
135+
136+
.grid--2-cols {
137+
grid-template-columns: repeat(2, 1fr);
138+
}
139+
140+
.grid--3-cols {
141+
grid-template-columns: repeat(3, 1fr);
142+
}
143+
144+
.grid--4-cols {
145+
grid-template-columns: repeat(4, 1fr);
146+
}
147+
148+
.grid--5-cols {
149+
grid-template-columns: repeat(5, 1fr);
150+
}
151+
152+
.heading-primary, .heading-secondary, .heading-tertiary {
153+
color: #333;
154+
font-weight: 700;
155+
letter-spacing: -0.5px;
156+
}
157+
158+
.heading-primary {
159+
font-size: 5.2rem;
160+
line-height: 1.05;
161+
margin-bottom: 3.2rem;
162+
}
163+
164+
.heading-secondary {
165+
font-size: 4.4rem;
166+
line-height: 1.2;
167+
margin-bottom: 9.6rem;
168+
}
169+
170+
.heading-tertiary {
171+
font-size: 3rem;
172+
line-height: 1.2;
173+
margin-bottom: 3.2rem;
174+
}
175+
176+
.link:link, .link:visited {
177+
border-bottom: 1px solid currentColor;
178+
color: #e67e22;
179+
display: inline-block;
180+
padding-bottom: 2px;
181+
text-decoration: none;
182+
transition: all 300ms;
183+
}
184+
185+
.link:hover, .link:active {
186+
border-bottom: 1px solid transparent;
187+
color: #cf711f;
188+
}
189+
190+
.list {
191+
display: flex;
192+
flex-direction: column;
193+
gap: 1.6rem;
194+
list-style: none;
195+
}
196+
197+
.list-icon {
198+
color: #e67e22;
199+
height: 3rem;
200+
width: 3rem;
201+
}
202+
203+
.list-item {
204+
align-items: center;
205+
display: flex;
206+
font-size: 1.8rem;
207+
gap: 1.6rem;
208+
}
209+
210+
.margin-bottom-md {
211+
margin-bottom: 4.8rem !important;
212+
}
213+
214+
.margin-right-sm {
215+
margin-right: 1.6rem !important;
216+
}
217+
218+
.subheading {
219+
color: #cf711f;
220+
display: block;
221+
font-size: 2rem;
222+
font-weight: 500;
223+
letter-spacing: 0.75px;
224+
margin-bottom: 1.6rem;
225+
text-transform: uppercase;
226+
}

0 commit comments

Comments
 (0)