Skip to content

Commit

Permalink
fix: #11
Browse files Browse the repository at this point in the history
  • Loading branch information
zuofenghua committed Mar 8, 2021
1 parent 9a54467 commit 3238964
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitepress-for-component",
"version": "0.13.0",
"version": "0.13.1",
"description": "dumi like documentation tool",
"main": "dist/node/index.js",
"typings": "types/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions src/client/theme-default/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ import NextAndPrevLinks from './NextAndPrevLinks.vue'
width: calc(100% - var(--slug-width));
}
@media (max-width: 900px) {
.container {
margin-right: 0;
width: 100%;
}
}
.content {
padding-bottom: 1.5rem;
}
Expand Down
11 changes: 11 additions & 0 deletions src/client/theme-default/components/Slugs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,15 @@ export default {
.link {
color: var(--text-color);
}
.right-slug {
transform: translateX(100%);
transition: transform 0.25s ease;
}
@media (min-width: 900px) {
.right-slug {
transform: translateX(0);
}
}
</style>

0 comments on commit 3238964

Please sign in to comment.