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

283 lines
4.5 KiB
CSS
Raw Normal View History

2020-08-16 18:38:53 +02:00
:root {
--accent: #226997;
2020-11-11 12:00:56 +01:00
--accent-light: #7c96a9;
2020-08-16 18:38:53 +02:00
--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-18 20:44:51 +02:00
--success-background: #d4edda;
--success-text: #155724;
--error-background: #f8d7da;
--error-text: #721c24;
--warning-background: #fff3cd;
--warning-text: #856404;
--description-margin: .2rem;
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
}
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
}
.article-list h2, h1 {
margin-bottom: var(--description-margin);
2020-08-16 20:24:00 +02:00
}
2020-08-18 18:49:41 +02:00
.article-detail h1 {
font-size: 2em;
}
.metadata {
margin-top: var(--description-margin);
2020-08-17 16:02:12 +02:00
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-11-10 16:35:57 +01:00
section.comments {
border-top: 2px dashed var(--background3);
margin-top: 2em;
}
2020-08-18 11:38:25 +02:00
footer {
border-top: 2px solid var(--background2);
margin-top: 2em;
font-size: 80%;
2020-08-18 19:12:47 +02:00
color: var(--main3);
2020-08-18 11:38:25 +02:00
}
2020-08-18 11:46:38 +02:00
2020-08-18 11:38:25 +02:00
footer a {
color: var(--main3);
2020-11-11 12:00:56 +01:00
border-bottom-color: var(--accent-light);
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-20 09:33:34 +02:00
/* FORMS */
2020-08-18 20:44:51 +02:00
.helptext {
color: var(--main3);
2020-08-18 19:12:47 +02:00
font-size: 80%;
2020-08-18 20:44:51 +02:00
}
.helptext a {
2020-08-18 19:12:47 +02:00
color: var(--main3);
}
2020-08-20 09:47:49 +02:00
p.helptext {
margin-bottom: 0;
}
2020-08-18 19:12:47 +02:00
form table th {
vertical-align: top;
}
2020-08-20 09:33:34 +02:00
form table tr th {
2020-08-18 19:12:47 +02:00
font-weight: normal;
}
2020-08-20 09:33:34 +02:00
form tr.required th {
font-weight: bold;
}
2020-08-18 19:12:47 +02:00
form table tr {
border-bottom: none;
}
form {
background-color: var(--background2);
border-radius: .5ex;
padding: 1em;
}
form button[type=submit] {
font-size: 1em;
padding: .9ex 1.2ex;
border-radius: .8ex;
background-color: var(--accent);
border: none;
color: var(--background);
cursor: pointer;
2020-08-20 09:47:49 +02:00
margin-top: 1em;
2020-08-18 19:12:47 +02:00
}
2020-08-20 09:33:34 +02:00
form .error, form .error .helptext, .errorlist {
2020-08-18 20:44:51 +02:00
color: var(--error-text);
background-color: var(--error-background);
2020-08-18 19:44:13 +02:00
}
.errorlist {
margin-top: 0;
list-style-type: none;
padding-left: 0;
}
.errorlist.nonfield {
margin-bottom: 0;
2020-08-18 19:44:13 +02:00
}
2020-08-20 09:47:49 +02:00
tr.spacer {
padding: 1em;
}
2020-08-20 09:33:34 +02:00
textarea, input {
width: 100%;
}
/* MESSAGES */
2020-08-18 20:44:51 +02:00
.messages p {
background-color: var(--background2);
padding: .5ex 1ex;
}
.messages .error {
background-color: var(--error-background);
color: var(--error-text);
}
.messages .success {
background-color: var(--success-background);
color: var(--success-text);
}
.messages .warning {
background-color: var(--warning-background);
color: var(--warning-text);
}
2020-08-20 09:33:34 +02:00
/* LINKS */
2020-08-18 20:44:51 +02:00
a:hover, a:focus {
text-decoration: none;
background-color: var(--accent);
color: var(--background);
}
2020-11-11 12:00:56 +01:00
footer a:hover, footer a:focus {
background-color: var(--accent-light);
}
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-18 20:44:51 +02:00
--success-background: #155724;
--success-text: #d4edda;
--error-background: #721c24;
--error-text: #f8d7da;
--warning-background: #856404;
--warning-text: #fff3cd;
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
}