Skip to content

Commit f4950a0

Browse files
committed
fix new navigation header for mobile and medium sizes
1 parent 727db31 commit f4950a0

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

assets/sass/layout/_header.scss

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,17 @@
5757
}
5858

5959
.site-brand {
60-
width: 100%;
60+
position: relative;
6161
display: flex;
62+
width: 100%;
6263
flex-direction: row;
6364
align-items: center;
65+
justify-content: space-between;
6466

6567
.get-started {
68+
flex: 1;
6669
display: flex;
67-
flex: 2 1 0;
68-
justify-content: end;
70+
justify-content: flex-end;
6971

7072
a {
7173
@include mixins.rounded-button;
@@ -74,7 +76,9 @@
7476
}
7577

7678
.site-logo {
77-
flex: 1 1 0;
79+
flex: 1;
80+
display: flex;
81+
justify-content: center;
7882
}
7983

8084
.site-banner {
@@ -87,21 +91,32 @@
8791
}
8892

8993
.site-navigation {
90-
flex: 2 1 0;
94+
flex: 1;
95+
display: flex;
96+
justify-content: flex-start;
9197
padding: 0 0 10px 0;
9298
font-size: 20px;
9399
font-weight: 500;
94100

95101
a {
96102
margin-right: 30px;
97103
color: #63338f;
104+
white-space: nowrap;
98105

99106
&:hover {
100107
color: color.adjust(variables.$purple, $lightness: -15%, $space: hsl);
101108
}
102109
}
103110
}
104111

112+
@media (max-width: variables.$screen-md-max) {
113+
.site-navigation {
114+
display: grid;
115+
grid-template-columns: 1fr 1fr;
116+
grid-gap: 10px;
117+
}
118+
}
119+
105120
@media (max-width: variables.$screen-xs-max) {
106121
#site-header {
107122
display: none !important;

0 commit comments

Comments
 (0)