Skip to content

Commit 48f3500

Browse files
committed
Align the navbar to meet the design system requirement
1 parent 0a65909 commit 48f3500

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

webpack/sass/main.scss

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,76 @@ pre {
106106
}
107107
}
108108

109+
//Adjusting and properly aligning the Navbar
110+
.navbar {
111+
display: flex !important;
112+
justify-content: space-between !important;
113+
align-items: center;
114+
width: 100% !important;
115+
padding: 1rem;
116+
position: relative;
117+
z-index: 1;
118+
}
119+
120+
.navbar-brand{
121+
width: 100% !important;
122+
}
123+
124+
125+
.navbar-burger {
126+
margin-left: auto !important;
127+
cursor: pointer;
128+
display: inline-block;
129+
height: 2.25rem;
130+
width: 2.25rem;
131+
position: relative;
132+
}
133+
134+
.navbar-burger span {
135+
background-color: currentColor;
136+
display: block;
137+
height: 2px;
138+
width: 24px;
139+
margin: 5px auto;
140+
transition: background-color 0.3s ease-in-out;
141+
}
142+
143+
144+
.navbar-burger.is-active span {
145+
background-color: red;
146+
}
147+
148+
149+
.navbar-menu {
150+
display: none;
151+
flex-direction: column;
152+
position: absolute;
153+
top: 100%;
154+
right: 0;
155+
background-color: white;
156+
157+
}
158+
159+
160+
.navbar-menu.is-active {
161+
display: flex;
162+
margin-bottom: 5rem;
163+
}
164+
165+
166+
.navbar-end {
167+
display: flex;
168+
flex-direction: column;
169+
170+
}
171+
172+
.navbar-item {
173+
padding: 1rem;
174+
width: 100%;
175+
text-align: center;
176+
}
177+
178+
109179
// Breadcrumb
110180
.breadcrumb-container {
111181
border-top: 4px solid $color-forest-green;

0 commit comments

Comments
 (0)