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

330 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-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
}
2021-03-10 20:13:32 +01:00
.file_viewer > .file_viewer_headerbar_embedded {
padding: 2px;
}
/* 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;
2020-03-10 17:06:52 +01:00
margin-left: 6px;
margin-right: 6px;
2020-10-20 10:48:52 +02:00
display: inline;
2019-07-18 19:53:09 +02:00
}
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;
2020-10-20 10:48:52 +02:00
line-height: 1.2em; /* When the page is a list there will be two lines. Dont's want to stretch the container*/
2020-02-03 17:28:26 +01:00
white-space: nowrap;
2019-07-18 20:01:33 +02:00
text-overflow: ellipsis;
2020-10-20 10:48:52 +02:00
justify-content: center;
2019-07-17 23:19:57 +02:00
}
2020-10-19 18:10:54 +02:00
.file_viewer > .file_viewer_headerbar > .button_home > svg {
height: 1.6em;
width: 1.6em;
2020-10-20 10:48:52 +02:00
margin: 0 0.2em 0 0;
2020-10-19 18:10:54 +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: 600px) {
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 > .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);
2019-07-17 23:19:57 +02:00
text-align: center;
2019-07-18 19:53:09 +02:00
line-height: 1em;
2020-03-17 15:39:01 +01:00
overflow-x: auto;
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;
2021-03-10 20:47:11 +01:00
box-shadow: inset 2px 2px 10px 2px var(--shadow_color);
2020-01-13 16:24:06 +01:00
}
/* Sponsors (row 4) */
.file_viewer > .sponsors {
background-color: var(--layer_1_color);
font-size: 0;
line-height: 0;
}
2020-05-24 14:23:03 +02:00
.file_viewer > .sponsors > * {
2020-01-13 16:24:06 +01:00
display: block;
margin: auto;
transform-origin: 0 0;
2017-11-10 12:39:55 +01:00
}
2021-06-21 10:50:19 +02:00
/* Pop-up warning (row 5) */
.file_viewer > .popup_warn {
background-color: var(--layer_1_color);
border-top: 1px solid var(--layer_1_color_border);
text-align: center;
}
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-03-10 17:06:52 +01:00
box-shadow: inset 1px 1px var(--layer_1_shadow) 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;
2020-01-21 15:33:09 +01:00
display: block;
2017-11-10 12:39:55 +01:00
height: 100%;
width: 100%;
text-align: center;
overflow: hidden;
}
.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%;
2021-03-20 13:54:19 +01:00
font-size: 0.9em;
line-height: 1.5em;
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;
2019-08-10 19:50:20 +02:00
overflow: hidden;
2017-11-10 12:39:55 +01:00
}
.center{
position: relative;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
top: 50%;
transform: translateY(-50%);
}
2020-03-10 17:06:52 +01:00
.pannable { cursor: move; }
.drop_shadow { box-shadow: 1px 1px var(--layer_3_shadow) var(--shadow_color); }
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;
2020-06-07 21:12:48 +02:00
text-align: center;
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;
2020-04-15 19:25:18 +02:00
vertical-align: middle;
2017-11-10 12:39:55 +01:00
}
2018-01-07 21:42:19 +01:00
.toolbar_button > span {
2020-04-14 16:00:24 +02:00
vertical-align: middle;
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;}
2020-01-14 17:10:03 +01:00
.sharebar-button > svg,
.sharebar-button > img {
width: 40px;
height: 40px;
}
2017-11-10 12:39:55 +01:00
/* =====================
|| MISC COMPONENTS ||
===================== */
2019-07-06 18:41:16 +02:00
2020-02-18 14:57:27 +01:00
.captcha_popup_captcha > div {
2019-03-28 10:47:27 +01:00
display: inline-block;
}
2017-11-10 12:39:55 +01:00
2018-07-11 22:46:44 +02:00
table {width: auto !important;}
/* Abuse report label*/
.abuse_type_form > label {
display: block;
border-bottom: 1px var(--layer_2_color_border) solid;
padding: 0.5em;
}
.abuse_type_form > label:last-of-type {
border-bottom: none;
}
2017-11-10 12:39:55 +01: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;
}
2021-06-22 00:32:05 +02:00
.intro_popup {
position: absolute;
width: 400px;
max-width: 80%;
height: auto;
background-color: var(--layer_4_color);
box-shadow: 1px 1px var(--layer_4_shadow) var(--shadow_color);
border-radius: 10px;
z-index: 50;
transition: opacity .4s;
transition: left .4s;
}
.intro_popup:before {
content: "";
display: block;
position: absolute;
left: 20px;
top: -15px;
border-bottom: 15px solid var(--layer_4_color);
border-left: 15px solid transparent;
border-right: 15px solid transparent;
}