442 lines
10 KiB
CSS
442 lines
10 KiB
CSS
/*
|
|
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{height: 100%;}
|
|
|
|
body{
|
|
background-color: #0d0d0d; /* Fallback */
|
|
background-color: var(--background_color);
|
|
background-repeat: repeat;
|
|
font-family: 'Ubuntu';
|
|
margin: 0;
|
|
text-align: center; /* Center the header and body */
|
|
line-height: 1.5em;
|
|
overflow-x: hidden;
|
|
color: #bfbfbf; /* Fallback */
|
|
color: var(--text_color);
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Page layout elements */
|
|
|
|
.header_image{
|
|
width: 100%;
|
|
max-width: 1000px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.body{
|
|
position: relative;
|
|
display: inline-block;
|
|
max-width: 1000px;
|
|
min-width: 300px;
|
|
width: 100%;
|
|
height: auto;
|
|
padding: 0;
|
|
margin: 30px 0 30px 0;
|
|
box-sizing: border-box;
|
|
background-color: var(--body_color);
|
|
text-align: left;
|
|
box-shadow: #000000 0 0 10px, 5px;
|
|
box-shadow: var(--shadow_color) 0 0 var(--shadow_spread) var(--shadow_intensity);
|
|
z-index: 1;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.navigation a {
|
|
float: none;
|
|
display: inline-block;
|
|
color: #bfbfbf; /* Fallback */
|
|
color: var(--text_color);
|
|
text-align: center;
|
|
padding: 4px 6px;
|
|
margin: 0 4px;
|
|
text-decoration: none;
|
|
font-family: "Lato Thin", sans-serif;
|
|
font-weight: bold;
|
|
font-size: 1.8em;
|
|
transition: box-shadow 5s;
|
|
}
|
|
.navigation a:hover {
|
|
background: linear-gradient(#82c13e, #6da234);
|
|
background: linear-gradient(var(--highlight_color), var(--highlight_color_dark));
|
|
box-shadow: #82c13e, 1px 1px 4px #000000;
|
|
box-shadow: var(--highlight_border), 1px 1px 4px var(--shadow_color);
|
|
color: #000000;
|
|
color: var(--highlight_text_color);
|
|
transition: box-shadow 0.5s;
|
|
text-decoration: none;
|
|
}
|
|
.navigation .icon {
|
|
display: none;
|
|
}
|
|
@media screen and (max-width: 35em) {
|
|
.navigation a:not(:first-child) {display: none;}
|
|
.navigation a.icon {
|
|
float: right;
|
|
display: block;
|
|
}
|
|
.navigation.responsive {position: relative;}
|
|
.navigation.responsive .icon {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
.navigation.responsive a {
|
|
float: none;
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.highlight_headerbar,
|
|
.highlight_dark,
|
|
.highlight_middle,
|
|
.highlight_light,
|
|
.highlight_green,
|
|
.highlight_blue,
|
|
.highlight_red {
|
|
position: relative;
|
|
width: auto;
|
|
height: auto;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
padding: .5em;
|
|
z-index: 101;
|
|
}
|
|
.highlight_headerbar {
|
|
background-color: var(--accent_color_headerbar);
|
|
box-shadow: 1px 1px 3px -1px var(--shadow_color);}
|
|
.highlight_dark {
|
|
background-color: var(--accent_color_dark);
|
|
box-shadow: inset 1px 1px 8px -1px var(--shadow_color);}
|
|
.highlight_middle {
|
|
background-color: var(--accent_color_medium);
|
|
box-shadow: inset 1px 1px 6px -1px var(--shadow_color);}
|
|
.highlight_light {
|
|
background-color: var(--accent_color_light);
|
|
box-shadow: 1px 1px 4px 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(--accent_color_light_border) solid;} /* Differentiate it a bit, else it just looks like bold text */
|
|
|
|
p, .indent {
|
|
margin: 10px;
|
|
}
|
|
|
|
hr{
|
|
height: 8px;
|
|
border: none;
|
|
background: linear-gradient(var(--accent_color_dark), var(--accent_color_light));
|
|
margin: 16px 0 16px 0;
|
|
}
|
|
|
|
::-webkit-scrollbar{
|
|
width: 12px; /* for vertical scrollbars */
|
|
height: 12px; /* for horizontal scrollbars */
|
|
}
|
|
::-webkit-scrollbar-track {background: var(--scrollbar_background_color);}
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: var(--scrollbar_foreground_color);
|
|
border-radius: 6px;
|
|
}
|
|
::-webkit-scrollbar-corner{background: transparent;}
|
|
|
|
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: 35em;
|
|
}
|
|
table:not(.form) {border-collapse: collapse; width: 100%;}
|
|
tr:not(.form) {border-bottom: 1px var(--accent_color_medium_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(--accent_color_medium_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: 310px;
|
|
max-width: 90%;
|
|
height: 60px;
|
|
margin: 6px;
|
|
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;
|
|
}
|