This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/static/style.css

106 lines
1.7 KiB
CSS
Raw Normal View History

2020-08-16 18:38:53 +02:00
:root {
--accent: #226997;
--main: #111111;
2020-08-17 16:02:12 +02:00
--main2: #575757;
2020-08-16 18:38:53 +02:00
/*--main3: #7d7d7d;*/
--background: #ffffff;
/*--background2: #f7f7f7;*/
}
2020-08-17 16:13:30 +02:00
html {
font-size: 110%;
max-width: calc(640px + 2em);
2020-08-17 13:08:14 +02:00
margin: 8px auto 6em;
2020-08-17 16:13:30 +02:00
}
body {
margin: 0 1em;
2020-08-14 15:53:42 +02:00
font-family: Arial, sans-serif;
2020-08-16 18:38:53 +02:00
color: var(--main);
background-color: var(--background);
2020-08-16 19:51:42 +02:00
}
p {
line-height: 1.7;
2020-08-14 15:53:42 +02:00
}
2020-08-14 22:07:20 +02:00
2020-08-16 18:38:53 +02:00
body img {
2020-08-14 22:07:20 +02:00
max-width: 640px;
}
2020-08-16 18:38:53 +02:00
a {
color: var(--main);
2020-08-17 16:02:12 +02:00
text-decoration: none;
border-bottom: 2.5px solid var(--accent);
}
a:hover, a:focus {
text-decoration: none;
background-color: var(--accent);
color: var(--background);
}
2020-08-17 16:06:52 +02:00
.article-list h2 a {
2020-08-17 16:02:12 +02:00
border-color: transparent;
2020-08-16 18:38:53 +02:00
}
2020-08-17 10:45:30 +02:00
.pic-container {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
.pic-container .profile-pic {
max-width: 200px;
min-width: 100px;
max-height: 200px;
min-height: 100px;
border-radius: 10%;
padding: 1rem;
flex-shrink: 1;
flex-grow: 0;
}
2020-08-17 08:23:00 +02:00
2020-08-17 16:06:52 +02:00
.article-list + .article-list {
2020-08-17 16:02:12 +02:00
margin-top: 4em;
2020-08-16 18:38:53 +02:00
}
2020-08-17 16:06:52 +02:00
.article-list h2, .article-detail h1 {
2020-08-17 16:02:12 +02:00
margin-bottom: .2em;
2020-08-16 20:24:00 +02:00
}
2020-08-17 16:02:12 +02:00
.date {
margin-top: .2em;
color: var(--main2);
2020-08-16 20:24:00 +02:00
}
2020-08-16 20:33:58 +02:00
.pagination {
display: flex;
justify-content: space-between;
}
2020-08-16 18:38:53 +02:00
@media (prefers-color-scheme: dark) {
2020-08-16 20:33:58 +02:00
:root {
--accent: #226997;
--main: #eeeeee;
2020-08-17 16:02:12 +02:00
--main2: #cecece;
2020-08-16 20:33:58 +02:00
/*--main3: #b1b1b1;*/
--background: #111111;
/*--background2: #575656;*/
}
img {
opacity: .75;
2020-08-17 10:45:30 +02:00
transition: opacity .2s ease-in-out;
2020-08-16 20:33:58 +02:00
}
2020-08-16 18:38:53 +02:00
2020-08-16 20:33:58 +02:00
img:hover {
opacity: 1;
}
2020-08-16 18:38:53 +02:00
2020-08-16 20:33:58 +02:00
#manage ul ul li img {
opacity: 1;
filter: invert(1);
}
2020-08-16 18:38:53 +02:00
}