add compat file viewer

This commit is contained in:
2020-01-28 12:51:21 +01:00
parent cb4082fd44
commit 8151aaa18e
23 changed files with 552 additions and 702 deletions

View File

@@ -25,13 +25,13 @@ html, body {
overflow-x: hidden;
}
body{
background-color: #0d0d0d; /* Fallback */
background-color: #111111; /* Fallback */
background-color: var(--body_color);
background-repeat: repeat;
font-family: sans-serif;
margin: 0;
line-height: 1.5em;
color: #bfbfbf; /* Fallback */
color: #b2b2b2; /* Fallback */
color: var(--text_color);
padding: 0;
}
@@ -54,9 +54,11 @@ body{
padding: 10px 20px 15px 10px;
font-size: 2em;
margin: 0;
background: #3f3f3f;
background: var(--input_color);
border-radius: 0;
border-bottom-right-radius: 90%;
box-shadow: 2px 2px 8px -3px #000000;
box-shadow: 2px 2px 8px -3px var(--shadow_color);
}
.page_navigation {
@@ -67,12 +69,14 @@ body{
height: 100%;
left: 0;
float: left;
background-color: #1c1c1c;
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 #000000;
box-shadow: inset -10px 0px 10px -10px var(--shadow_color);
transition: left 0.5s;
}
@@ -107,7 +111,9 @@ body{
width: 100%;
height: auto;
padding: 20px 0 20px 0;
background-color: #212121;
background-color: var(--layer_2_color);
box-shadow: 1px 1px 20px 0 #000000;
box-shadow: 1px 1px 20px 0 var(--shadow_color);
box-sizing: border-box;
clear: both;
@@ -125,6 +131,7 @@ body{
}
.page_body > h1 {
text-shadow: 1px 1px 25px #000000;
text-shadow: 1px 1px 25px var(--shadow_color);
}
/* Page contents */
@@ -140,7 +147,7 @@ body{
float: none;
display: block;
box-sizing: border-box;
color: #bfbfbf; /* Fallback */
color: #b2b2b2; /* Fallback */
color: var(--text_color);
text-align: center;
padding: 6px 6px;
@@ -153,12 +160,15 @@ body{
border-radius: 5px;
}
.page_navigation a:hover {
background-color: #3f3f3f;
background-color: var(--input_color);
color: #ffffff;
color: var(--input_text_color);
text-decoration: none;
}
.inset {
box-shadow: inset 1px 1px 20px 0 #000000;
box-shadow: inset 1px 1px 20px 0 var(--shadow_color);
}
.checkers {

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,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;
}