update: mobile support
This commit is contained in:
parent
4263673bd4
commit
5eb42e0b61
@ -7,10 +7,17 @@ import BloggerInfo from './BloggerInfo.vue'
|
|||||||
</aside>
|
</aside>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import '../styles/variables';
|
||||||
.blog-info-wrapper {
|
.blog-info-wrapper {
|
||||||
width: 18.75rem;
|
width: 18.75rem;
|
||||||
margin-left: 1.25rem;
|
margin-left: 1.25rem;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: calc(var(--navbar-height) + 1.25rem);
|
top: calc(var(--navbar-height) + 1.25rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: $MQMobile) {
|
||||||
|
.blog-info-wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -41,7 +41,7 @@ const isNote = computed(() => {
|
|||||||
</template>
|
</template>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '../styles/_mixins';
|
@import '../styles/_mixins';
|
||||||
|
@import '../styles/variables';
|
||||||
.page-wrapper {
|
.page-wrapper {
|
||||||
@include wrapper;
|
@include wrapper;
|
||||||
|
|
||||||
@ -73,4 +73,13 @@ const isNote = computed(() => {
|
|||||||
.comment-container {
|
.comment-container {
|
||||||
margin-top: 8rem;
|
margin-top: 8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: $MQMobile) {
|
||||||
|
.page-wrapper .page-container .page-content {
|
||||||
|
padding: 0 0.75rem 1rem;
|
||||||
|
}
|
||||||
|
.plume-theme-page-toc {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -95,7 +95,7 @@ function handleJump(): void {
|
|||||||
next
|
next
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination-form">
|
<div class="pagination-form can-hide">
|
||||||
<span>跳转到:</span>
|
<span>跳转到:</span>
|
||||||
<input v-model="inputPage" type="number" :min="1" :max="pageCount" />
|
<input v-model="inputPage" type="number" :min="1" :max="pageCount" />
|
||||||
<span>/{{ pageCount }}</span>
|
<span>/{{ pageCount }}</span>
|
||||||
@ -104,6 +104,7 @@ function handleJump(): void {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@import '../styles/variables';
|
||||||
.pagination-wrapper {
|
.pagination-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
@ -169,4 +170,17 @@ function handleJump(): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: $MQMobile) {
|
||||||
|
.pagination-wrapper {
|
||||||
|
.can-hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
// .pagination-container {
|
||||||
|
// display: flex;
|
||||||
|
// justify-content: space-between;
|
||||||
|
// padding: 0 2rem;
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export const resolveActiveHeaderLink = (): PluginConfig => {
|
|||||||
headerLinkSelector: 'a.theme-plume-toc-link',
|
headerLinkSelector: 'a.theme-plume-toc-link',
|
||||||
headerAnchorSelector: '.header-anchor',
|
headerAnchorSelector: '.header-anchor',
|
||||||
delay: 200,
|
delay: 200,
|
||||||
offset: 80,
|
offset: 20,
|
||||||
} as ActiveHeaderLinksPluginOptions,
|
} as ActiveHeaderLinksPluginOptions,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user