dragon_fire/www/static/dergstyle.css
David Bailey 0dcf36052e
Some checks reported warnings
/ phplint (push) Has been cancelled
... unsure
2024-08-24 13:09:28 +02:00

388 lines
5.8 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.fa-icn {
fill: var(--text_1);
padding-top: 0.1rem;
height: 1em;
vertical-align: -0.125em;
}
body {
--bg_1: #0e0a2a;
--bg_2: #2c2943;
--bg_3: #3f4148;
--highlight_0: #ee9015b1;
--highlight_1: #ee9015;
--highlight_2: #edd29e;
--text_1: #FFFFFF;
--text_border: #A0A0A080;
color: var(--text_1);
background: var(--bg_1);
margin: 0px;
position: relative;
min-height: 100vh;
padding-bottom: 4rem;
}
@media only screen and (max-width: 600px) {
.hsmol_hide {
display: none !important;
visibility: hidden !important;
}
}
:link {
color: var(--highlight_1);
font-style: italic;
text-decoration: none;
transition: color 0.2s;
}
a:visited {
color: var(--highlight_1);
}
a:hover {
color: var(--highlight_2);
}
#age_gate_block {
position: fixed;
top: 0;
left: 0;
z-index: 1040;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(20px);
transition: opacity 0.8s linear;
}
#age_gate_block div {
background-color: var(--bg_3);
border-radius: 1em;
padding: 1em;
width: 12em;
margin:0 auto;
display: table;
position: absolute;
left: 0;
right:0;
top: 50%;
-webkit-transform:translateY(-50%);
-moz-transform:translateY(-50%);
-ms-transform:translateY(-50%);
-o-transform:translateY(-50%);
transform:translateY(-50%);
}
#age_gate_block p {
min-height: 5em;
}
#main_header {
overflow: hidden;
position: relative;
padding-bottom: 0.7rem;
}
#main_banner_img {
position: absolute;
left: 0px;
right: 0px;
width: 100vw;
z-index: -1;
opacity: 0;
top: 0px;
}
#main_banner_img_link {
position: absolute;
right: 2vw;
bottom: 0.5rem;
font-size: 0.8rem;
}
#nav_bar {
display: flex;
flex-direction: row;
justify-content: center;
list-style-type: none;
margin-top: 1rem;
padding: 0px;
}
#nav_bar li {
padding: 0rem 0.3rem 0rem 0.3rem;
}
#big_title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 0.2rem;
}
#main_header h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 0.2rem;
}
#title_separator {
height: 1.5px;
background-color: #ddd;
opacity: 0.5;
margin-left: 2rem;
margin-right: 2rem;
}
:target {
scroll-margin-top: 6rem;
}
#main_content_wrapper {
--content-width: min(100vw, calc(20rem + 40vw));
--content-total-margin: calc(calc(100vw - var(--content-width)) / 2);
--content-padding: max(0.5rem, min(1rem, var(--content-total-margin)));
--content-margin: max(0px, calc(var(--content-total-margin) - 1rem));
padding: 0rem var(--content-padding) 1rem var(--content-padding);
width: auto;
margin-left: var(--content-margin);
margin-right: var(--content-margin);
margin-top: 0px;
min-height: 100%;
background: var(--bg_2);
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background-image: url('/static/three-dots.svg');
background-repeat: no-repeat;
background-position: center;
opacity: 0;
z-index: 10;
pointer-events: none;
transition: opacity 0.2s;
}
body.htmx-request::before {
opacity: 1;
transition-delay: 0.5s;
}
#post_file_bar {
position: sticky;
top: 0px;
background: var(--bg_2);
box-shadow: 0px 5px 5px 0px #00000040;
z-index: 5;
}
#post_file_titles {
display: flex;
flex-direction: row;
justify-content: left;
list-style-type: none;
padding: 0px;
}
#post_file_titles > li {
padding: 0.2rem 0.8rem;
font-style: bold;
font-size: 1.5rem;
background: var(--highlight_1);
}
#post_file_path {
width: 100%;
font-style: italic;
padding-left: 0.5rem;
background: var(--highlight_1);
font-size: 1.1rem;
display: flex;
flex-direction: row;
list-style-type: none;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
}
#post_file_path a {
color: var(--text_1);
padding-right: 0.2rem;
}
.navbar-expand {
background-color: var(--bg_3);
border: 0.15rem solid var(--highlight_1);
border-top: none;
border-radius: 0 0 0.2rem 0.2rem;
overflow: clip;
padding-bottom: 0.2rem;
padding-left: 0.3rem;
max-height: 80vh;
overflow-y: scroll;
}
.navbar-full-path {
width: 100%;
font-style: italic;
padding-left: 0.2rem;
display: flex;
flex-direction: row;
list-style-type: none;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
}
.navbar-full-path li {
margin-left: 0.3rem;
}
.navbar-folder-list span, .navbar-folder-list label {
width: 1rem;
display: inline-block;
cursor: pointer;
}
.navbar-folder-list ul, .navbar-folder-list {
list-style: none;
padding-left: 0.4rem;
margin-left: 0.4rem;
border-left: 1px solid var(--text_border);
}
.navbar-folder-list a:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.folder-listing input {
display: none;
}
.folder-listing input ~ ul {
display: none;
}
.folder-listing input:checked ~ ul {
display: block;
}
.folder-listing label > :nth-child(2) {
display: none;
}
.folder-listing input:checked ~ label > :nth-child(1) {
display: none;
}
.folder-listing input:checked ~ label > :nth-child(2) {
display: inline-block;
}
#navbar-expand-label {
cursor: pointer;
}
#navbar-expander, .navbar-expand {
display: none;
}
#navbar-expander:checked + .navbar-expand {
display: block;
}
article {
background: var(--bg_3);
border-radius: 0rem 0rem 0.8rem 0.8rem;
box-shadow: 3px 7px 7px 0px #00000040;
padding: 0.75rem;
}
article img {
display: block;
max-width: 100%;
max-height: 70vh;
margin: 1vmin;
margin-right: auto;
margin-left: auto;
}
#content_footer {
display: block;
max-width: 100%;
margin-top: 0.5em;
font-size: 0.8em;
border-top: solid 1px darkgrey;
opacity: 0.7;
}
#main_footer {
display: flex;
height: 2.5rem;
text-align: center;
background-color: #3a3a3a;
margin: 0px;
position: absolute;
bottom: 0px;
width: 100%;
}
#main_footer span {
align-self: flex-end;
width: 100%;
}