Skip to content

Commit 50b4a1d

Browse files
committed
blog update
1 parent 29b33a7 commit 50b4a1d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

_sass/layout/_masthead.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,19 @@
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 {

_sass/layout/_navigation.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,22 @@
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;
@@ -204,6 +220,7 @@
204220

205221
.visible-links {
206222
display: table;
223+
margin: 0 auto; /* Center the links */
207224

208225
li {
209226
display: table-cell;

0 commit comments

Comments
 (0)