File tree 1 file changed +23
-13
lines changed
1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change 7
7
</md-content >
8
8
</transition >
9
9
10
- <vue-toc target =" .page-container" class =" toc" :key =" $route.fullPath" v-if =" !isSplash" />
10
+ <vue-toc target =" .page-container" class =" toc" :key =" $route.fullPath" v-if =" !isSplash" />
11
11
12
12
<md-drawer md-fixed :md-active.sync =" isMenuVisible" @md-closed =" hideMenu" >
13
13
<md-toolbar class =" md-transparent" md-elevation =" 0" >
23
23
</template >
24
24
25
25
<script >
26
- import { mapState , mapMutations } from ' vuex'
26
+ import { mapMutations , mapState } from ' vuex'
27
27
import * as types from ' store/mutation-types'
28
28
import MainNavContent from ' ./MainNavContent'
29
29
56
56
this .hideMenu ()
57
57
next ()
58
58
})
59
- }
59
+ },
60
60
}
61
61
</script >
62
62
129
129
border-top : 1px solid rgba (#000 , .12 );
130
130
}
131
131
132
- @media (min-width :981px ){
133
- .toc {
132
+ @media (min-width : 981px ) {
133
+ .toc {
134
134
display : block ;
135
135
}
136
136
}
137
137
138
- @media (max-width :980px ){
139
- .toc {
138
+ @media (max-width : 980px ) {
139
+ .toc {
140
140
display : none ;
141
141
}
142
142
}
143
143
144
- .toc {
145
- top : 10% ;
144
+ .toc {
146
145
position : fixed ;
147
146
right : 10px ;
148
- z-index : 999 ;
147
+ z-index : 2 ;
149
148
border-left : 1px solid #e0e0e0 ;
150
149
padding-right : 15px ;
151
- max-width : 250px ;
150
+ width : 250px ;
151
+ height : 100% ;
152
+ padding-top : 16px ;
153
+
154
+ & :empty {
155
+ display : none ;
156
+ }
157
+
152
158
>>> ul {
153
159
list-style : none ;
154
160
padding-left : 20px ;
155
161
margin : 5px 0 ;
156
- li a {
162
+
163
+ li {
164
+ padding : 4px 0 ;
165
+ }
166
+
167
+ li a {
157
168
color : #7d7d7d ;
158
169
}
159
170
}
160
171
}
161
172
162
173
163
-
164
174
</style >
You can’t perform that action at this time.
0 commit comments