File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 2929 @include clearfix ;
3030 padding : 0.5em 1em ;
3131 font-family : $sans-serif-narrow ;
32+
33+ /* Center the navigation content */
34+ display : flex ;
35+ justify-content : center ;
36+ align-items : center ;
3237
3338 @include breakpoint ($x-large ) {
3439 max-width : $x-large ;
3540 }
3641
3742 nav {
3843 z-index : 10 ;
44+ width : 100% ;
3945 }
4046
4147 a {
Original file line number Diff line number Diff line change 176176 position : relative ;
177177 min-width : 250px ;
178178 background : var (--global-bg-color );
179+
180+ /* Center the navigation and add spacing */
181+ display : flex ;
182+ justify-content : center ;
183+ padding-left : 3rem ;
184+ padding-right : 3rem ;
185+
186+ @include breakpoint ($large ) {
187+ padding-left : 5rem ;
188+ padding-right : 5rem ;
189+ }
190+
191+ @include breakpoint ($x-large ) {
192+ padding-left : 8rem ;
193+ padding-right : 8rem ;
194+ }
179195
180196 a {
181197 display : block ;
204220
205221 .visible-links {
206222 display : table ;
223+ margin : 0 auto ; /* Center the links */
207224
208225 li {
209226 display : table-cell ;
You can’t perform that action at this time.
0 commit comments