File tree Expand file tree Collapse file tree 2 files changed +13
-16
lines changed
packages/vuepress/vuepress-theme-titanium/components Expand file tree Collapse file tree 2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 15
15
.sidebar-heading
16
16
.sidebar-arrow
17
17
position absolute
18
- top 0.4em
19
18
right 0.5rem
20
19
width : 1rem
21
20
height : 1rem
Original file line number Diff line number Diff line change @@ -102,24 +102,33 @@ export default {
102
102
& .is-sub-group
103
103
padding-left 0
104
104
& > .sidebar-heading
105
- font-size 0.95 em
105
+ font-size 1 em
106
106
line-height 1.4
107
107
font-weight normal
108
108
padding 0.35rem 1rem 0.35rem 2rem
109
+ margin 0
110
+ & > .sidebar-arrow
111
+ top 0.5rem
112
+ width 0.8rem
113
+ height 0.8rem
109
114
& :not (.clickable )
110
115
opacity 0.5
111
116
& > .sidebar-group-items
112
117
padding-left 1rem
113
118
& > li > .sidebar-link
114
119
font-size : 0.95em ;
115
120
border-left none
121
+ & .depth-0
122
+ & > .sidebar-links
123
+ .active
124
+ border-left-color transparent
116
125
& .depth-1
117
126
& .is-sub-group
118
127
& > .sidebar-heading
119
128
border-left-color transparent
120
129
& .depth-2
121
130
& > .sidebar-heading
122
- border-left none
131
+ border-left-color transparent
123
132
124
133
.sidebar-heading
125
134
color $textColor
@@ -128,7 +137,7 @@ export default {
128
137
font-size 1.1em
129
138
font-weight bold
130
139
// text-transform uppercase
131
- padding 0 1.5rem
140
+ padding 0 1.5rem 0 1.25 rem
132
141
width 100%
133
142
box-sizing border-box
134
143
margin 0 0 0.5rem 0
@@ -144,18 +153,7 @@ export default {
144
153
& :hover
145
154
color $accentColor
146
155
.sidebar-arrow
147
- position absolute
148
- top 0.4em
149
- right 0.5rem
150
- width : 1rem
151
- height : 1rem
152
- transition transform .15s ease
153
- & .right
154
- transform : rotate (90deg )
155
- & .down
156
- transform : rotate (180deg )
157
- & : .open .sidebar-arrow
158
- top - 0.18em
156
+ top 0.4rem
159
157
160
158
.sidebar-group-items
161
159
transition height .1s ease-out
You can’t perform that action at this time.
0 commit comments