/* 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; } /* Headerbar (row 1) */ .file_viewer > .file_viewer_headerbar { flex-grow: 0; flex-shrink: 0; display: flex; flex-direction: row; text-align: left; padding: 8px; z-index: 10; box-shadow: none; } /* Headerbar components */ .file_viewer > .file_viewer_headerbar > * { flex-grow: 0; flex-shrink: 0; margin-left: .4em; margin-right: .4em; display: inline-flex; } .file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title { flex-grow: 1; flex-shrink: 1; display: flex; flex-direction: column; overflow: hidden; line-height: 2em; white-space: nowrap; text-overflow: ellipsis; } .file_viewer > .file_viewer_headerbar > .button_home::after { content: "pixeldrain"; } .file_viewer > .file_viewer_headerbar > .button_home > svg { height: 1.7em; width: 1.7em; margin: -0.25em; margin-right: 0.2em; } @media (max-width: 500px) { .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: scroll; 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 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; } /* Toolbars */ .file_viewer > .file_viewer_window > .file_viewer_toolbar { position: absolute; width: 8em; z-index: 49; overflow: hidden; float: left; background-color: var(--layer_1_color); left: -9em; bottom: 0; top: 0; padding: 0; text-align: left; transition: left 0.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(--layer_1_color); box-shadow: inset 1px 1px 6px var(--shadow_color); 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%; 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: var(--shadow_color) 10px 10px 50px; } /* ======================== || 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; } .toolbar_button{ text-align: left; } .toolbar_button > img { width: 24px; height: 24px; } .toolbar_button > span { vertical-align: 6px; } .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 || ===================== */ .popup { position: absolute; visibility: hidden; display: flex; flex-direction: column; opacity: 0; transition: visibility .5s, opacity .5s; background-color: var(--layer_2_color); border-color: var(--layer_2_color_border); max-height: 100%; max-width: 100%; top: 20%; left: 50%; transform: translate(-50%, -20%); padding: 0; box-sizing: border-box; text-align: left; box-shadow: var(--shadow_color) 0px 0px 50px; } .popup > .highlight_1 { font-size: 1.2em; } .popup > .content_area { flex: 1; overflow: auto; padding: 10px; } .details_popup{ width: 1500px; height: 800px; z-index: 200; } .captcha_popup{ height: auto; width: 450px; z-index: 201; } #captcha_popup_captcha > div { display: inline-block; } table {width: auto !important;} /* ==================== || 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; }