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

163 lines
2.4 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-18 11:38:25 +02:00
--main3: #7d7d7d;
2020-08-16 18:38:53 +02:00
--background: #ffffff;
2020-08-18 10:30:58 +02:00
--background2: #f7f7f7;
2020-08-18 11:46:38 +02:00
--background3: #d0d0d0;
2020-08-16 18:38:53 +02:00
}
2020-08-17 16:13:30 +02:00
html {
font-size: 110%;
max-width: calc(640px + 2em);
2020-08-18 11:37:59 +02:00
padding: 8px 0 3em;
margin: 0 auto;
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-18 11:37:59 +02:00
li {
line-height: 1.4;
}
2020-08-16 18:38:53 +02:00
body img {
2020-08-18 10:33:56 +02:00
max-width: 100%;
2020-08-14 22:07:20 +02:00
}
2020-08-16 18:38:53 +02:00
a {
color: var(--main);
2020-08-17 16:02:12 +02:00
text-decoration: none;
2020-08-18 11:37:59 +02:00
border-bottom: .3ex solid var(--accent);
2020-08-17 16:02:12 +02:00
}
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-18 10:30:58 +02:00
code {
white-space: pre-wrap;
}
.codehilite {
border-radius: .5ex;
background-color: var(--background2);
}
.codehilite pre {
padding: 1em;
}
2020-08-18 11:38:25 +02:00
footer {
border-top: 2px solid var(--background2);
margin-top: 2em;
font-size: 80%;
color: var(--main3)
}
2020-08-18 11:46:38 +02:00
2020-08-18 11:38:25 +02:00
footer a {
color: var(--main3);
2020-08-18 11:46:38 +02:00
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
padding: 1ex;
text-align: left;
}
tr {
border-bottom: 1px solid var(--background3);
}
tr:hover {
background-color: var(--background2);
2020-08-18 11:38:25 +02:00
}
2020-08-18 14:23:51 +02:00
.pill {
font-size: 60%;
background-color: var(--main2);
color: var(--background2);
padding: .5ex 1ex;
border-radius: 1ex;
vertical-align: 15%;
}
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-18 11:38:25 +02:00
--main3: #b1b1b1;
2020-08-16 20:33:58 +02:00
--background: #111111;
2020-08-18 10:30:58 +02:00
--background2: #282828;
2020-08-16 20:33:58 +02:00
}
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
}