2021-01-23 08:20:58 +03:00
|
|
|
/*
|
|
|
|
Style for Archives
|
|
|
|
*/
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
#archives {
|
|
|
|
letter-spacing: 0.03rem;
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2022-08-03 13:47:42 +03:00
|
|
|
$timeline-width: 4px;
|
|
|
|
|
|
|
|
%timeline {
|
2023-03-15 22:36:52 +03:00
|
|
|
content: '';
|
2022-08-03 13:47:42 +03:00
|
|
|
width: $timeline-width;
|
2020-02-25 12:56:03 +03:00
|
|
|
position: relative;
|
2022-08-03 13:47:42 +03:00
|
|
|
float: left;
|
|
|
|
background-color: var(--timeline-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.year {
|
|
|
|
height: 3.5rem;
|
|
|
|
font-size: 1.5rem;
|
2022-08-08 15:56:38 +03:00
|
|
|
position: relative;
|
|
|
|
left: 2px;
|
2022-08-03 13:47:42 +03:00
|
|
|
margin-left: -$timeline-width;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@extend %timeline;
|
|
|
|
|
|
|
|
height: 72px;
|
2022-08-08 15:56:38 +03:00
|
|
|
left: 79px;
|
2022-08-03 13:47:42 +03:00
|
|
|
bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child::before {
|
|
|
|
@extend %timeline;
|
|
|
|
|
|
|
|
height: 32px;
|
|
|
|
top: 24px;
|
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
|
2023-03-15 22:36:52 +03:00
|
|
|
/* Year dot */
|
|
|
|
&::after {
|
|
|
|
content: '';
|
2022-08-03 13:47:42 +03:00
|
|
|
display: inline-block;
|
2020-02-25 12:56:03 +03:00
|
|
|
position: relative;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
2022-08-08 15:56:38 +03:00
|
|
|
left: 21.5px;
|
2020-02-25 12:56:03 +03:00
|
|
|
border: 3px solid;
|
2020-02-27 16:05:50 +03:00
|
|
|
background-color: var(--timeline-year-dot-color);
|
|
|
|
border-color: var(--timeline-node-bg);
|
|
|
|
box-shadow: 0 0 2px 0 #c2c6cc;
|
2020-02-25 12:56:03 +03:00
|
|
|
z-index: 1;
|
|
|
|
}
|
2022-08-03 13:47:42 +03:00
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
|
2021-01-27 15:06:31 +03:00
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
line-height: 3rem;
|
2024-10-20 08:47:54 +03:00
|
|
|
|
|
|
|
@extend %text-ellipsis;
|
2021-01-27 15:06:31 +03:00
|
|
|
|
|
|
|
&:nth-child(odd) {
|
2022-10-19 21:05:29 +03:00
|
|
|
background-color: var(--main-bg, #ffffff);
|
2023-03-15 22:36:52 +03:00
|
|
|
background-image: linear-gradient(
|
|
|
|
to left,
|
|
|
|
#ffffff,
|
|
|
|
#fbfbfb,
|
|
|
|
#fbfbfb,
|
|
|
|
#fbfbfb,
|
|
|
|
#ffffff
|
|
|
|
);
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
|
|
|
|
2022-08-03 13:47:42 +03:00
|
|
|
&::before {
|
|
|
|
@extend %timeline;
|
2021-01-27 15:06:31 +03:00
|
|
|
|
2022-08-03 13:47:42 +03:00
|
|
|
top: 0;
|
2022-08-08 15:56:38 +03:00
|
|
|
left: 77px;
|
|
|
|
height: 3.1rem;
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-03 13:47:42 +03:00
|
|
|
&:last-child li:last-child::before {
|
|
|
|
height: 1.5rem;
|
2021-01-27 15:06:31 +03:00
|
|
|
}
|
2022-08-03 13:47:42 +03:00
|
|
|
} /* #archives ul */
|
2021-01-27 15:06:31 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
.date {
|
|
|
|
white-space: nowrap;
|
|
|
|
display: inline-block;
|
2022-08-08 15:56:38 +03:00
|
|
|
position: relative;
|
|
|
|
right: 0.5rem;
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&.month {
|
|
|
|
width: 1.4rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
&.day {
|
|
|
|
font-size: 85%;
|
2022-10-19 21:05:29 +03:00
|
|
|
font-family: Lato, sans-serif;
|
2022-08-08 15:56:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
/* post title in Archvies */
|
|
|
|
margin-left: 2.5rem;
|
|
|
|
position: relative;
|
|
|
|
top: 0.1rem;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
/* the dot before post title */
|
2023-03-15 22:36:52 +03:00
|
|
|
content: '';
|
2022-08-08 15:56:38 +03:00
|
|
|
display: inline-block;
|
2020-02-25 12:56:03 +03:00
|
|
|
position: relative;
|
2022-08-08 15:56:38 +03:00
|
|
|
border-radius: 50%;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
float: left;
|
|
|
|
top: 1.35rem;
|
|
|
|
left: 71px;
|
|
|
|
background-color: var(--timeline-node-bg);
|
|
|
|
box-shadow: 0 0 3px 0 #c2c6cc;
|
|
|
|
z-index: 1;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
2022-08-08 15:56:38 +03:00
|
|
|
}
|
2022-10-19 21:05:29 +03:00
|
|
|
} /* #archives */
|
2019-11-15 19:01:33 +03:00
|
|
|
|
2023-07-02 15:16:36 +03:00
|
|
|
@media all and (max-width: 576px) {
|
2019-11-15 19:01:33 +03:00
|
|
|
#archives {
|
|
|
|
margin-top: -1rem;
|
2021-10-25 22:04:15 +03:00
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
ul {
|
|
|
|
letter-spacing: 0;
|
|
|
|
}
|
2019-11-15 19:01:33 +03:00
|
|
|
}
|
|
|
|
}
|