mylloon.fr/static/css/blog/index.css

161 lines
2.8 KiB
CSS
Raw Normal View History

2023-04-24 18:01:38 +02:00
@media (prefers-color-scheme: light) {
:root {
2023-04-24 19:18:15 +02:00
--selection: #36837db3;
2023-04-24 18:13:25 +02:00
--bg: #ffffff;
--line: #aebed0;
--date: #d2e0f0;
--point: #8c9daf;
--bg-hover: #cedce2;
2023-04-24 18:15:05 +02:00
--point-hover: #ff00ff;
2023-04-24 19:13:54 +02:00
--font-color: #18181b;
2023-04-24 18:15:05 +02:00
--title-color: #a14cb3;
2023-04-24 18:01:38 +02:00
}
}
@media (prefers-color-scheme: dark) {
:root {
2023-04-24 19:18:15 +02:00
--selection: #4bad9480;
2023-04-24 18:01:38 +02:00
--bg: #171e26;
--line: #374351;
--date: #242e38;
--point: #515f70;
--bg-hover: #071f2a;
2023-04-24 18:15:05 +02:00
--point-hover: #ff00ff;
2023-04-24 19:11:00 +02:00
--font-color: #a1a1aa;
2023-04-24 18:15:05 +02:00
--title-color: #a25add;
2023-04-24 18:01:38 +02:00
}
}
2023-04-24 19:18:15 +02:00
:root {
--font-size: 20px;
}
::selection {
color: rgb(255, 255, 255);
background: var(--selection);
}
2023-04-24 19:11:00 +02:00
html {
background-color: var(--bg);
2023-04-24 18:09:14 +02:00
font-family: "Segoe UI", Arial, sans-serif, "Segoe UI Emoji",
"Segoe UI Symbol";
2023-04-24 18:01:38 +02:00
}
2023-04-24 19:11:00 +02:00
/* Title of page */
h1 {
color: var(--font-color);
text-transform: uppercase;
letter-spacing: 0.3cap;
}
h2,
p {
margin: 0px;
}
h1,
footer {
text-align: center;
font-size: calc(var(--font-size) * 2);
}
footer > * {
color: var(--font-color);
font-weight: bold;
text-decoration: none;
font-size: calc(var(--font-size) / 1.5);
text-transform: uppercase;
opacity: 0.7;
letter-spacing: 0.15rem;
}
2023-04-24 20:53:10 +02:00
2023-04-24 19:11:00 +02:00
footer > *::before {
content: "> ";
}
a:hover {
color: var(--title-color);
2023-04-24 18:01:38 +02:00
}
.timeline {
2023-04-24 19:11:00 +02:00
box-sizing: border-box;
2023-04-24 18:01:38 +02:00
width: 800px;
color: var(--font-color);
padding: 30px 20px;
2023-04-24 19:11:00 +02:00
display: flex;
width: 100%;
justify-content: center;
2023-04-24 18:01:38 +02:00
}
2023-04-24 18:03:36 +02:00
/* Barre */
2023-04-24 20:53:10 +02:00
.timeline > ul {
2023-04-24 18:01:38 +02:00
list-style-type: none;
border-left: 2px solid var(--line);
2023-04-24 19:11:00 +02:00
padding: 0px 5px;
2023-04-24 18:01:38 +02:00
}
2023-04-24 18:03:36 +02:00
/* Card */
2023-04-24 20:53:10 +02:00
.timeline > ul > li {
2023-04-24 18:01:38 +02:00
padding: 20px 20px;
position: relative;
cursor: pointer;
transition: 0.5s;
}
/* Dates */
2023-04-24 20:53:10 +02:00
.timeline > ul > li > span {
2023-04-24 18:01:38 +02:00
display: inline-block;
background-color: var(--date);
border-radius: 25px;
2023-04-24 19:11:00 +02:00
padding: 2px 8px;
font-size: calc(var(--font-size) - 2px);
2023-04-24 18:01:38 +02:00
}
/* Titles */
2023-04-24 20:53:10 +02:00
.timeline > ul > li > .content > h2 > a {
2023-04-24 18:01:38 +02:00
color: var(--title-color);
2023-04-24 19:11:00 +02:00
font-size: var(--font-size);
2023-04-24 18:01:38 +02:00
padding-top: 5px;
text-decoration: none;
}
/* Descriptions */
2023-04-24 20:53:10 +02:00
.timeline > ul > li > .content > p {
2023-04-24 18:01:38 +02:00
padding: 5px 0px 15px 0px;
2023-04-24 19:11:00 +02:00
font-size: calc(var(--font-size) - 2px);
2023-04-24 18:01:38 +02:00
}
/* Points côté */
2023-04-24 20:53:10 +02:00
.timeline > ul > li:before {
2023-04-24 18:01:38 +02:00
position: absolute;
content: "";
width: 10px;
height: 10px;
background-color: var(--point);
border-radius: 50%;
left: -11px;
2023-04-24 19:11:00 +02:00
top: 59px;
2023-04-24 18:01:38 +02:00
transition: 0.2s;
}
/* Card hover */
2023-04-24 20:53:10 +02:00
.timeline > ul > li:hover {
2023-04-24 18:01:38 +02:00
background-color: var(--bg-hover);
}
/* Point côté hover */
2023-04-24 20:53:10 +02:00
.timeline > ul > li:hover:before {
2023-04-24 18:01:38 +02:00
background-color: var(--point-hover);
box-shadow: 0px 0px 10px 2px var(--point-hover);
}
@media only screen and (max-width: 300px) {
.timeline {
padding: 30px 5px 30px 10px;
}
2023-04-24 20:53:10 +02:00
.timeline > ul > li > .content > h2 > a {
2023-04-24 18:01:38 +02:00
color: var(--title-color);
2023-04-24 19:11:00 +02:00
font-size: calc(var(--font-size) - 2px);
2023-04-24 18:01:38 +02:00
}
}