Skip to content

Commit

Permalink
fix(create-vuepress): prevent navbar overlap in blog template (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
UoUoio authored Dec 6, 2024
1 parent 8b0c79c commit c806fb8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions e2e/docs/.vuepress/components/ArticleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ defineProps<{
@include mixins.content-wrapper;
& {
padding-top: calc(var(--navbar-height) + 1rem) !important;
text-align: center;
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/docs/.vuepress/layouts/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const categoryMap = useBlogCategory<ArticleInfo>('category')
@include mixins.content-wrapper;

& {
padding-top: 1rem !important;
padding-top: calc(var(--navbar-height) + 1rem) !important;
padding-bottom: 0 !important;
font-size: 14px;
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/docs/.vuepress/layouts/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const tagMap = useBlogCategory<ArticleInfo>('tag')
@include mixins.content-wrapper;

& {
padding-top: 1rem !important;
padding-top: calc(var(--navbar-height) + 1rem) !important;
padding-bottom: 0 !important;
font-size: 14px;
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/docs/.vuepress/layouts/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const timelines = useBlogType('timeline')

<style lang="scss">
.timeline-title {
padding: 0;
padding-top: calc(var(--navbar-height) + 1rem) !important;
text-align: center;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ defineProps({
.article-wrapper {
@include mixins.content-wrapper;
padding-top: calc(var(--navbar-height) + 1rem) !important;
text-align: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const categoryMap = useBlogCategory('category')
.category-wrapper {
@include mixins.content-wrapper;
padding-top: 1rem !important;
padding-top: calc(var(--navbar-height) + 1rem) !important;
padding-bottom: 0 !important;
font-size: 14px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const tagMap = useBlogCategory('tag')
.tag-wrapper {
@include mixins.content-wrapper;
padding-top: 1rem !important;
padding-top: calc(var(--navbar-height) + 1rem) !important;
padding-bottom: 0 !important;
font-size: 14px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const timelines = useBlogType('timeline')

<style lang="scss">
.timeline-title {
padding: 0;
padding-top: calc(var(--navbar-height) + 1rem) !important;
text-align: center;
}
</style>

0 comments on commit c806fb8

Please sign in to comment.