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

379 lines
6.6 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;
}
2019-07-17 23:19:57 +02:00
.file_viewer {
2017-11-10 12:39:55 +01:00
position: absolute;
2019-07-17 23:19:57 +02:00
display: flex;
flex-direction: column;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.file_viewer > .highlight_headerbar {
flex-grow: 0;
flex-shrink: 0;
display: flex;
flex-direction: row;
text-align: left;
2019-07-18 09:45:55 +02:00
padding: 0.2em;
2019-07-17 23:19:57 +02:00
}
.file_viewer > .highlight_headerbar > .button_toggle_toolbar {
flex-grow: 0;
flex-shrink: 0;
}
.file_viewer > .highlight_headerbar > .button_home {
flex-grow: 0;
flex-shrink: 0;
margin-right: .5em;
}
.file_viewer > .highlight_headerbar > .file_viewer_headerbar_title {
flex-grow: 1;
flex-shrink: 1;
overflow: hidden;
white-space: nowrap;
2019-07-18 09:45:55 +02:00
line-height: 2em;
2019-07-17 23:19:57 +02:00
}
.file_viewer > .highlight_headerbar > .list_navigator_buttons {
flex-grow: 0;
flex-shrink: 0;
display: inline-flex;
}
.file_viewer > .highlight_headerbar > .button_close_file_viewer {
flex-grow: 0;
flex-shrink: 0;
margin-left: .5em;
}
.file_viewer > .list_navigator{
flex-grow: 0;
flex-shrink: 0;
position: relative;
display: none; /* Becomes visible if the page is a list */
width: 100%;
height: 100px;
background-color: var(--accent_color_dark);
box-shadow: 2px 2px 8px var(--shadow_color);
text-align: center;
overflow-x: hidden;
overflow-y: hidden;
z-index: 50;
transition: top 1.5s;
}
.file_viewer > .file_viewer_window {
flex-grow: 1;
flex-shrink: 1;
position: relative;
display: inline-block;
width: auto;
height: auto;
margin: 0;
}
.file_viewer > .file_viewer_window > .file_viewer_file_preview {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
2017-11-10 12:39:55 +01:00
display: inline-block;
min-height: 100px;
min-width: 100px;
text-align: center;
vertical-align: middle;
2019-02-20 22:46:35 +01:00
transition: left 1s, top 1.5s;
2017-11-10 12:39:55 +01:00
}
2019-07-17 23:19:57 +02:00
/* Toolbars */
.file_viewer > .file_viewer_window > .file_viewer_toolbar {
position: absolute;
width: 8em;
z-index: 49;
overflow: hidden;
float: left;
background-color: var(--accent_color_dark);
left: -9em;
bottom: 0;
top: 0;
padding: 0;
text-align: left;
box-shadow: 2px 2px 8px var(--shadow_color);
transition: left 1s, top 1.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(--accent_color_dark);
box-shadow: 2px 2px 8px var(--shadow_color);
text-align: center;
z-index: 48;
overflow: hidden;
transition: left 1s, top 1.5s;
}
2017-11-10 12:39:55 +01:00
/* =====================
== FILE CONTAINERS ==
=====================*/
.image-container{
2019-07-17 23:19:57 +02:00
position: relative;
2017-11-10 12:39:55 +01:00
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;
2019-07-17 23:19:57 +02:00
position: relative;
2017-11-10 12:39:55 +01:00
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 ||
======================== */
/* 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;
2019-05-13 20:33:31 +02:00
width: 8em;
2017-11-10 12:39:55 +01:00
height: auto;
}
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
}
2019-03-26 20:53:19 +01:00
.toolbar_label {
text-align: left;
padding-left: 10px;
font-size: 0.8em;
line-height: 0.7em;
2019-07-17 23:19:57 +02:00
margin-top: 0.5em;
2017-11-10 12:39:55 +01:00
}
/* =========================
|| SHAREBAR COMPONENTS ||
========================= */
2018-01-07 21:42:19 +01:00
.sharebar-button {text-align: center;}
2017-11-10 12:39:55 +01:00
/* =====================
|| MISC COMPONENTS ||
===================== */
2019-07-06 18:41:16 +02:00
.popup {
2019-07-17 23:19:57 +02:00
position: absolute;
2019-03-27 23:57:53 +01:00
visibility: hidden;
2019-07-07 22:34:20 +02:00
display: flex;
flex-direction: column;
2019-03-27 23:57:53 +01:00
opacity: 0;
2019-07-07 22:34:20 +02:00
transition: visibility .5s, opacity .5s;
2019-07-06 18:41:16 +02:00
background-color: var(--body_color);
2019-03-31 21:06:52 +02:00
border-color: var(--accent_color_dark_border);
2019-07-06 18:41:16 +02:00
max-height: 100%;
2019-03-27 23:57:53 +01:00
max-width: 100%;
2019-07-17 23:19:57 +02:00
top: 20%;
2019-03-27 23:57:53 +01:00
left: 50%;
2019-07-17 23:19:57 +02:00
transform: translate(-50%, -20%);
2019-07-16 22:07:10 +02:00
padding: 0;
2019-03-27 23:57:53 +01:00
box-sizing: border-box;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
2019-07-06 18:41:16 +02:00
}
2019-07-07 22:34:20 +02:00
.popup > .highlight_light {
2019-07-06 18:41:16 +02:00
font-size: 1.2em;
}
2019-07-07 22:34:20 +02:00
.popup > .content_area {
flex: 1;
overflow-y: scroll;
padding: 10px;
}
2019-07-06 18:41:16 +02:00
.details_popup{
2019-07-07 01:03:44 +02:00
width: 1500px;
2019-07-06 18:41:16 +02:00
height: 800px;
2019-07-17 23:19:57 +02:00
z-index: 200;
2019-07-06 18:41:16 +02:00
}
.captcha_popup{
height: auto;
width: 450px;
2019-07-17 23:19:57 +02:00
z-index: 201;
2019-03-27 23:57:53 +01:00
}
2019-03-28 10:47:27 +01:00
#captcha_popup_captcha > div {
display: inline-block;
}
2017-11-10 12:39:55 +01:00
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;
}
.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-position: top right;
2019-04-02 20:35:07 +02:00
width: 136px;
2017-11-10 12:39:55 +01:00
height: 36px;
padding: 0;
padding-right: 1px;
2018-07-11 22:46:44 +02:00
}
2019-02-20 22:46:35 +01:00
/* ====================
|| 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;
}
#listNavigatorItems{
2019-07-17 23:19:57 +02:00
position: relative;
2019-02-20 22:46:35 +01:00
top: 0;
left: 0;
right: 0;
height: 100%;
white-space: nowrap;
overflow-x: scroll;
overflow-y: hidden;
border: none;
2019-07-17 23:19:57 +02:00
padding: 0;
2019-02-20 22:46:35 +01:00
}
.listItem{
display: inline-block;
position: relative;
height: 95%;
width: 100px;
margin-right: 5px;
text-align: center;
2019-07-17 23:19:57 +02:00
border: var(--input_color) solid 2px;
border-radius: 2px;
2019-02-20 22:46:35 +01:00
font-size: 12px;
overflow: hidden;
cursor: pointer;
}
2019-07-17 23:19:57 +02:00
.list_item_selected{
border: var(--highlight_color) solid 2px;
}
2019-02-20 22:46:35 +01:00
.listItemThumbnail{
position: relative;
max-width: 100%;
max-height: 84%;
margin: 0;
}