210 lines
3.5 KiB
CSS
210 lines
3.5 KiB
CSS
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--selection: #36837db3;
|
|
--bg: #ffffff;
|
|
--line: #aebed0;
|
|
--date: #d2e0f0;
|
|
--point: #8c9daf;
|
|
--bg-hover: #cedce2;
|
|
--point-hover: #ff00ff;
|
|
--font-color: #18181b;
|
|
--title-color: #a14cb3;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--selection: #4bad9480;
|
|
--bg: #171e26;
|
|
--line: #374351;
|
|
--date: #242e38;
|
|
--point: #515f70;
|
|
--bg-hover: #1f2730;
|
|
--point-hover: #ff00ff;
|
|
--font-color: #a1a1aa;
|
|
--title-color: #a25add;
|
|
}
|
|
}
|
|
|
|
:root {
|
|
--font-size: 20px;
|
|
}
|
|
|
|
::selection {
|
|
color: rgb(255, 255, 255);
|
|
background: var(--selection);
|
|
}
|
|
|
|
html {
|
|
background-color: var(--bg);
|
|
font-family: "Segoe UI", Arial, sans-serif, "Segoe UI Emoji",
|
|
"Segoe UI Symbol";
|
|
}
|
|
|
|
/* Scrollbar - Firefox */
|
|
* {
|
|
scrollbar-color: var(--font-color) var(--bg);
|
|
}
|
|
|
|
/* Scrollbar - Chrome */
|
|
*::-webkit-scrollbar {
|
|
width: 7px;
|
|
height: 9px;
|
|
background: var(--bg);
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: var(--font-color);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Title of page */
|
|
h1 {
|
|
color: var(--font-color);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3cap;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
footer > *::before {
|
|
content: "> ";
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--title-color);
|
|
}
|
|
|
|
.timeline {
|
|
box-sizing: border-box;
|
|
color: var(--font-color);
|
|
padding: 30px 20px;
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Barre */
|
|
.timeline > ul {
|
|
list-style-type: none;
|
|
border-left: 2px solid var(--line);
|
|
padding: 0px 5px;
|
|
}
|
|
|
|
/* Card */
|
|
.timeline > ul > li {
|
|
padding: 20px 20px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* Dates */
|
|
.timeline > ul > li > span {
|
|
display: inline-block;
|
|
background-color: var(--date);
|
|
border-radius: 5px;
|
|
padding: 2px 5px;
|
|
font-size: calc(var(--font-size) / 1.4);
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* Titles */
|
|
.timeline > ul > li > .content > h2 {
|
|
color: var(--title-color);
|
|
font-size: var(--font-size);
|
|
padding-top: 5px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Descriptions */
|
|
.timeline > ul > li > .content > p {
|
|
padding-top: 5px;
|
|
font-size: calc(var(--font-size) - 2px);
|
|
max-width: 25em;
|
|
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Points côté */
|
|
.timeline > ul > li::before {
|
|
position: absolute;
|
|
content: "";
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: var(--point);
|
|
border-radius: 50%;
|
|
left: -11px;
|
|
top: 59px;
|
|
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);
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
#rss {
|
|
text-transform: lowercase;
|
|
color: var(--font-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
margin: 0;
|
|
height: 1px;
|
|
background: var(--line);
|
|
margin: 2rem auto;
|
|
width: 20%;
|
|
}
|
|
|
|
#rss:hover {
|
|
color: var(--title-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
@media only screen and (max-width: 300px) {
|
|
.timeline {
|
|
padding: 30px 5px 30px 10px;
|
|
}
|
|
|
|
.timeline > ul > li > .content > h2 > a {
|
|
color: var(--title-color);
|
|
font-size: calc(var(--font-size) - 2px);
|
|
}
|
|
}
|