forked from planex/defiance
258 lines
4.3 KiB
CSS
258 lines
4.3 KiB
CSS
/* Dark Mode */
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: #030319;
|
|
color: #C107F9;
|
|
}
|
|
a {
|
|
color: #C10759;
|
|
}
|
|
pre, code {
|
|
background-color: #3B3C43;
|
|
color: #E7DBDA;
|
|
}
|
|
.author-name {
|
|
background-color: #C10759;
|
|
color: #030319;
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
font-family: monospace;
|
|
}
|
|
.tag {
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
/* Light Mode */
|
|
@media (prefers-color-scheme: light) {
|
|
body {
|
|
background-color: #FAFA;
|
|
color: #030319;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
color: #C10000;
|
|
}
|
|
pre, code {
|
|
background-color: #3B3C43;
|
|
color: #E7DBDA;
|
|
}
|
|
.author-name {
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
font-family: monospace;
|
|
}
|
|
.tag {
|
|
border-radius: 4px;
|
|
padding: 5px 10px;
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
|
|
.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 */
|
|
body {
|
|
justify-content: center;
|
|
}
|
|
|
|
img {
|
|
height: auto;
|
|
}
|
|
|
|
header h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
h3 {
|
|
font-size: larger;
|
|
}
|
|
|
|
code {
|
|
border-radius: 5px;
|
|
padding: 1pt;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
clear: both;
|
|
}
|
|
|
|
#content {
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
|
|
/* For header.html */
|
|
#nav-list {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
position: fixed;
|
|
overflow: auto;
|
|
list-style-type: none;
|
|
}
|
|
|
|
.nav-button {
|
|
color: #FAFAFA;
|
|
padding: 0px;
|
|
text-decoration: none;
|
|
}
|
|
li:first-child {
|
|
padding: 0px;
|
|
}
|
|
|
|
#artlist li{
|
|
list-style-type: none;
|
|
}
|
|
|
|
/* For normal screens */
|
|
@media screen and (min-width: 769px) {
|
|
img {
|
|
max-width: 75%
|
|
}
|
|
footer {
|
|
padding-left: 25%;
|
|
}
|
|
#nav-list {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("/images/bgs/nav-bg.png");
|
|
background-size: 100% 100%;
|
|
width: 100%
|
|
}
|
|
.nav-li {
|
|
width: 100%;
|
|
float: left;
|
|
}
|
|
.nav-li-show-mobile {
|
|
display: flex;
|
|
}
|
|
.nav-button {
|
|
display: block;
|
|
}
|
|
#nav-toggle-mobile {
|
|
align-self: flex-end;
|
|
display: flex;
|
|
cursor: pointer;
|
|
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("/images/bgs/nav-bg.png");
|
|
}
|
|
}
|
|
|
|
/* For super wide screens */
|
|
@media screen and (min-width: 1700px) {
|
|
img {
|
|
max-width: 50%;
|
|
}
|
|
#nav-list {
|
|
width: 17%;
|
|
}
|
|
#content {
|
|
margin-left: 20%;
|
|
}
|
|
}
|
|
|
|
/* For mobile */
|
|
@media screen and (max-width: 768px) {
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
#content {
|
|
margin: 10%;
|
|
}
|
|
#nav-list {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("/images/bgs/nav-bg.png");
|
|
background-size: 100% 100%;
|
|
width: 100%
|
|
}
|
|
.nav-li {
|
|
width: 100%;
|
|
float: left;
|
|
}
|
|
.nav-li-show-mobile {
|
|
display: flex;
|
|
}
|
|
.nav-button {
|
|
display: block;
|
|
}
|
|
#nav-toggle-mobile {
|
|
align-self: flex-end;
|
|
display: flex;
|
|
cursor: pointer;
|
|
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("/images/bgs/nav-bg.png");
|
|
}
|
|
}
|
|
|
|
/* For author.html */
|
|
#avatar {
|
|
border-radius: 8px;
|
|
max-width: 200px;
|
|
height: auto;
|
|
}
|
|
|
|
/* For meta.html */
|
|
.meta {
|
|
text-align: center;
|
|
clear: both;
|
|
}
|
|
#meta-avatar {
|
|
border-radius: 8px;
|
|
max-width: 60px;
|
|
height: auto;
|
|
}
|
|
p {
|
|
font-size: 16pt;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
body {
|
|
font-size: 14pt;
|
|
}
|
|
|
|
nav {
|
|
font-size: 20pt;
|
|
}
|
|
|
|
/* For Content Warnings */
|
|
label {
|
|
display: none;
|
|
font-size: 22px;
|
|
}
|
|
|
|
nav-li {
|
|
display: inline;
|
|
}
|
|
|
|
.badge {
|
|
text-decoration: none;
|
|
}
|
|
|
|
#cw:checked + label {
|
|
display: block;
|
|
}
|