mylloon.fr/static/css/blog/index.css
2023-10-16 11:12:13 +02:00

106 lines
2 KiB
CSS

@media (prefers-color-scheme: light) {
:root {
--line: #aebed0;
--date: #d2e0f0;
--point: #8c9daf;
--bg-hover: #cedce2;
--point-hover: #ff00ff;
--title-color: #a14cb3;
}
}
@media (prefers-color-scheme: dark) {
:root {
--line: #374351;
--date: #242e38;
--point: #515f70;
--bg-hover: #1f2730;
--point-hover: #ff00ff;
--title-color: #a25add;
}
}
/* Title */
h1 {
margin-bottom: 0;
}
/* RSS link */
#rss::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' width='20' viewBox='0 0 24 24' %3E%3Cpath d='M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20 5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1Z' %3E%3C/path%3E%3C/svg%3E");
padding-right: 2px;
vertical-align: middle;
}
@media (prefers-color-scheme: dark) {
#rss::before {
filter: invert(80%);
}
}
/* Card */
main li {
padding: 20px 20px;
position: relative;
cursor: pointer;
border-radius: 5px;
}
main li:hover {
background: var(--bg-hover);
}
/* Card dates */
main span {
background-color: var(--date);
border-radius: 5px;
padding: 2px 5px;
font-size: calc(var(--font-size) / 1.4);
font-family: monospace;
}
/* Card text */
li h2,
li p {
margin: 0px;
padding-top: 5px;
}
/* Card titles */
li h2 {
color: var(--title-color);
font-size: var(--font-size);
}
/* Card descriptions */
li p {
font-size: calc(var(--font-size) - 2px);
}
/* Timeline bar */
main ul {
list-style-type: none;
border-left: 2px solid var(--line);
padding: 0px 5px;
}
/* Timeline dot */
main li::before {
position: absolute;
content: "";
width: 10px;
height: 10px;
background-color: var(--point);
border-radius: 50%;
left: -11px;
top: 59px;
transition: 0.2s;
}
main li:hover::before {
background-color: var(--point-hover);
box-shadow: 0px 0px 10px 2px var(--point-hover);
}