Files
fnx_web/res/static/style/viewer.css

247 lines
4.0 KiB
CSS
Raw Normal View History

2018-07-11 22:46:44 +02:00
/*
2017-11-10 12:39:55 +01:00
Created on : May 22, 2015, 1:20:02 PM
Author : Fornax
*/
body{
overflow: hidden;
}
#filepreview{
position: absolute;
display: inline-block;
top: 0px;
left: 122px;
right: 0px;
bottom: 0px;
min-height: 100px;
min-width: 100px;
text-align: center;
vertical-align: middle;
}
/* =====================
== 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{
2018-07-11 22:46:44 +02:00
box-shadow: var(--shadow_color) 10px 10px 50px;
2017-11-10 12:39:55 +01:00
}
/* ========================
|| TOOLBAR COMPONENTS ||
======================== */
#toolbar {
position: absolute;
width: 120px;
2018-01-07 21:42:19 +01:00
z-index: 52;
2017-11-10 12:39:55 +01:00
overflow: hidden;
float: left;
2018-07-11 22:46:44 +02:00
background-color: var(--background_color);
2017-11-10 12:39:55 +01:00
left: 0;
bottom: 0;
top: 0;
padding: 0;
2018-01-07 21:42:19 +01:00
text-align: left;
border-right: 2px ridge var(--highlight_color);
2018-07-11 22:46:44 +02:00
box-shadow: 2px 2px 8px var(--shadow_color);
2017-11-10 12:39:55 +01:00
}
/* Workaround to hide the scrollbar in non webkit browsers, it's really ugly' */
#toolbar > div {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: -30px;
overflow-y: scroll;
overflow-x: hidden;
}
#toolbar > div > div {
position: absolute;
left: 0;
top: 0;
width: 120px;
height: auto;
}
2018-01-07 21:42:19 +01:00
#button-expand-toolbar{
position: absolute;
visibility: hidden;
left: 0;
top: 0;
cursor: pointer;
z-index: 51;
2017-11-10 12:39:55 +01:00
}
2018-01-07 21:42:19 +01:00
.toolbar_button{
text-align: left;
}
.toolbar_button > img {
2018-07-11 22:46:44 +02:00
width: 24px;
2017-11-10 12:39:55 +01:00
height: 24px;
}
2018-01-07 21:42:19 +01:00
.toolbar_button > span {
vertical-align: 6px;
2017-11-10 12:39:55 +01:00
}
#sponsors{
position: relative;
height: 600px;
width: 120px;
margin: 0;
border: none;
z-index: 9;
}
/* =========================
|| SHAREBAR COMPONENTS ||
========================= */
#sharebar{
position: absolute;
width: 100px;
left: -120px;
bottom: 0;
top: 0;
overflow-y: scroll;
overflow-x: hidden;
float: left;
2018-07-11 22:46:44 +02:00
background-color: var(--background_color);
box-shadow: 2px 2px 8px var(--shadow_color);
2017-11-10 12:39:55 +01:00
text-align: center;
2018-01-07 21:42:19 +01:00
border-right: 2px ridge var(--highlight_color);
z-index: 50;
2017-11-10 12:39:55 +01:00
overflow: hidden;
}
2018-01-07 21:42:19 +01:00
.sharebar-button {text-align: center;}
2017-11-10 12:39:55 +01:00
/* =====================
|| MISC COMPONENTS ||
===================== */
2018-09-11 21:35:44 +02:00
.full_popup{
2017-11-10 12:39:55 +01:00
position: fixed;
display: none;
2018-07-11 22:46:44 +02:00
background-color: var(--background_color);
2017-11-10 12:39:55 +01:00
left: 142px;
right: 20px;
bottom: 20px;
top: 20px;
overflow-y: scroll;
padding: 10px;
box-sizing: border-box;
2018-01-07 21:42:19 +01:00
text-align: left;
2018-07-11 22:46:44 +02:00
box-shadow: var(--shadow_color) 0px 0px 50px;
2017-11-10 12:39:55 +01:00
z-index: 100;
}
2018-07-11 22:46:44 +02:00
table {width: auto !important;}
table > tbody > tr {border: none !important;}
2017-11-10 12:39:55 +01:00
.corner-popup{
position: fixed;
2018-07-11 22:46:44 +02:00
background-color: var(--background_color);
2017-11-10 12:39:55 +01:00
right: 20px;
bottom: 20px;
width: fit-content;
height: fit-content;
overflow: hidden;
padding: 5px;
2018-07-11 22:46:44 +02:00
box-shadow: var(--shadow_color) 0px 0px 50px;
2017-11-10 12:39:55 +01:00
z-index: 200;
}
#frmDownload{
display: none;
width: 1px;
height: 0px;
position: relative;
}
#copy-text{
left: -100px;
width: 0px;
height: 0px;
position: fixed;
}
.bytecounter{
2018-07-11 22:46:44 +02:00
color: var(--text_color);
2017-11-10 12:39:55 +01:00
font-size: 16px;
font-family: 'Ubuntu', sans-serif;
2018-09-11 21:35:44 +02:00
line-height: 20px;
2017-11-10 12:39:55 +01:00
text-align: right;
display: inline-block;
background-image: url("/res/img/bytecounter.png");
/*background-attachment: fixed;*/
background-position: top right;
width: 108px;
height: 36px;
padding: 0;
padding-right: 1px;
2018-07-11 22:46:44 +02:00
}