Skip to content

Commit

Permalink
fix(theme): add new styles to headers, hide navigation and footer bars
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Messi committed Sep 27, 2024
1 parent b9fd809 commit 8681b60
Show file tree
Hide file tree
Showing 12 changed files with 724 additions and 106 deletions.
644 changes: 644 additions & 0 deletions blog/posts/markdown语法测试.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions blog/posts/标题测试.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: 标题测试
date: 2024-09-01
category: 电影系列
tags:
- 动作
- 冒险
description: '标题测试'
---

# 一级标题

## 二级标题

### 三级标题

#### 四级标题

##### 五级标题

###### 六级标题
11 changes: 0 additions & 11 deletions blog/posts/测试文章2.md

This file was deleted.

11 changes: 0 additions & 11 deletions blog/posts/测试文章3.md

This file was deleted.

11 changes: 0 additions & 11 deletions blog/posts/测试文章4.md

This file was deleted.

11 changes: 0 additions & 11 deletions blog/posts/测试文章5.md

This file was deleted.

11 changes: 0 additions & 11 deletions blog/posts/测试文章6.md

This file was deleted.

12 changes: 0 additions & 12 deletions blog/posts/测试文章7.md

This file was deleted.

11 changes: 0 additions & 11 deletions blog/posts/测试文章8.md

This file was deleted.

4 changes: 2 additions & 2 deletions blog/posts/测试文章1.md → blog/posts/置顶测试.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ top: true
tags:
- 动作
- 冒险
description: '测试文章1'
description: '置顶测试'
---

测试文章1
置顶测试
2 changes: 1 addition & 1 deletion packages/Solis/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const sortedPosts = computed(() => {

<style lang="scss" scoped>
.post-list {
// border-bottom: 1px dashed var(--vp-c-brand-soft);
border-bottom: 1px dashed var(--vp-c-gray-3);
padding: 20px 0;
}
Expand Down
81 changes: 56 additions & 25 deletions packages/Solis/style/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,40 @@
--vp-c-brand: var(--vp-c-brand-1);
}

.vp-doc a {
font-weight: 900 !important;
text-decoration: none !important;
.vp-doc {
a {
font-weight: 900 !important;
text-decoration: none !important;
}

h1,
h2,
h3 {
border-top: none !important;
padding: 0 0 14px;
border: none;
border-bottom: 1px solid var(--vp-c-divider);
.header-anchor {
top: auto;
}

a {
&:not(.header-anchor) {
font-weight: 600;
color: var(--vp-c-text-1);

&:hover {
color: var(--vp-c-brand-2);
}
}
}
}
}

.VPNavBar,
.VPFooter {
transition: none !important;
border: none !important;
}

.content {
Expand All @@ -31,11 +62,7 @@
}

.VPDoc {
padding-top: 10px !important;
}

.container {
max-width: 60rem !important;
padding: 10px 24px 0px 24px !important;
}

.VPContent .container {
Expand Down Expand Up @@ -110,8 +137,16 @@
}
}
@media (min-width: 768px) {
.VPDoc {
padding-top: 10px !important;
.VPNavBar {
&:not(.has-sidebar) {
&:not(.top) {
box-shadow: 0 0.3125rem 0.3125rem -0.3125rem rgba(0, 0, 0, 0.117);
}

.divider {
display: none;
}
}
}
}
@media screen and (max-width: 768px) {
Expand All @@ -120,10 +155,6 @@
}
}
@media (min-width: 960px) {
.VPDoc {
padding-top: 10px !important;
}

.VPDoc:not(.has-sidebar) .content {
max-width: inherit !important;
}
Expand All @@ -133,6 +164,17 @@
.content {
padding: 0 !important;
}
.VPNavBar {
&:not(.has-sidebar) {
&:not(.top) {
box-shadow: 0 0.3125rem 0.3125rem -0.3125rem rgba(0, 0, 0, 0.117);
}

.divider {
display: none;
}
}
}
}

@media (min-width: 1280px) {
Expand All @@ -146,14 +188,3 @@
display: block !important;
}
}

.vp-doc {
h1,
h2,
h3,
h4,
h5,
h6 {
border-top: none !important;
}
}

0 comments on commit 8681b60

Please sign in to comment.