Skip to content

Commit 35d85e9

Browse files
author
hastom
committed
Fixed docs position and height
1 parent d8110e4 commit 35d85e9

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

docs/app/template/MainNav.vue

+23-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</md-content>
88
</transition>
99

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" />
1111

1212
<md-drawer md-fixed :md-active.sync="isMenuVisible" @md-closed="hideMenu">
1313
<md-toolbar class="md-transparent" md-elevation="0">
@@ -23,7 +23,7 @@
2323
</template>
2424

2525
<script>
26-
import { mapState, mapMutations } from 'vuex'
26+
import { mapMutations, mapState } from 'vuex'
2727
import * as types from 'store/mutation-types'
2828
import MainNavContent from './MainNavContent'
2929
@@ -56,7 +56,7 @@
5656
this.hideMenu()
5757
next()
5858
})
59-
}
59+
},
6060
}
6161
</script>
6262

@@ -129,36 +129,46 @@
129129
border-top: 1px solid rgba(#000, .12);
130130
}
131131
132-
@media(min-width:981px){
133-
.toc{
132+
@media(min-width: 981px) {
133+
.toc {
134134
display: block;
135135
}
136136
}
137137
138-
@media(max-width:980px){
139-
.toc{
138+
@media(max-width: 980px) {
139+
.toc {
140140
display: none;
141141
}
142142
}
143143
144-
.toc{
145-
top: 10%;
144+
.toc {
146145
position: fixed;
147146
right: 10px;
148-
z-index: 999;
147+
z-index: 2;
149148
border-left: 1px solid #e0e0e0;
150149
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+
152158
>>> ul {
153159
list-style: none;
154160
padding-left: 20px;
155161
margin: 5px 0;
156-
li a{
162+
163+
li {
164+
padding: 4px 0;
165+
}
166+
167+
li a {
157168
color: #7d7d7d;
158169
}
159170
}
160171
}
161172
162173
163-
164174
</style>

0 commit comments

Comments
 (0)