File tree Expand file tree Collapse file tree 2 files changed +56
-2
lines changed
practice/07 - Omnifood-Desktop Expand file tree Collapse file tree 2 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 5
5
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
6
6
7
7
- Font Weight:
8
- Default: 400
8
+ Default: 400
9
+ Medium 500
10
+ Semi Bold 600
11
+ Bold 700
9
12
10
13
- Line Heights:
11
14
Defaults: 1
15
+ Small: 1.05
16
+ Paragraph Default: 1.6
12
17
13
18
14
19
-- 02 COLORS
25
30
26
31
-- 06 BORDER RADIUS
27
32
33
+ Default: 9px
34
+
28
35
-- 07 WHITESPACE
29
36
30
37
- SPACING SYSTEM (px)
@@ -126,6 +133,45 @@ body {
126
133
height : 2.2rem ;
127
134
}
128
135
136
+ /**************************************/
137
+ /* NAVIGATION */
138
+ /**************************************/
139
+
140
+ .main-nav-list {
141
+ list-style : none;
142
+ display : flex;
143
+ align-items : center;
144
+ gap : 3.2rem ;
145
+ }
146
+
147
+ .main-nav-link : link ,
148
+ .main-nav-link : visited {
149
+ display : inline-block;
150
+ text-decoration : none;
151
+ color : # 333 ;
152
+ font-weight : 500 ;
153
+ font-size : 1.8rem ;
154
+ transition : all 0.3s ;
155
+ }
156
+
157
+ .main-nav-link : hover ,
158
+ .main-nav-link : active {
159
+ color : # cf711f ;
160
+ }
161
+
162
+ .main-nav-link .nav-cta : link ,
163
+ .main-nav-link .nav-cta : visited {
164
+ padding : 1.2rem 2.4rem ;
165
+ border-radius : 9px ;
166
+ color : # fff ;
167
+ background-color : # e67e22 ;
168
+ }
169
+
170
+ .main-nav-link .nav-cta : hover ,
171
+ .main-nav-link .nav-cta : active {
172
+ background-color : # cf711f ;
173
+ }
174
+
129
175
/**************************************/
130
176
/* HERO SECTION */
131
177
/**************************************/
Original file line number Diff line number Diff line change 15
15
< body >
16
16
< header class ="header ">
17
17
< img alt ="Omnifood logo " class ="logo " src ="img/omnifood-logo.png ">
18
- < nav class ="main-nav "> Navigation</ nav >
18
+ < nav class ="main-nav ">
19
+ < ul class ="main-nav-list ">
20
+ < li > < a class ="main-nav-link " href ="# "> Section 1</ a > </ li >
21
+ < li > < a class ="main-nav-link " href =""> Section 2</ a > </ li >
22
+ < li > < a class ="main-nav-link " href =""> Section 3</ a > </ li >
23
+ < li > < a class ="main-nav-link " href =""> Section 4</ a > </ li >
24
+ < li > < a class ="main-nav-link nav-cta " href =""> Section 5</ a > </ li >
25
+ </ ul >
26
+ </ nav >
19
27
</ header >
20
28
< main >
21
29
< section class ="section-hero ">
You can’t perform that action at this time.
0 commit comments