Skip to content

Commit babfd02

Browse files
authored
Use flex's gap property (#901)
To apply the same spacing to all the nav-menu-setting items we now can use flex's gap property [1] due to its availability across browsers [1]: https://caniuse.com/flexbox-gap
1 parent f7c7899 commit babfd02

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/DocumentationTopic/DocumentationNav.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ $sidenav-icon-padding-size: 5px;
141141
&-settings {
142142
// ensure settings can get smaller if needed
143143
min-width: 0;
144+
gap: $nav-space-between-elements;
144145

145146
@include font-styles(nav-toggles);
146147

@@ -160,14 +161,6 @@ $sidenav-icon-padding-size: 5px;
160161
@include underline-text;
161162
}
162163

163-
&:first-child:not(:only-child) {
164-
margin-right: $nav-space-between-elements;
165-
166-
@include nav-in-breakpoint() {
167-
margin-right: 0;
168-
}
169-
}
170-
171164
@include nav-dark() {
172165
color: var(--color-nav-dark-current-link);
173166
}

0 commit comments

Comments
 (0)