2023-04-24 18:01:38 +02:00
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
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 18:13:25 +02:00
|
|
|
--font-color: #000000;
|
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 {
|
|
|
|
--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 18:13:25 +02:00
|
|
|
--font-color: #ffffff;
|
2023-04-24 18:15:05 +02:00
|
|
|
--title-color: #a25add;
|
2023-04-24 18:01:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-24 18:03:36 +02:00
|
|
|
* {
|
2023-04-24 18:01:38 +02:00
|
|
|
/* padding: 0px; */
|
|
|
|
margin: 0px;
|
|
|
|
box-sizing: border-box;
|
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
|
|
|
/* perspective: 800px; */
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background-color: var(--bg);
|
|
|
|
/* width: 100%; */
|
|
|
|
/* min-height: 100vh; */
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
/* align-items: center; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline {
|
|
|
|
width: 800px;
|
|
|
|
color: var(--font-color);
|
|
|
|
padding: 30px 20px;
|
|
|
|
}
|
|
|
|
|
2023-04-24 18:03:36 +02:00
|
|
|
/* Barre */
|
2023-04-24 18:01:38 +02:00
|
|
|
.timeline ul {
|
|
|
|
list-style-type: none;
|
|
|
|
border-left: 2px solid var(--line);
|
|
|
|
padding: 10px 5px;
|
|
|
|
}
|
|
|
|
|
2023-04-24 18:03:36 +02:00
|
|
|
/* Card */
|
2023-04-24 18:01:38 +02:00
|
|
|
.timeline ul li {
|
|
|
|
padding: 20px 20px;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: 0.5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dates */
|
|
|
|
.timeline ul li span {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: var(--date);
|
|
|
|
border-radius: 25px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
font-size: 15px;
|
|
|
|
/* text-align: center; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Titles */
|
|
|
|
.timeline ul li .content h3 > a {
|
|
|
|
color: var(--title-color);
|
|
|
|
font-size: 17px;
|
|
|
|
padding-top: 5px;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Descriptions */
|
|
|
|
.timeline ul li .content p {
|
|
|
|
padding: 5px 0px 15px 0px;
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Points côté */
|
|
|
|
.timeline ul li:before {
|
|
|
|
position: absolute;
|
|
|
|
content: "";
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
background-color: var(--point);
|
|
|
|
border-radius: 50%;
|
|
|
|
left: -11px;
|
|
|
|
top: 28px;
|
|
|
|
transition: 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Card hover */
|
|
|
|
.timeline ul li:hover {
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Point côté hover */
|
|
|
|
.timeline ul li:hover:before {
|
|
|
|
background-color: var(--point-hover);
|
|
|
|
box-shadow: 0px 0px 10px 2px var(--point-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 300px) {
|
|
|
|
.timeline {
|
|
|
|
/* width: 100%; */
|
|
|
|
padding: 30px 5px 30px 10px;
|
|
|
|
}
|
|
|
|
.timeline ul li .content h3 > a {
|
|
|
|
color: var(--title-color);
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
}
|