1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Replace heading elements of panel with span.

Fix the heading levels audit.
This commit is contained in:
Cotes Chung
2020-10-27 05:14:33 +08:00
parent 5741aa4e18
commit 57a4bfdb82
4 changed files with 22 additions and 20 deletions

View File

@@ -516,20 +516,15 @@ footer {
&.topbar-down {
top: 6rem;
}
>div {
> div {
padding-left: 1rem;
border-left: 1px solid var(--main-border-color);
&:not(:last-child) {
margin-bottom: 4rem;
}
}
h3 {
padding-top: .5rem;
padding-bottom: .5rem;
margin-top: 0;
margin-bottom: 0;
letter-spacing: -0.02em;
@include label(inherit, 600);
span {
@include panel-label;
}
.post-content {
font-size: .9rem;

View File

@@ -99,6 +99,17 @@
font-family: 'Roboto Condensed', 'Microsoft Yahei', sans-serif;
}
@mixin panel-label {
display: block;
line-height: 1.2;
padding-top: .5rem;
padding-bottom: .5rem;
margin-top: 0;
margin-bottom: 0;
letter-spacing: -0.02em;
@include label(inherit);
}
@mixin align-center {
position: relative;
left: 50%;

View File

@@ -132,7 +132,6 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
}
#toc-wrapper {
margin-top: 7rem;
border-left: 1px solid rgba(158, 158, 158, 0.17);
position: -webkit-sticky;
position: sticky;
@@ -142,8 +141,8 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
&.topbar-down {
top: 6rem;
}
>h3 {
@include label(inherit, 600);
> span {
@include panel-label;
}
}