defiance-ng/static/css/style.css

214 lines
3.3 KiB
CSS
Raw Normal View History

/* Dark Mode */
@media (prefers-color-scheme: dark) {
body {
2022-08-24 16:46:32 -07:00
background-color: #1f2023;
2023-01-23 18:01:14 -08:00
color: #FAFAFA;
}
2022-07-31 17:08:31 -07:00
a {
text-decoration: none;
2022-09-06 13:37:55 -07:00
color: #FF535D;
2022-08-24 16:46:32 -07:00
}
2022-09-07 14:18:57 -07:00
pre, code {
2022-08-24 16:46:32 -07:00
background-color: #3B3C43;
color: #E7DBDA;
2022-07-31 17:08:31 -07:00
}
2022-09-07 14:18:57 -07:00
.author-name {
2023-01-23 18:01:14 -08:00
background-color: #ffffff;
color: #F14B25;
2022-09-07 14:18:57 -07:00
border-radius: 4px;
padding: 5px 10px;
2023-01-23 18:01:14 -08:00
font-family: monospace;
2022-09-07 14:18:57 -07:00
}
.tag {
border-radius: 4px;
padding: 5px 10px;
2023-01-23 18:01:14 -08:00
font-family: monospace;
2022-09-07 14:18:57 -07:00
}
}
/* Light Mode */
@media (prefers-color-scheme: light) {
body {
2023-01-23 18:01:14 -08:00
background-color: #FAFAFA;
}
2022-07-31 17:08:31 -07:00
a {
text-decoration: none;
color: #FF535D;
2022-08-24 16:46:32 -07:00
}
2022-09-07 14:18:57 -07:00
pre, code {
2022-08-24 16:46:32 -07:00
background-color: #A9A2A2;
color: #1f2023;
2022-07-31 17:08:31 -07:00
}
2022-09-07 14:18:57 -07:00
.author-name {
2023-01-23 18:01:14 -08:00
background-color: #000000;
2022-09-07 14:18:57 -07:00
border-radius: 4px;
padding: 5px 10px;
2023-01-23 18:01:14 -08:00
font-family: monospace;
2022-09-07 14:18:57 -07:00
}
.tag {
border-radius: 4px;
padding: 5px 10px;
2023-01-23 18:01:14 -08:00
font-family: monospace;
2022-09-07 14:18:57 -07:00
}
}
2022-09-14 16:44:58 -07:00
.iframecontainer {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
/* Universal */
2022-07-20 14:27:20 -07:00
body {
2022-07-20 14:57:54 -07:00
justify-content: center;
2022-07-20 14:27:20 -07:00
}
img {
width: 100%;
height: auto;
}
2022-07-20 14:57:54 -07:00
header h1 {
text-align: center;
}
2022-07-20 14:27:20 -07:00
2022-07-20 14:57:54 -07:00
code {
border-radius: 5px;
padding: 1pt;
2022-07-20 14:27:20 -07:00
}
2022-07-20 14:57:54 -07:00
footer {
text-align: center;
clear: both;
}
2022-07-20 14:27:20 -07:00
2022-08-15 16:55:54 +00:00
#content {
margin-left: 30%;
margin-right: 10%;
2022-08-15 16:55:54 +00:00
}
2022-07-20 14:57:54 -07:00
/* For header.html */
#nav {
background-color: #A51D2D;
}
#nav-list {
height: 100%;
margin: 0;
padding: 0;
position: fixed;
overflow: auto;
width: 25%;
list-style-type: none;
background-color: #A51D2D;
}
.nav-button {
color: #FAFAFA;
2023-02-06 13:58:42 -08:00
padding: 0px;
2022-07-20 14:57:54 -07:00
text-decoration: none;
2022-07-20 14:27:20 -07:00
}
li:first-child {
padding: 0px;
}
#artlist li{
list-style-type: none;
}
@media screen and (min-width: 769px) {
#nav-toggle-mobile {
display: none;
}
footer {
padding-left: 25%;
}
}
@media screen and (min-width: 1700px) {
#nav-list {
width: 17%;
}
#content {
margin-left: 20%;
}
}
2022-07-20 14:27:20 -07:00
@media screen and (max-width: 768px) {
#content {
margin: 10%;
}
#nav-list {
list-style-type: none;
padding: 0;
margin: 0;
position: relative;
display: flex;
flex-direction: column;
}
.nav-li {
2023-02-06 13:58:42 -08:00
width: 100%;
float: left;
display: none;
}
.nav-li-show-mobile {
display: flex;
}
.nav-button {
display: block;
}
#nav-toggle-mobile {
align-self: flex-end;
display: flex;
cursor: pointer;
}
2022-07-20 14:27:20 -07:00
}
2022-07-20 14:57:54 -07:00
/* For author.html */
#avatar {
border-radius: 8px;
max-width: 200px;
height: auto;
}
2022-07-20 14:27:20 -07:00
/* For meta.html */
.meta {
text-align: center;
clear: both;
2022-07-20 14:57:54 -07:00
}
#meta-avatar {
border-radius: 8px;
max-width: 60px;
height: auto;
2022-08-15 16:55:54 +00:00
}
p {
2022-08-24 16:46:32 -07:00
font-size: 16pt;
}
2022-08-24 16:46:32 -07:00
body {
2022-08-24 16:46:32 -07:00
font-size: 14pt;
}
2022-08-24 16:46:32 -07:00
nav {
2022-08-24 16:46:32 -07:00
font-size: 20pt;
}
2022-09-13 15:46:33 -07:00
/* For Content Warnings */
label {
2022-09-13 15:46:33 -07:00
display: none;
2023-01-23 18:01:14 -08:00
font-size: 22px;
}
2022-09-13 15:46:33 -07:00
#cw:checked + label {
2022-09-13 15:46:33 -07:00
display: block;
}