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

351 lines
6.3 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
*/
/* Viewer container */
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;
}
/* Headerbar (row 1) */
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar {
2019-07-17 23:19:57 +02:00
flex-grow: 0;
flex-shrink: 0;
display: flex;
flex-direction: row;
text-align: left;
2019-08-11 17:16:18 +02:00
padding: 8px;
2019-11-21 20:25:06 +01:00
z-index: 10;
2020-01-13 16:24:06 +01:00
box-shadow: none;
2019-07-17 23:19:57 +02:00
}
/* Headerbar components */
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > * {
2019-07-18 19:53:09 +02:00
flex-grow: 0;
flex-shrink: 0;
margin-left: .4em;
margin-right: .4em;
2019-07-18 19:53:09 +02:00
display: inline-flex;
}
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title {
2019-07-17 23:19:57 +02:00
flex-grow: 1;
flex-shrink: 1;
2019-09-18 22:23:12 +02:00
display: flex;
flex-direction: column;
2019-07-17 23:19:57 +02:00
overflow: hidden;
white-space: nowrap;
2019-07-18 09:45:55 +02:00
line-height: 2em;
2019-07-18 20:01:33 +02:00
text-overflow: ellipsis;
2019-07-17 23:19:57 +02:00
}
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > .button_home::after {
2019-09-18 22:23:12 +02:00
content: "pixeldrain";
}
@media (max-width: 500px) {
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > .button_home::after {
2019-09-18 22:23:12 +02:00
content: "pd";
}
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > .list_navigator_buttons {
2019-09-18 22:23:12 +02:00
display: none;
}
}
2019-11-21 20:25:06 +01:00
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title > span {
2019-09-18 22:23:12 +02:00
flex-grow: 0;
flex-shrink: 0;
margin-right: 1em;
}
/* List Navigator (row 2) */
2019-07-18 19:53:09 +02:00
.file_viewer > .list_navigator {
2019-07-17 23:19:57 +02:00
flex-grow: 0;
flex-shrink: 0;
position: relative;
display: none; /* Becomes visible if the page is a list */
width: 100%;
2019-09-16 23:50:57 +02:00
background-color: var(--layer_1_color);
2020-01-13 16:24:06 +01:00
/* box-shadow: 0 0 8px var(--shadow_color); */
2019-07-17 23:19:57 +02:00
text-align: center;
2019-07-18 19:53:09 +02:00
line-height: 1em;
overflow-x: scroll;
2019-07-17 23:19:57 +02:00
overflow-y: hidden;
z-index: 50;
2019-07-18 19:53:09 +02:00
white-space: nowrap;
}
.file_viewer > .list_navigator > .list_item{
2019-08-11 17:16:18 +02:00
height: 2.6em !important;
2019-09-18 22:23:12 +02:00
width: 220px !important;
2019-07-17 23:19:57 +02:00
}
/* File preview area (row 3) */
2019-07-17 23:19:57 +02:00
.file_viewer > .file_viewer_window {
flex-grow: 1;
flex-shrink: 1;
position: relative;
display: inline-block;
width: auto;
height: auto;
margin: 0;
2019-11-21 20:25:06 +01:00
z-index: 9;
2019-07-17 23:19:57 +02:00
}
.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-11-21 20:25:06 +01:00
transition: left 0.5s;
2019-08-10 14:15:54 +02:00
overflow: hidden;
2020-01-13 16:24:06 +01:00
box-shadow: inset 2px 2px 8px var(--shadow_color);
}
/* Sponsors (row 4) */
.file_viewer > .sponsors {
background-color: var(--layer_1_color);
font-size: 0;
line-height: 0;
}
.file_viewer > .sponsors > iframe {
display: block;
margin: auto;
transform-origin: 0 0;
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;
2019-09-16 23:50:57 +02:00
background-color: var(--layer_1_color);
2019-07-17 23:19:57 +02:00
left: -9em;
bottom: 0;
top: 0;
padding: 0;
text-align: left;
2019-11-21 20:25:06 +01:00
transition: left 0.5s;
2019-07-17 23:19:57 +02:00
}
.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;
2019-09-16 23:50:57 +02:00
background-color: var(--layer_1_color);
2020-01-13 16:24:06 +01:00
/* box-shadow: 2px 2px 8px var(--shadow_color); */
2019-07-17 23:19:57 +02:00
text-align: center;
z-index: 48;
overflow: hidden;
2019-11-21 20:25:06 +01:00
transition: left 0.5s;
2019-07-17 23:19:57 +02:00
}
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
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
text-align: left;
2019-08-10 14:15:54 +02:00
height: 100%;
width: 100%;
2017-11-10 12:39:55 +01:00
padding: 5px 5px 5px 20px;
box-sizing: border-box;
2019-08-10 19:50:20 +02:00
overflow-y: scroll;
overflow-x: hidden;
2017-11-10 12:39:55 +01:00
}
2019-08-10 19:50:20 +02:00
.text-container > pre {
2017-11-10 12:39:55 +01:00
white-space: pre-wrap;
word-wrap: break-word;
2019-08-10 19:50:20 +02:00
overflow: hidden;
2017-11-10 12:39:55 +01:00
}
.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' */
2019-08-11 17:16:18 +02:00
.file_viewer_toolbar > div {
2017-11-10 12:39:55 +01:00
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: -30px;
overflow-y: scroll;
overflow-x: hidden;
}
2019-08-11 17:16:18 +02:00
.file_viewer_toolbar > div > div {
2017-11-10 12:39:55 +01:00
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-11-21 20:25:06 +01:00
background-color: var(--layer_2_color);
border-color: var(--layer_2_color_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;}
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;
}
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;
}