526 lines
11 KiB
CSS
526 lines
11 KiB
CSS
/* quicklook window */
|
|
.elfinder-quicklook {
|
|
position: absolute;
|
|
background: url("../img/quicklook-bg.png");
|
|
overflow: hidden;
|
|
-moz-border-radius: 7px;
|
|
-webkit-border-radius: 7px;
|
|
border-radius: 7px;
|
|
padding: 32px 0 40px 0;
|
|
}
|
|
|
|
.elfinder-navdock .elfinder-quicklook {
|
|
-moz-border-radius: 0;
|
|
-webkit-border-radius: 0;
|
|
border-radius: 0;
|
|
font-size: 90%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.elfinder-quicklook.elfinder-touch {
|
|
padding: 30px 0 40px 0;
|
|
}
|
|
|
|
.elfinder-quicklook .ui-resizable-se {
|
|
width: 14px;
|
|
height: 14px;
|
|
right: 5px;
|
|
bottom: 3px;
|
|
background: url("../img/toolbar.png") 0 -496px no-repeat;
|
|
}
|
|
|
|
.elfinder-quicklook.elfinder-touch .ui-resizable-se {
|
|
-moz-transform-origin: bottom right;
|
|
-moz-transform: scale(1.5);
|
|
zoom: 1.5;
|
|
}
|
|
|
|
/* quicklook fullscreen window */
|
|
.elfinder-quicklook.elfinder-quicklook-fullscreen {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
border-radius: 0;
|
|
-moz-border-radius: 0;
|
|
-webkit-border-radius: 0;
|
|
-webkit-background-clip: padding-box;
|
|
padding: 0;
|
|
background: #000;
|
|
display: block;
|
|
}
|
|
|
|
/* hide titlebar in fullscreen mode */
|
|
.elfinder-quicklook-fullscreen .elfinder-quicklook-titlebar,
|
|
.elfinder-quicklook-fullscreen.elfinder-quicklook .ui-resizable-handle{ display: none; }
|
|
|
|
/* hide preview border in fullscreen mode */
|
|
.elfinder-quicklook-fullscreen .elfinder-quicklook-preview {
|
|
border: 0 solid;
|
|
}
|
|
|
|
.elfinder-quicklook-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
.elfinder-quicklook-cover.elfinder-quicklook-coverbg {
|
|
/* background need to catch mouse event over browser plugin (eg PDF preview) */
|
|
background-color: #fff;
|
|
opacity: 0.000001;
|
|
filter: Alpha(Opacity=0.0001);
|
|
}
|
|
|
|
/* quicklook titlebar */
|
|
.elfinder-quicklook-titlebar {
|
|
text-align: center;
|
|
background: #777;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: calc(100% - 12px);
|
|
height: 20px;
|
|
-moz-border-radius-topleft: 7px;
|
|
-webkit-border-top-left-radius: 7px;
|
|
border-top-left-radius: 7px;
|
|
-moz-border-radius-topright: 7px;
|
|
-webkit-border-top-right-radius: 7px;
|
|
border-top-right-radius: 7px;
|
|
border: none;
|
|
line-height: 1.2;
|
|
padding: 6px;
|
|
}
|
|
|
|
.elfinder-navdock .elfinder-quicklook-titlebar {
|
|
-moz-border-radius-topleft: 0;
|
|
-webkit-border-top-left-radius: 0;
|
|
border-top-left-radius: 0;
|
|
-moz-border-radius-topright: 0;
|
|
-webkit-border-top-right-radius: 0;
|
|
border-top-right-radius: 0;
|
|
cursor: default;
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-titlebar {
|
|
height: 30px;
|
|
}
|
|
|
|
/* window title */
|
|
.elfinder-quicklook-title {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-title {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
/* icon "close" in titlebar */
|
|
.elfinder-quicklook-titlebar-icon {
|
|
position: absolute;
|
|
left: 4px;
|
|
top: 50%;
|
|
margin-top: -8px;
|
|
height: 16px;
|
|
border: none;
|
|
}
|
|
.elfinder-touch .elfinder-quicklook-titlebar-icon {
|
|
height: 22px;
|
|
}
|
|
|
|
.elfinder-quicklook-titlebar-icon .ui-icon {
|
|
position: relative;
|
|
margin: -9px 3px 0px 0px;
|
|
cursor: pointer;
|
|
border-radius: 10px;
|
|
border: 1px solid;
|
|
opacity: .7;
|
|
filter: Alpha(Opacity=70);
|
|
}
|
|
|
|
.elfinder-quicklook-titlebar-icon .ui-icon.ui-icon-closethick {
|
|
padding-left: 1px;
|
|
}
|
|
|
|
.elfinder-mobile .elfinder-quicklook-titlebar-icon .ui-icon {
|
|
opacity: .6;
|
|
filter: Alpha(Opacity=60);
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-titlebar-icon .ui-icon {
|
|
margin-top: -5px;
|
|
}
|
|
|
|
.elfinder-quicklook-titlebar-icon.elfinder-titlebar-button-right {
|
|
left: auto;
|
|
right: 4px;
|
|
direction: rtl;
|
|
}
|
|
|
|
.elfinder-quicklook-titlebar-icon.elfinder-titlebar-button-right .ui-icon {
|
|
margin: -9px 0px 0px 3px;
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-titlebar .ui-icon {
|
|
-moz-transform-origin: center center;
|
|
-moz-transform: scale(1.2);
|
|
zoom: 1.2;
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-titlebar-icon .ui-icon {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.elfinder-touch .elfinder-quicklook-titlebar-icon.elfinder-titlebar-button-right .ui-icon {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
/* main part of quicklook window */
|
|
.elfinder-quicklook-preview {
|
|
overflow: hidden;
|
|
position: relative;
|
|
border: 0 solid;
|
|
border-left: 1px solid transparent;
|
|
border-right: 1px solid transparent;
|
|
height: 100%;
|
|
}
|
|
|
|
.elfinder-navdock .elfinder-quicklook-preview {
|
|
border-left: 0;
|
|
border-right: 0;
|
|
}
|
|
|
|
.elfinder-quicklook-preview.elfinder-overflow-auto {
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* wrapper for file info/icon */
|
|
.elfinder-quicklook-info-wrapper {
|
|
display: table;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: calc(100% - 80px);
|
|
left: 0;
|
|
top: 20px;
|
|
}
|
|
|
|
.elfinder-navdock .elfinder-quicklook-info-wrapper {
|
|
height: calc(100% - 20px);
|
|
}
|
|
|
|
/* file info */
|
|
.elfinder-quicklook-info {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-quicklook-info {
|
|
padding: 0 12px 0 112px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-quicklook-info {
|
|
padding: 0 112px 0 12px;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-navdock .elfinder-quicklook-info {
|
|
padding: 0 0 0 80px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-navdock .elfinder-quicklook-info {
|
|
padding: 0 80px 0 0;
|
|
}
|
|
|
|
/* file name in info */
|
|
.elfinder-quicklook-info .elfinder-quicklook-info-data:first-child {
|
|
color: #fff;
|
|
font-weight: bold;
|
|
padding-bottom: .5em;
|
|
}
|
|
|
|
/* other data in info */
|
|
.elfinder-quicklook-info-data {
|
|
clear: both;
|
|
padding-bottom: .2em;
|
|
color: #fff;
|
|
}
|
|
|
|
.elfinder-quicklook-info-progress {
|
|
width: 0;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* file icon */
|
|
.elfinder-quicklook .elfinder-cwd-icon {
|
|
position: absolute;
|
|
left: 32px;
|
|
top: 50%;
|
|
margin-top: -20px;
|
|
}
|
|
|
|
.elfinder-navdock .elfinder-quicklook .elfinder-cwd-icon {
|
|
left: 16px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-quicklook .elfinder-cwd-icon {
|
|
left: auto;
|
|
right: 32px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-navdock .elfinder-quicklook .elfinder-cwd-icon {
|
|
right: 6px;
|
|
}
|
|
|
|
.elfinder-quicklook .elfinder-cwd-icon:before {
|
|
top: -10px;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-quicklook .elfinder-cwd-icon:before {
|
|
left: 0;
|
|
top: 5px;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-navdock .elfinder-quicklook .elfinder-cwd-icon:before {
|
|
left: -14px;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-quicklook .elfinder-cwd-icon:after {
|
|
left: -42px;
|
|
}
|
|
|
|
.elfinder-ltr .elfinder-navdock .elfinder-quicklook .elfinder-cwd-icon:after {
|
|
left: -12px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-quicklook .elfinder-cwd-icon:before {
|
|
left: auto;
|
|
right: 40px;
|
|
}
|
|
|
|
.elfinder-rtl .elfinder-quicklook .elfinder-cwd-icon:after {
|
|
left: auto;
|
|
right: 42px;
|
|
}
|
|
|
|
/* image in preview */
|
|
.elfinder-quicklook-preview > img,
|
|
.elfinder-quicklook-preview > div > canvas {
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
|
|
/* navigation bar on quicklook window bottom */
|
|
.elfinder-quicklook-navbar {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 4px;
|
|
width: 140px;
|
|
height: 32px;
|
|
padding: 0px;
|
|
margin-left: -70px;
|
|
border: 1px solid transparent;
|
|
border-radius: 19px;
|
|
-moz-border-radius: 19px;
|
|
-webkit-border-radius: 19px;
|
|
}
|
|
|
|
/* navigation bar in fullscreen mode */
|
|
.elfinder-quicklook-fullscreen .elfinder-quicklook-navbar {
|
|
width: 188px;
|
|
margin-left: -94px;
|
|
padding: 5px;
|
|
border: 1px solid #eee;
|
|
background: #000;
|
|
opacity: 0.4;
|
|
filter: Alpha(Opacity=40);
|
|
}
|
|
|
|
/* show close icon in fullscreen mode */
|
|
.elfinder-quicklook-fullscreen .elfinder-quicklook-navbar-icon-close,
|
|
.elfinder-quicklook-fullscreen .elfinder-quicklook-navbar-separator {
|
|
display: inline;
|
|
}
|
|
|
|
/* icons in navbar */
|
|
.elfinder-quicklook-navbar-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
margin: 0 7px;
|
|
float: left;
|
|
background: url("../img/quicklook-icons.png") 0 0 no-repeat;
|
|
|
|
}
|
|
|
|
/* fullscreen icon */
|
|
.elfinder-quicklook-navbar-icon-fullscreen {
|
|
background-position: 0 -64px;
|
|
}
|
|
|
|
/* exit fullscreen icon */
|
|
.elfinder-quicklook-navbar-icon-fullscreen-off {
|
|
background-position: 0 -96px;
|
|
}
|
|
|
|
/* prev file icon */
|
|
.elfinder-quicklook-navbar-icon-prev {
|
|
background-position: 0 0;
|
|
}
|
|
|
|
/* next file icon */
|
|
.elfinder-quicklook-navbar-icon-next {
|
|
background-position: 0 -32px;
|
|
}
|
|
|
|
/* close icon */
|
|
.elfinder-quicklook-navbar-icon-close {
|
|
background-position: 0 -128px;
|
|
display: none;
|
|
}
|
|
|
|
/* icons separator */
|
|
.elfinder-quicklook-navbar-separator {
|
|
width: 1px;
|
|
height: 32px;
|
|
float: left;
|
|
border-left: 1px solid #fff;
|
|
display: none;
|
|
}
|
|
|
|
/* text encoding selector */
|
|
.elfinder-quicklook-encoding {
|
|
height: 40px;
|
|
}
|
|
.elfinder-quicklook-encoding > select {
|
|
color: #fff;
|
|
background: #000;
|
|
border: 0;
|
|
font-size: 12px;
|
|
max-width: 100px;
|
|
display: inline-block;
|
|
position: relative;
|
|
top: 6px;
|
|
left: 5px;
|
|
}
|
|
.elfinder-navdock .elfinder-quicklook .elfinder-quicklook-encoding {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* text files preview wrapper */
|
|
.elfinder-quicklook-preview-text-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #fff;
|
|
color: #222;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* archive files preview wrapper */
|
|
.elfinder-quicklook-preview-archive-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #fff;
|
|
color: #222;
|
|
font-size: 90%;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch
|
|
}
|
|
|
|
/* archive files preview header */
|
|
.elfinder-quicklook-preview-archive-wrapper strong {
|
|
padding: 0 5px;
|
|
}
|
|
|
|
/* text preview */
|
|
pre.elfinder-quicklook-preview-text,
|
|
pre.elfinder-quicklook-preview-text.prettyprint {
|
|
width: auto;
|
|
height: auto;
|
|
margin: 0;
|
|
padding: 3px 9px;
|
|
border: none;
|
|
overflow: visible;
|
|
background: #fff;
|
|
-o-tab-size: 4;
|
|
-moz-tab-size: 4;
|
|
tab-size: 4;
|
|
}
|
|
|
|
.elfinder-quicklook-preview-charsleft hr {
|
|
border: none;
|
|
border-top: dashed 1px;
|
|
}
|
|
|
|
.elfinder-quicklook-preview-charsleft span {
|
|
font-size: 90%;
|
|
font-style: italic;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* html/pdf preview */
|
|
.elfinder-quicklook-preview-html,
|
|
.elfinder-quicklook-preview-pdf,
|
|
.elfinder-quicklook-preview-iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #fff;
|
|
margin: 0;
|
|
border: none;
|
|
display: block;
|
|
}
|
|
|
|
/* swf preview container */
|
|
.elfinder-quicklook-preview-flash {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* audio preview container */
|
|
.elfinder-quicklook-preview-audio {
|
|
width: 100%;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
/* audio preview using embed */
|
|
embed.elfinder-quicklook-preview-audio {
|
|
height: 30px;
|
|
background: transparent;
|
|
}
|
|
|
|
/* video preview container */
|
|
.elfinder-quicklook-preview-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* video.js error message */
|
|
.elfinder-quicklook-preview .vjs-error .vjs-error-display .vjs-modal-dialog-content {
|
|
font-size: 12pt;
|
|
padding: 0;
|
|
color: #fff;
|
|
}
|
|
|
|
/* allow user select */
|
|
.elfinder .elfinder-quicklook .elfinder-quicklook-info *,
|
|
.elfinder .elfinder-quicklook .elfinder-quicklook-preview * {
|
|
-webkit-user-select: auto;
|
|
-moz-user-select: text;
|
|
-khtml-user-select: text;
|
|
user-select: text;
|
|
}
|