Skip to content

Commit 88e2d45

Browse files
committed
desktop version completed
1 parent 2facd4a commit 88e2d45

File tree

4 files changed

+1020
-12
lines changed

4 files changed

+1020
-12
lines changed

starter/07-Omnifood-Desktop/content.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ Create account
119119
Sign in
120120
iOS app
121121
Android app
122+
122123
About Omnifood
123124
For Business
124125
Cooking partners
125126
Careers
127+
126128
Recipe directory
127129
Help center
128130
Privacy & terms

starter/07-Omnifood-Desktop/css/general.css

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ html {
6161
/* 10px / 16px = 0.625 = 62.5% */
6262
/* Percenteage of user's browser font-size settings */
6363
font-size: 62.5%;
64+
scroll-behavior: smooth;
6465
}
6566

6667
body {
@@ -87,6 +88,10 @@ body {
8788
padding: 0 3.2rem;
8889
}
8990

91+
.grid:not(:last-child) {
92+
margin-bottom: 9.6rem;
93+
}
94+
9095
.grid--2-cols {
9196
grid-template-columns: repeat(2, 1fr);
9297
}
@@ -99,6 +104,10 @@ body {
99104
grid-template-columns: repeat(4, 1fr);
100105
}
101106

107+
.grid--5-cols {
108+
grid-template-columns: repeat(5, 1fr);
109+
}
110+
102111
.grid--center-v {
103112
align-items: center;
104113
}
@@ -139,6 +148,7 @@ body {
139148
letter-spacing: 0.75px;
140149
}
141150

151+
.btn,
142152
.btn:link,
143153
.btn:visited {
144154
display: inline-block;
@@ -148,7 +158,12 @@ body {
148158
padding: 1.6rem 3.2rem;
149159
border-radius: 9px;
150160

151-
transition: background-color 0.3s;
161+
/* Only for .btn it self */
162+
border: none;
163+
cursor: pointer;
164+
font-family: inherit;
165+
166+
transition: all 0.3s;
152167
}
153168

154169
.btn--full:link,
@@ -176,6 +191,74 @@ body {
176191
box-shadow: inset 0 0 0 3px #fff;
177192
}
178193

194+
.btn--form {
195+
align-self: end;
196+
padding: 1.2rem;
197+
198+
background-color: #45260a;
199+
color: #fdf2e9;
200+
}
201+
202+
.btn--form:hover {
203+
background-color: #fff;
204+
color: #555;
205+
}
206+
207+
.link:link,
208+
.link:visited {
209+
display: inline-block;
210+
text-decoration: none;
211+
color: #e67e22;
212+
border-bottom: 1px solid currentColor;
213+
padding-bottom: 2px;
214+
transition: all 0.3s;
215+
}
216+
217+
.link:hover,
218+
.link:active {
219+
color: #cf711f;
220+
border-bottom: 1px solid transparent;
221+
}
222+
223+
.list {
224+
list-style: none;
225+
display: flex;
226+
flex-direction: column;
227+
gap: 1.6rem;
228+
}
229+
230+
.list-item {
231+
font-size: 1.8rem;
232+
display: flex;
233+
align-items: center;
234+
gap: 1.6rem;
235+
}
236+
237+
.list-icon {
238+
width: 3rem;
239+
height: 3rem;
240+
color: #e67e22;
241+
}
242+
243+
*:focus {
244+
outline: none;
245+
box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.5);
246+
}
247+
248+
/* Helpers */
249+
179250
.margin-right-sm {
180251
margin-right: 1.6rem !important;
181252
}
253+
254+
.margin-bottom-md {
255+
margin-bottom: 4.8rem !important;
256+
}
257+
258+
.center-text {
259+
text-align: center;
260+
}
261+
262+
strong {
263+
font-weight: 500;
264+
}

0 commit comments

Comments
 (0)