/* Created on : May 22, 2015, 1:20:02 PM Author : Fornax */ /* Viewer container */ .file_viewer { position: absolute; display: flex; flex-direction: column; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; background-color: var(--layer_2_color); } /* Headerbar (row 1) */ .file_viewer > .file_viewer_headerbar { flex-grow: 0; flex-shrink: 0; display: flex; flex-direction: row; text-align: left; z-index: 10; box-shadow: none; padding: 6px; } .file_viewer > .file_viewer_headerbar_embedded { padding: 2px; } /* Headerbar components */ .file_viewer > .file_viewer_headerbar > * { flex-grow: 0; flex-shrink: 0; margin-left: 6px; margin-right: 6px; display: inline; } .file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title { flex-grow: 1; flex-shrink: 1; display: flex; flex-direction: column; overflow: hidden; line-height: 1.2em; /* When the page is a list there will be two lines. Dont's want to stretch the container*/ white-space: nowrap; text-overflow: ellipsis; justify-content: center; } .file_viewer > .file_viewer_headerbar > .button_home > svg { height: 1.6em; width: 1.6em; margin: 0; } .file_viewer > .file_viewer_headerbar > .button_home::after { content: "pixeldrain"; } @media (max-width: 600px) { .file_viewer > .file_viewer_headerbar > .button_home::after { content: "pd"; } } .file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title > span { flex-grow: 0; flex-shrink: 0; margin-right: 1em; } /* List Navigator (row 2) */ .file_viewer > .list_navigator { flex-grow: 0; flex-shrink: 0; position: relative; display: none; /* Becomes visible if the page is a list */ width: 100%; background-color: var(--layer_1_color); text-align: center; line-height: 1em; overflow-x: auto; overflow-y: hidden; z-index: 50; white-space: nowrap; } .file_viewer > .list_navigator > .list_item { height: 2.6em !important; width: 220px !important; } /* File preview area (row 3) */ .file_viewer > .file_viewer_window { flex-grow: 1; flex-shrink: 1; position: relative; display: inline-block; width: auto; height: auto; margin: 0; z-index: 9; } .file_viewer > .file_viewer_window > .file_viewer_file_preview { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: inline-block; min-height: 100px; min-width: 100px; text-align: center; vertical-align: middle; transition: left 0.5s; overflow: hidden; box-shadow: inset 2px 2px 10px 2px var(--shadow_color); border-radius: 16px; } /* Sponsors (row 4) */ .file_viewer > .sponsors { font-size: 0; line-height: 0; } .file_viewer > .sponsors > * { display: block; margin: auto; transform-origin: 0 0; } /* 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; } /* Toolbars */ .file_viewer > .file_viewer_window > .file_viewer_toolbar { position: absolute; width: 8em; z-index: 49; overflow: hidden; float: left; left: -9em; bottom: 0; top: 0; padding: 0; text-align: left; transition: left 0.5s; background-color: var(--layer_2_color); } .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; box-shadow: inset 1px 1px var(--layer_1_shadow) var(--shadow_color); background-color: var(--layer_1_color); border-radius: 16px; text-align: center; z-index: 48; overflow: hidden; transition: left 0.5s; } /* ===================== == FILE CONTAINERS == =====================*/ .image-container{ position: relative; display: block; height: 100%; width: 100%; text-align: center; overflow: hidden; } .text-container{ background: #333 none; position: relative; text-align: left; height: 100%; width: 100%; font-size: 0.9em; line-height: 1.5em; padding: 5px 5px 5px 20px; box-sizing: border-box; overflow-y: scroll; overflow-x: hidden; } .text-container > pre { white-space: pre-wrap; overflow: hidden; } .center{ position: relative; display: block; margin: auto; max-width: 100%; max-height: 100%; top: 50%; transform: translateY(-50%); } .pannable { cursor: move; } .drop_shadow { box-shadow: 1px 1px var(--layer_3_shadow) var(--shadow_color); } /* ======================== || TOOLBAR COMPONENTS || ======================== */ /* Workaround to hide the scrollbar in non webkit browsers, it's really ugly' */ .file_viewer_toolbar > div { position: absolute; left: 0; top: 0; bottom: 0; right: -30px; overflow-y: scroll; overflow-x: hidden; } .file_viewer_toolbar > div > div { position: absolute; left: 0; top: 0; width: 8em; height: auto; text-align: center; } .toolbar_button{ text-align: left; } .toolbar_button > img { width: 24px; height: 24px; vertical-align: middle; } .toolbar_button > span { vertical-align: middle; } .toolbar_label { text-align: left; padding-left: 10px; font-size: 0.8em; line-height: 0.7em; margin-top: 0.5em; } /* ========================= || SHAREBAR COMPONENTS || ========================= */ .sharebar-button {text-align: center;} .sharebar-button > svg, .sharebar-button > img { width: 40px; height: 40px; } /* ===================== || MISC COMPONENTS || ===================== */ .captcha_popup_captcha > div { display: inline-block; } 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; } /* ==================== || 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; } .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, left .5s, top .5s; } .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; }