Skip to content

Commit 5233ccc

Browse files
author
reco_luan
committed
style: change sidebar style
1 parent 204484f commit 5233ccc

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

components/SidebarLink.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,35 @@ function renderChildren (h, children, path, route, maxDepth, depth = 1) {
7979

8080
<style lang="stylus">
8181
.sidebar .sidebar-sub-headers
82-
padding-left 1rem
82+
padding-left 1.5rem
8383
font-size 0.95em
8484
8585
a.sidebar-link
8686
font-size 1em
8787
font-weight 400
88-
display inline-block
88+
display block!important
8989
color $textColor
90-
border-left 0.25rem solid transparent
91-
padding 0.35rem 1rem 0.35rem 1.25rem
90+
padding 0.35rem 1rem 0.35rem .75rem
9291
line-height 1.4
93-
width: 100%
92+
margin 0 1rem 0 1.5rem
9493
box-sizing: border-box
94+
border-radius .25rem
9595
&:hover
9696
color $accentColor
9797
&.active
9898
font-weight 600
99-
color $accentColor!important
100-
border-left-color $accentColor
99+
color #fff
100+
background $accentColor
101+
// border-left-color $accentColor
101102
.sidebar-group &
102-
padding-left 2rem
103+
// padding-left 2rem
103104
.sidebar-sub-headers &
104105
padding-top 0.25rem
105106
padding-bottom 0.25rem
106107
border-left none
107108
&.active
108109
font-weight 500
110+
background transparent
111+
color $accentColor
112+
margin-left .2rem
109113
</style>

0 commit comments

Comments
 (0)