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

:root {
--accent: #226997;
--main: #111111;
--main2: #575757;
/*--main3: #7d7d7d;*/
--background: #ffffff;
/*--background2: #f7f7f7;*/
}
html {
font-size: 110%;
max-width: calc(640px + 2em);
margin: 8px auto 6em;
}
body {
margin: 0 1em;
font-family: Arial, sans-serif;
color: var(--main);
background-color: var(--background);
}
p {
line-height: 1.7;
}
body img {
max-width: 640px;
}
a {
color: var(--main);
text-decoration: none;
border-bottom: 2.5px solid var(--accent);
}
a:hover, a:focus {
text-decoration: none;
background-color: var(--accent);
color: var(--background);
}
.article-list h2 a {
border-color: transparent;
}
.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;
}
.article-list + .article-list {
margin-top: 4em;
}
.article-list h2, .article-detail h1 {
margin-bottom: .2em;
}
.date {
margin-top: .2em;
color: var(--main2);
}
.pagination {
display: flex;
justify-content: space-between;
}
@media (prefers-color-scheme: dark) {
:root {
--accent: #226997;
--main: #eeeeee;
--main2: #cecece;
/*--main3: #b1b1b1;*/
--background: #111111;
/*--background2: #575656;*/
}
img {
opacity: .75;
transition: opacity .2s ease-in-out;
}
img:hover {
opacity: 1;
}
#manage ul ul li img {
opacity: 1;
filter: invert(1);
}
}