1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-19 06:06:54 +00:00

Merge branch 'feature/improve-meta-display'

# Conflicts:
#	_sass/addon/commons.scss
This commit is contained in:
Cotes Chung
2021-12-05 17:46:14 +08:00
23 changed files with 170 additions and 128 deletions

View File

@@ -16,17 +16,26 @@
border-color: var(--btn-border-color);
}
@mixin dot($pl: 0.2rem, $pr: 0.4rem) {
@mixin dot($pl: 0.25rem, $pr: 0.25rem) {
content: "\2022";
color: rgba(158, 158, 158, 0.8);
padding-left: $pl;
padding-right: $pr;
}
%text-color {
color: var(--text-color);
}
h1 + .post-meta {
> div:nth-child(2) {
> span:not(:first-child)::before {
@include dot;
span + span::before {
@include dot;
}
em {
@extend %text-color;
a {
@extend %text-color;
}
}
}
@@ -45,6 +54,10 @@ img.preview-img {
margin-top: 6rem;
border-bottom: 1px double var(--main-border-color);
font-size: 0.85rem;
.post-meta a {
@extend %link-underline;
}
}
.post-tags {
@@ -166,6 +179,10 @@ nav[data-toggle=toc] {
@include label(1.1rem, 600);
}
em {
@extend %normal-font-style;
}
.card {
border-color: var(--card-border-color);
background-color: var(--card-bg);
@@ -175,7 +192,7 @@ nav[data-toggle=toc] {
transition: all 0.3s ease-in-out;
h3 {
color: var(--text-color);
@extend %text-color;
}
&:hover {
@@ -309,7 +326,7 @@ nav[data-toggle=toc] {
line-height: 1.2rem;
> a {
font-weight: 600;
color: var(--text-color);
&:hover {
@extend %link-hover;
@@ -343,23 +360,6 @@ nav[data-toggle=toc] {
}
}
@media all and (min-width: 768px) {
#core-wrapper {
h1 + .post-meta {
> div:not(:first-child)::before {
@include dot(0.5rem, 0.2rem);
}
&.flex-column {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
}
} // .post
}
/* Hide SideBar and TOC */
@media all and (max-width: 830px) {
.post-navigation {