Skip to content

Commit e4b5527

Browse files
stanwolverinejoshka
authored andcommitted
fix: toggle button and navbar style fixes
1 parent 9bd8bf0 commit e4b5527

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

styles/styles.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ a:active {
103103
margin: 0 1.5rem;
104104
}
105105

106+
// Reducing whitespace around toggle button to make it consistent
107+
// with other navbar links and icons on breakpoint: mobile < 800px < tablet/desktop
108+
@include until(800px) {
109+
&__container {
110+
margin: 0 0.85rem;
111+
}
112+
}
113+
114+
@include mobile {
115+
&__container {
116+
margin: 0 1.5rem;
117+
margin-bottom: 1.5rem;
118+
}
119+
}
120+
106121
&__btn {
107122
// button style reset/cleanup
108123
background: none;
@@ -165,6 +180,22 @@ a:active {
165180
}
166181
}
167182

183+
// Reducing whitespace in navbar to fit links and icons
184+
// on breakpoint: mobile < 800px < tablet/desktop
185+
@include until(800px) {
186+
.navbar-item {
187+
&.navbar-text {
188+
padding: 0 0.85rem;
189+
}
190+
&.navbar-icon {
191+
padding: 0 0.85rem;
192+
}
193+
}
194+
hr {
195+
margin: 1rem 0.85rem;
196+
}
197+
}
198+
168199
@include mobile {
169200
.navbar-menu {
170201
display: block;
@@ -190,6 +221,10 @@ a:active {
190221
&:first-child {
191222
margin-top: 0.5rem;
192223
}
224+
// Resetting reduced whitespace to normal
225+
&.navbar-text, &.navbar-icon {
226+
padding: 0 1.5rem;
227+
}
193228
}
194229

195230
.tk-social,

0 commit comments

Comments
 (0)