Embed resources into templates

This commit is contained in:
2019-12-23 23:56:57 +01:00
parent 269bf7eed1
commit 7b5723705c
87 changed files with 12669 additions and 7216 deletions

View File

@@ -1,506 +0,0 @@
/*
Created on : Jun 3, 2015, 9:33:11 AM
Author : Fornax
*/
:root {
--highlight_border: inset 0px 0px 5px 1px var(--highlight_color), 0px 0px 1px 0px var(--highlight_color);
}
/* Fonts */
@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 400;
font-display: fallback;
text-rendering: optimizeLegibility;
src:
local('Ubuntu'),
local('Ubuntu Regular'),
local('Ubuntu, Regular'),
local('Ubuntu-Regular'),
url(/res/misc/Ubuntu-R.ttf) format('truetype');
}
@font-face {
font-family: 'Lato Thin';
font-display: fallback;
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
src:
local('Lato Thin'),
local('Lato, Thin'),
local('Lato-Thin'),
local('Lato Hairline'),
local('Lato, Hairline'),
local('Lato-Hairline'),
url(/res/misc/LatoLatin-Thin.ttf) format('truetype');
}
@font-face {
font-family: 'Lato';
font-display: fallback;
font-style: normal;
font-weight: normal;
text-rendering: optimizeLegibility;
src:
local('Lato Regular'),
local('Lato, Regular'),
local('Lato-Regular'),
url(/res/misc/Lato-Regular.ttf) format('truetype');
}
/* Page rendering configuration */
html, body {
overflow-x: hidden;
}
body{
background-color: #0d0d0d; /* Fallback */
background-color: var(--body_color);
background-repeat: repeat;
font-family: 'Ubuntu';
margin: 0;
line-height: 1.5em;
color: #bfbfbf; /* Fallback */
color: var(--text_color);
padding: 0;
}
/* Page layout elements */
.page_wrapper {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.button_toggle_navigation {
position: fixed;
backface-visibility: hidden;
z-index: 300;
top: 0;
left: 0;
padding: 10px 20px 15px 10px;
font-size: 2em;
margin: 0;
background: var(--input_color);
border-radius: 0;
border-bottom-right-radius: 90%;
box-shadow: 2px 2px 8px -3px var(--shadow_color);
}
.page_navigation {
position: fixed;
backface-visibility: hidden;
z-index: 100;
width: 250px;
height: 100%;
left: 0;
float: left;
background-color: var(--layer_1_color);
padding: 20px 0 0.5em 0;
box-sizing: border-box;
overflow-y: auto;
overflow-x: hidden;
text-align: left;
box-shadow: inset -10px 0px 10px -10px var(--shadow_color);
transition: left 0.5s;
}
.page_body {
position: absolute;
z-index: 200;
right: 0;
height: auto;
left: 250px;
min-width: 300px;
display: inline-block;
text-align: center; /* Center the header and body */
overflow-y: auto;
overflow-x: hidden;
z-index: 50;
transition: left 0.5s;
padding: 50px 0 50px 0;
}
@media (max-width: 600px) {
.page_navigation {
left: -250px;
}
.page_body {
left: 0;
width: 100%;
}
}
.page_body > .page_content {
position: relative;
display: inline-block;
width: 100%;
height: auto;
padding: 20px 0 20px 0;
background-color: var(--layer_2_color);
box-shadow: 1px 1px 20px 0 var(--shadow_color);
box-sizing: border-box;
clear: both;
}
.page_body > .page_content > .limit_width {
position: relative;
display: inline-block;
max-width: 1000px;
width: 100%;
height: auto;
padding: 0;
box-sizing: border-box;
text-align: left;
word-break: break-word;
clear: both;
}
.page_body > h1 {
text-shadow: 1px 1px 25px #000000;
}
/* Page contents */
.header_image{
width: 100%;
max-width: 1200px;
margin-top: 30px;
margin-bottom: 30px;
}
.page_navigation a {
float: none;
display: block;
box-sizing: border-box;
color: #bfbfbf; /* Fallback */
color: var(--text_color);
text-align: center;
padding: 4px 6px;
margin: 0.3em 15px 0.3em 15px;
font-family: "Lato Thin", sans-serif;
font-weight: bold;
font-size: 1.5em;
overflow: hidden;
text-overflow: ellipsis;
transition: background-color 0.5s;
border-radius: 5px;
}
.page_navigation a:hover {
background-color: var(--input_color);
color: var(--input_text_color);
text-decoration: none;
}
.inset {
box-shadow: inset 1px 1px 20px 0 var(--shadow_color);
}
.checkers {
text-shadow: 0 0 20px #000000;
padding: 30px 10px 30px 10px;
}
.highlight_dark,
.highlight_middle,
.highlight_light,
.highlight_headerbar,
.highlight_green,
.highlight_blue,
.highlight_red,
.highlight_1,
.highlight_2,
.highlight_3,
.highlight_4 {
position: relative;
width: auto;
height: auto;
box-sizing: border-box;
overflow: hidden;
text-align: center;
padding: .5em;
}
.highlight_dark, .highlight_1 {
background-color: var(--layer_1_color);
box-shadow: 1px 1px var(--layer_1_shadow) 0 var(--shadow_color);}
.highlight_middle, .highlight_2 {
background-color: var(--layer_2_color);
box-shadow: 1px 1px var(--layer_2_shadow) 0 var(--shadow_color);}
.highlight_light, .highlight_3 {
background-color: var(--layer_3_color);
box-shadow: 1px 1px var(--layer_3_shadow) 0 var(--shadow_color);}
.highlight_headerbar, .highlight_4 {
background-color: var(--layer_4_color);
box-shadow: 1px 1px var(--layer_4_shadow) 0 var(--shadow_color);}
.highlight_green {
background-color: rgba(0, 255, 0, 0.05);
border-color: #00d000;}
.highlight_blue {
background-color: rgba(32, 32, 255, 0.2);
border-color: rgb(54, 54, 255);}
.highlight_red {
background-color: rgba(255, 0, 0, 0.1);
border-color: #B00000;}
.highlight_green,
.highlight_blue,
.highlight_red {
border-top-width: 1px;
border-top-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
}
/* Common elements */
h1, h2, h3, h4, h5, h6 {
line-height: 1em;
margin-left: 10px;
margin-right: 10px;
}
h1{font-size: 2em; font-family: "Lato Thin";}
h2{font-size: 1.75em; font-family: "Lato Thin";}
h3{font-size: 1.5em; font-family: "Lato Thin";}
h4{font-size: 1.25em; font-family: "Lato";}
h5{font-size: 1em; font-family: "Lato";}
h6{font-size: .75em; font-family: "Lato";}
h3, h2{border-bottom: 1px var(--layer_3_color_border) solid;} /* Differentiate it a bit, else it just looks like bold text */
p, .indent {
margin: 10px;
}
hr{
height: 1px;
border: none;
background-color: var(--input_color);
margin: 16px 16px 16px 16px;
}
::-webkit-scrollbar{
width: 1em; /* for vertical scrollbars */
height: 1em; /* for horizontal scrollbars */
}
::-webkit-scrollbar-track {
background: var(--scrollbar_background_color);
}
::-webkit-scrollbar-thumb {
background-color: var(--scrollbar_foreground_color);
border-radius: 0.5em;
border: 0.22em solid var(--scrollbar_background_color);
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar_hover_color);
}
::-webkit-scrollbar-corner{background: var(--scrollbar_background_color);}
a {color: var(--highlight_color); text-decoration: none;}
a:hover {color: var(--highlight_color); text-decoration: underline;}
.form{
margin-left: auto;
margin-right: auto;
text-align: left;
max-width: 40em;
}
table:not(.form) {border-collapse: collapse; width: 100%;}
tr:not(.form) {border-bottom: 1px var(--layer_2_color_border) solid;}
tr > td {padding: 0.5em;}
@media(max-width: 30em) {
tr > td {
box-sizing: border-box;
float: left;
width: 100%;
padding: 0.5em;
}
}
pre{
padding: 2px;
border-bottom: 1px var(--layer_2_color_border) solid;
overflow-x: scroll;
}
.big_button{
width: 40%;
min-width: 200px;
max-width: 400px;
margin: 10px !important;
border-radius: 5px;
font-size: 1.8em;
font-weight: normal;
}
.progress_bar{
position: relative;
width: 100%;
height: 0;
background-color: #555;
overflow: hidden;
color: #eeeeee;
text-align: left;
white-space: nowrap;
}
.progressbar_inner{
position: absolute;
top: 0;
width: 0%;
left: 0;
height: 100%;
background-color: var(--highlight_color);;
overflow: hidden;
color: #000;
white-space: nowrap;
}
.progress_text{
overflow: hidden;
width: 100%;
white-space: nowrap;
}
.file_button{
position: relative;
box-sizing: border-box;
width: 300px;
max-width: 90%;
height: 3.6em;
margin: 10px;
padding: 0;
overflow: hidden;
border-radius: 2px;
box-shadow: 2px 2px 8px -3px var(--shadow_color);
background-color: var(--file_background_color);
color: #bfbfbf; /* Fallback */
color: var(--text_color);
word-break: break-all;
text-align: left;
line-height: 1.2em;
display: inline-block;
transition: box-shadow 0.3s, opacity 2s;
white-space: normal;
text-overflow: ellipsis;
vertical-align: top;
}
.file_button:hover,
.file_button_selected {
box-shadow: 0px 0px 3px 3px var(--highlight_color);
text-decoration: none;
color: #bfbfbf; /* Fallback */
color: var(--text_color);
}
.file_button > img{
max-height: 100%;
max-width: 25%;
margin-right: 5px;
float: left;
display: block;
}
/* Form fields */
.form_input {width: 100%;}
/* BUTTONS */
button,
.button,
input[type="submit"],
input[type="button"],
input[type="color"],
select{
display: inline-block;
box-sizing: border-box;
border-radius: 2px;
border: none;
margin: 3px;
background: linear-gradient(var(--input_color), var(--input_color_dark));
padding: .4em .5em .4em .5em;
box-shadow: 2px 2px 6px -3px var(--shadow_color);
font-size: 0.9em;
line-height: 1em;
overflow: hidden;
text-decoration: none;
font-family: inherit;
color: #bfbfbf; /* Fallback */
color: var(--input_text_color);
outline: 0;
vertical-align: middle;
cursor: pointer;
transition: padding 0.25s, box-shadow 0.25s;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="color"]:hover,
select:hover,
button:focus,
.button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="color"]:focus,
select:focus{
color: #bfbfbf; /* Fallback */
color: var(--input_text_color);
text-decoration: none;
box-shadow: var(--highlight_border), 2px 2px 6px -3px var(--shadow_color);
}
button:active,
.button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="color"]:active,
select:active{
background: linear-gradient(var(--input_color_dark), var(--input_color));
box-shadow: inset 4px 4px 8px var(--shadow_color);
padding: .6em .3em .2em .7em; /* Exactly .2em offset compared to the inactive padding to give a depth effect */
}
.button_full_width {width: calc(100% - 6px);}
.button_highlight {background: linear-gradient(var(--highlight_color), var(--highlight_color_dark)) !important; color: var(--highlight_text_color) !important;}
.button_highlight:active{background: linear-gradient(var(--highlight_color_dark), var(--highlight_color)) !important; color: var(--highlight_text_color) !important;}
.button_red {background: linear-gradient(var(--danger_color), var(--danger_color_dark)) !important; color: var(--highlight_text_color) !important;}
.button_red:active {background: linear-gradient(var(--danger_color_dark), var(--danger_color)) !important; color: var(--highlight_text_color) !important;}
/* Dropdown list of the select tag */
option{
background-color: var(--input_color_dark);
color: #bfbfbf; /* Fallback */
color: var(--text_color);
}
/* TEXT FIELDS */
textarea,
.groove,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"]{
border: none;
box-sizing: border-box;
border-radius: 4px;
background: linear-gradient(var(--input_color_dark), var(--input_color));
box-shadow: inset 2px 2px 6px -3px var(--shadow_color);
padding: 3px 5px;
color: var(--input_text_color);
height: 26px;
font-family: 'Ubuntu', sans-serif;
font-size: 1em;
vertical-align: middle;
outline: 0;
transition: box-shadow 0.3s;
}
textarea:active,
input[type="text"]:active,
input[type="password"]:active,
input[type="email"]:active,
input[type="number"]:active,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus{
box-shadow: var(--highlight_border), inset 3px 3px 6px -3px var(--shadow_color);
}
input[type=file]{
visibility: hidden;
position: static;
width: 0;
height: 0;
}

View File

@@ -1,87 +0,0 @@
/*
Created on : Jul 30, 2015, 12:46:39 PM
Author : Fornax
*/
.file-container{
position: absolute;
top: 100px;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
overflow: hidden;
border: none;
}
.file-container-frame{
position: absolute;
width: 100%;
height: 100%;
border: none;
}
#listNavigator{
position: absolute;
left: 0;
right: 0;
top: -100px;
height: 58px;
background-color: #000;
border-bottom: 2px ridge #9FCF6C;
text-align: center;
overflow-x: hidden;
overflow-y: hidden;
z-index: 1000;
}
#listNavigatorItems{
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
white-space: nowrap;
overflow-x: scroll;
overflow-y: hidden;
border: none;
padding: 0 40px;
z-index: 1001;
}
.listItem{
display: inline-block;
position: relative;
height: 92%;
width: 100px;
margin-right: 5px;
text-align: center;
border: #333 solid 2px;
font-size: 12px;
overflow: hidden;
cursor: pointer;
}
.listItemThumbnail{
position: relative;
max-width: 100%;
max-height: 74%;
margin: 0;
}
#arrow-left{
position: fixed;
height: 58px;
width: 25px;
left: 0;
z-index: 1002;
}
#arrow-right{
position: fixed;
height: 58px;
width: 25px;
right: 0;
z-index: 1002;
}

View File

@@ -1,353 +0,0 @@
/*
Created on : May 22, 2015, 1:20:02 PM
Author : Fornax
*/
/* Viewer container */
.file_viewer {
position: absolute;
display: flex;
flex-direction: column;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
/* Headerbar (row 1) */
.file_viewer > .file_viewer_headerbar {
flex-grow: 0;
flex-shrink: 0;
display: flex;
flex-direction: row;
text-align: left;
padding: 8px;
z-index: 10;
}
/* Headerbar components */
.file_viewer > .file_viewer_headerbar > * {
flex-grow: 0;
flex-shrink: 0;
margin-left: .4em;
margin-right: .4em;
display: inline-flex;
}
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title {
flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
line-height: 2em;
text-overflow: ellipsis;
}
.file_viewer > .file_viewer_headerbar > .button_home::after {
content: "pixeldrain";
}
@media (max-width: 500px) {
.file_viewer > .file_viewer_headerbar > .button_home::after {
content: "pd";
}
.file_viewer > .file_viewer_headerbar > .list_navigator_buttons {
display: none;
}
}
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title > span {
flex-grow: 0;
flex-shrink: 0;
margin-right: 1em;
}
/* List Navigator (row 2) */
.file_viewer > .list_navigator {
flex-grow: 0;
flex-shrink: 0;
position: relative;
display: none; /* Becomes visible if the page is a list */
width: 100%;
background-color: var(--layer_1_color);
box-shadow: 0 0 8px var(--shadow_color);
text-align: center;
line-height: 1em;
overflow-x: scroll;
overflow-y: hidden;
z-index: 50;
white-space: nowrap;
}
.file_viewer > .list_navigator > .list_item{
height: 2.6em !important;
width: 220px !important;
}
/* File preview area (row 3) */
.file_viewer > .file_viewer_window {
flex-grow: 1;
flex-shrink: 1;
position: relative;
display: inline-block;
width: auto;
height: auto;
margin: 0;
z-index: 9;
}
.file_viewer > .file_viewer_window > .file_viewer_file_preview {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: inline-block;
min-height: 100px;
min-width: 100px;
text-align: center;
vertical-align: middle;
transition: left 0.5s;
overflow: hidden;
}
/* Toolbars */
.file_viewer > .file_viewer_window > .file_viewer_toolbar {
position: absolute;
width: 8em;
z-index: 49;
overflow: hidden;
float: left;
background-color: var(--layer_1_color);
left: -9em;
bottom: 0;
top: 0;
padding: 0;
text-align: left;
box-shadow: 1px 1px var(--layer_1_shadow) 0 var(--shadow_color);
transition: left 0.5s;
}
.file_viewer > .file_viewer_window > .file_viewer_sharebar{
position: absolute;
width: 7em;
left: -8em;
bottom: 0;
top: 0;
overflow-y: scroll;
overflow-x: hidden;
float: left;
background-color: var(--layer_1_color);
box-shadow: 2px 2px 8px var(--shadow_color);
text-align: center;
z-index: 48;
overflow: hidden;
transition: left 0.5s;
}
/* =====================
== FILE CONTAINERS ==
=====================*/
.image-container{
position: relative;
height: 100%;
width: 100%;
text-align: center;
overflow: hidden;
}
.image{
position: relative;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
}
.text-container{
background: #333 none;
position: relative;
text-align: left;
height: 100%;
width: 100%;
padding: 5px 5px 5px 20px;
box-sizing: border-box;
overflow-y: scroll;
overflow-x: hidden;
}
.text-container > pre {
white-space: pre-wrap;
word-wrap: break-word;
overflow: hidden;
}
.pannable{
position: relative;
display: inline-block;
margin: auto;
max-width: 100%;
max-height: 100%;
cursor: move;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
.center{
position: relative;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
.drop-shadow{
box-shadow: var(--shadow_color) 10px 10px 50px;
}
/* ========================
|| TOOLBAR COMPONENTS ||
======================== */
/* Workaround to hide the scrollbar in non webkit browsers, it's really ugly' */
.file_viewer_toolbar > div {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: -30px;
overflow-y: scroll;
overflow-x: hidden;
}
.file_viewer_toolbar > div > div {
position: absolute;
left: 0;
top: 0;
width: 8em;
height: auto;
}
.toolbar_button{
text-align: left;
}
.toolbar_button > img {
width: 24px;
height: 24px;
}
.toolbar_button > span {
vertical-align: 6px;
}
.toolbar_label {
text-align: left;
padding-left: 10px;
font-size: 0.8em;
line-height: 0.7em;
margin-top: 0.5em;
}
/* =========================
|| SHAREBAR COMPONENTS ||
========================= */
.sharebar-button {text-align: center;}
/* =====================
|| MISC COMPONENTS ||
===================== */
.popup {
position: absolute;
visibility: hidden;
display: flex;
flex-direction: column;
opacity: 0;
transition: visibility .5s, opacity .5s;
background-color: var(--layer_2_color);
border-color: var(--layer_2_color_border);
max-height: 100%;
max-width: 100%;
top: 20%;
left: 50%;
transform: translate(-50%, -20%);
padding: 0;
box-sizing: border-box;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
}
.popup > .highlight_light {
font-size: 1.2em;
}
.popup > .content_area {
flex: 1;
overflow-y: scroll;
padding: 10px;
}
.details_popup{
width: 1500px;
height: 800px;
z-index: 200;
}
.captcha_popup{
height: auto;
width: 450px;
z-index: 201;
}
#captcha_popup_captcha > div {
display: inline-block;
}
table {width: auto !important;}
table > tbody > tr {border: none !important;}
.corner-popup{
position: fixed;
background-color: var(--background_color);
right: 20px;
bottom: 20px;
width: fit-content;
height: fit-content;
overflow: hidden;
padding: 5px;
box-shadow: var(--shadow_color) 0px 0px 50px;
z-index: 200;
}
.bytecounter{
color: var(--text_color);
font-size: 16px;
font-family: 'Ubuntu', sans-serif;
line-height: 20px;
text-align: right;
display: inline-block;
background-image: url("/res/img/bytecounter.png");
background-position: top right;
width: 136px;
height: 36px;
padding: 0;
padding-right: 1px;
}
/* ====================
|| LIST NAVIGATOR ||
==================== */
.file-container{
position: absolute;
top: 100px;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
overflow: hidden;
border: none;
}
.file-container-frame{
position: absolute;
width: 100%;
height: 100%;
border: none;
}

View File

@@ -1,128 +0,0 @@
/*
Created on : May 22, 2015, 1:20:02 PM
Author : Fornax
*/
body{
background-color: #111;
background-image: url("img/checker.png");
background-repeat: repeat;
color: #eeeeee;
font-size: 16px;
font-family: 'Ubuntu', sans-serif;
margin: 0;
overflow: hidden;
}
a{
color: #9FCF6C;
text-decoration: none;
}
a:hover{
text-decoration: underline;
color: #9FCF6C;
}
::-webkit-scrollbar{
width: 10px; /* for vertical scrollbars */
height: 10px; /* for horizontal scrollbars */
}
::-webkit-scrollbar-track{
background: #000;
}
::-webkit-scrollbar-thumb{
background-color: #444;
}
::-webkit-scrollbar-corner{
background: transparent;
}
button:active{
background-color: #111;
}
button:hover{
background-color: #333;
}
#filepreview{
position: absolute;
display: inline-block;
top: 0;
left: 0;
right: 0;
bottom: 0;
min-height: 100px;
min-width: 100px;
text-align: center;
vertical-align: middle;
}
/* ===========================
== START FILE CONTAINERS ==
===========================*/
.image-container{
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
height: 100%;
width: 100%;
text-align: center;
overflow: hidden;
}
.image{
position: relative;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
}
.text-container{
background: #333 none;
position: absolute;
overflow-y: scroll;
overflow-x: auto;
text-align: left;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 5px 5px 5px 20px;
box-sizing: border-box;
}
.pre-container{
white-space: pre-wrap;
word-wrap: break-word;
}
.pannable{
position: relative;
display: inline-block;
margin: auto;
max-width: 100%;
max-height: 100%;
cursor: move;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
.center{
position: relative;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
.drop-shadow{
box-shadow: #000 10px 10px 50px;
}