Skip to content

Commit 37ecaa0

Browse files
authored
Tweak tree-menu styling (#1153)
1 parent 11f5816 commit 37ecaa0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sass/components/_tree-menu.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$hover-color: rgba($color-white, 0.1);
33
$item-height: 32px;
44
$border-radius: 4px;
5+
$h-padding: 12px;
56

67
margin: 0;
78
padding: 0;
@@ -16,7 +17,7 @@
1617

1718
> .tree-menu {
1819
display: none;
19-
padding-left: 16px;
20+
padding-left: $h-padding;
2021
}
2122
}
2223

@@ -42,11 +43,12 @@
4243
display: flex;
4344
align-items: center;
4445
flex-grow: 1;
45-
padding: 4px 16px;
46+
padding: 4px $h-padding;
4647
min-height: $item-height;
4748
text-decoration: none;
48-
line-height: 1.25;
49+
line-height: 1.35;
4950
font-size: 1rem;
51+
text-wrap: balance;
5052

5153
&, &:focus, &:active, &:hover, &:link, &:visited {
5254
color: $color-white;
@@ -59,7 +61,6 @@
5961
flex-shrink: 0;
6062
width: 44px;
6163
cursor: pointer;
62-
border-radius: $border-radius;
6364
user-select: none;
6465

6566
&:hover {

0 commit comments

Comments
 (0)