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

206 lines
3.4 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;
2023-04-24 23:00:27 +02:00
--bg-hover: #1f2730;
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-27 09:00:45 +02:00
/* Scrollbar - Firefox */
2023-04-27 09:00:22 +02:00
* {
scrollbar-color: var(--font-color) var(--bg);
}
2023-04-27 09:00:45 +02:00
/* Scrollbar - Chrome */
2023-04-27 09:00:22 +02:00
*::-webkit-scrollbar {
width: 7px;
height: 9px;
background: var(--bg);
}
*::-webkit-scrollbar-thumb {
background-color: var(--font-color);
border-radius: 10px;
}
2023-04-24 19:11:00 +02:00
/* Title of page */
h1 {
color: var(--font-color);
text-transform: uppercase;
letter-spacing: 0.3cap;
2023-04-26 17:42:17 +02:00
margin-bottom: 0;
2023-04-24 19:11:00 +02:00
}
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
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;
2023-04-24 23:00:27 +02:00
border-radius: 5px;
2023-04-24 18:01:38 +02:00
}
/* 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);
2023-04-25 13:57:14 +02:00
border-radius: 5px;
padding: 2px 5px;
font-size: calc(var(--font-size) / 1.4);
font-family: monospace;
2023-04-24 18:01:38 +02:00
}
/* Titles */
2023-04-25 03:16:47 +02:00
.timeline > ul > li > .content > h2 {
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-25 02:32:20 +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-25 02:32:20 +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);
}
2023-04-26 17:42:17 +02:00
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;
}
2023-04-24 18:01:38 +02:00
@media only screen and (max-width: 300px) {
.timeline {
padding: 30px 5px 30px 10px;
}
2023-04-25 13:48:01 +02:00
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
}
}