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:
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user