defiance-ng/static/css/style.css
2022-09-10 16:03:29 -07:00

195 lines
No EOL
3.4 KiB
CSS

/* Dark Mode */
@media (prefers-color-scheme: dark) {
body {
background-color: #1f2023;
color: #E7DBDA;
}
a {
text-decoration: none;
color: #FF535D;
}
pre, code {
background-color: #3B3C43;
color: #E7DBDA;
}
.author-name {
background-color: #B5ADAD;
border-radius: 4px;
padding: 5px 10px;
font-family: 'Liberation Mono', monospace;
}
.author-name:hover {
background-color: #CEC4C4;
}
.tag {
background-color: #34353B;
border-radius: 4px;
padding: 5px 10px;
font-family: 'Liberation Mono', monospace;
}
.tag:hover {
background-color: #2D2E33;
}
}
/* Light Mode */
@media (prefers-color-scheme: light) {
body {
background-color: #E7DBDA;
}
a {
text-decoration: none;
color: #FF535D;
}
pre, code {
background-color: #A9A2A2;
color: #1f2023;
}
.author-name {
background-color: #34353B;
border-radius: 4px;
padding: 5px 10px;
font-family: 'Liberation Mono', monospace;
}
.author-name:hover {
background-color: #2D2E33;
}
.tag {
background-color: #B5ADAD;
border-radius: 4px;
padding: 5px 10px;
font-family: 'Liberation Mono', monospace;
}
.tag:hover {
background-color: #CEC4C4;
}
}
/* Universal */
body {
justify-content: center;
}
img {
max-width: 100%;
max-height: 100%;
}
header h1 {
text-align: center;
}
code {
border-radius: 5px;
padding: 1pt;
}
footer {
text-align: center;
clear: both;
}
#content {
margin: 25px 50px 75px;
}
/* For header.html */
#nav {
background-color: #F14B25;
font-family: 'Remingtoned Type';
}
#nav-button {
color: #E7DBDA;
padding: 0px 25px;
text-decoration: none;
}
#nav-button:hover {
background-color: #DB691A;
}
/* For author.html */
#avatar {
border-radius: 8px;
max-width: 200px;
height: auto;
}
#pronouns {
color: #FF535D;
}
/* For meta.html */
.meta {
text-align: center;
clear: both;
}
#meta-avatar {
border-radius: 8px;
max-width: 60px;
height: auto;
}
/* Fonts */
/* Remingtoned Type - latin */
@font-face {
font-family: 'Remingtoned Type';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('fonts/remingtonedtype.ttf');
}
/* Liberation Sans - latin */
@font-face {
font-family: 'Liberation Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('fonts/LiberationSans-Regular.ttf');
}
/* Liberation Mono - latin */
@font-face {
font-family: 'Liberation Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('fonts/LiberationMono-Regular.ttf');
}
/* OpenDyslexic - latin */
@font-face {
font-family: 'OpenDyslexic';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local(''),
url('fonts/OpenDyslexic-Regular.otf') format('opentype');
}
h1, h2, h3 {
font-family: 'Remingtoned Type';
}
p, h4, h5, tr, td {
font-family: 'Liberation Sans';
}
p {
font-size: 16pt;
}
body {
font-size: 14pt;
}
nav {
font-size: 20pt;
}
pre, code {
font-family: 'Liberation Mono', monospace;
}