Skip to content

Commit b7eee65

Browse files
doublefacedoubleface
authored andcommitted
feat: Update design of the sidebar
1 parent b4c5f53 commit b7eee65

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

stylus/components/nav.styl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $nav
2121
$nav-item
2222
position relative
2323
z-index var(--zIndex-app)
24-
height rem(44)
24+
height rem(36)
2525
box-sizing border-box
2626
cursor pointer
2727

@@ -31,8 +31,8 @@ $nav-item
3131
z-index var(--zIndex-below)
3232
border-radius 0 8px 8px 0
3333
top 0
34-
left 0
35-
right rem(16)
34+
left 1.5rem
35+
right 1.5rem
3636
bottom 0
3737
background var(--actionColorHover)
3838

@@ -73,7 +73,7 @@ $nav-item-icon
7373
height rem(16)
7474

7575
$nav-item-text
76-
font-size 16px
76+
font-size 14px
7777
font-weight 500
7878
letter-spacing .15px
7979

@@ -89,8 +89,9 @@ $nav-item-text
8989
$nav-link
9090
display flex
9191
box-shadow border-box
92-
padding-left rem(24)
93-
padding-right rem(16)
92+
margin 0 1.5rem
93+
padding-left rem(8)
94+
padding-right rem(8)
9495
line-height 1.375
9596
text-decoration none
9697
color var(--primaryTextColor)
@@ -104,12 +105,14 @@ $nav-link
104105
color var(--actionColorActive)
105106

106107
&.is-active
107-
box-shadow inset rem(4) 0 0 0 var(--primaryColor)
108-
font-weight bold
109-
color var(--primaryTextColor)
108+
background-color var(--primaryColorLight)
109+
border-radius 8px
110+
font-weight bold
111+
color var(--primaryColor)
110112

111113
+medium-screen()
112114
background-color initial
115+
border-radius initial
113116

114117
.c-nav-icon
115118
color var(--primaryColor)
@@ -121,6 +124,7 @@ $nav-link
121124
+medium-screen()
122125
display block
123126
height auto
127+
margin 0
124128
padding 0
125129
text-align center
126130
font-size rem(11)

0 commit comments

Comments
 (0)