Skip to content

Commit bf3f6fc

Browse files
committed
refactor: update size of navs; fix: position of close button
1 parent fcba7a9 commit bf3f6fc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ $sidebar-brand-height: 4rem !default;
15371537
$sidebar-brand-color: $high-emphasis-light !default;
15381538
$sidebar-brand-bg: rgba($black, .2) !default;
15391539

1540-
$sidebar-header-height: auto !default;
1540+
$sidebar-header-height: 4rem !default;
15411541
$sidebar-header-padding-y: .75rem !default;
15421542
$sidebar-header-padding-x: 1rem !default;
15431543
$sidebar-header-bg: rgba($black, .2) !default;

scss/sidebar/_sidebar.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@
104104

105105
.sidebar-close {
106106
position: absolute;
107+
top: 0;
107108
right: 0;
108109
width: $sidebar-brand-height;
109-
height: $sidebar-brand-height;
110+
height: $sidebar-header-height;
110111
color: var(--#{$variable-prefix}sidebar-color, $sidebar-color);
111112
background: transparent;
112113
border: 0;
@@ -139,6 +140,12 @@
139140
text-align: center;
140141
background: var(--#{$variable-prefix}sidebar-header-bg, $sidebar-header-bg);
141142
@include transition($sidebar-header-height-transition);
143+
144+
.nav-link {
145+
display: flex;
146+
align-items: center;
147+
min-height: $sidebar-header-height;
148+
}
142149
}
143150

144151
.sidebar-footer {

0 commit comments

Comments
 (0)