1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-01-10 08:52:47 +00:00

style: improve code style of SCSS & YAML

This commit is contained in:
Cotes Chung
2023-03-16 03:36:52 +08:00
parent 02b7bd5095
commit 3c7934abf0
12 changed files with 181 additions and 117 deletions

View File

@@ -8,7 +8,7 @@
$timeline-width: 4px;
%timeline {
content: "";
content: '';
width: $timeline-width;
position: relative;
float: left;
@@ -37,8 +37,9 @@
top: 24px;
}
&::after { /* Year dot */
content: "";
/* Year dot */
&::after {
content: '';
display: inline-block;
position: relative;
border-radius: 50%;
@@ -63,7 +64,14 @@
&:nth-child(odd) {
background-color: var(--main-bg, #ffffff);
background-image: linear-gradient(to left, #ffffff, #fbfbfb, #fbfbfb, #fbfbfb, #ffffff);
background-image: linear-gradient(
to left,
#ffffff,
#fbfbfb,
#fbfbfb,
#fbfbfb,
#ffffff
);
}
&::before {
@@ -109,7 +117,7 @@
&::before {
/* the dot before post title */
content: "";
content: '';
display: inline-block;
position: relative;
border-radius: 50%;