@import "images.less"; .winbox { position: fixed; left: 0; top: 0; background: #0050ff; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); transition: width .3s, height .3s, transform .3s; transition-timing-function: cubic-bezier(0.3, 1, 0.3, 1); will-change: transform, width, height; /* contain "strict" does not make overflow contents selectable */ contain: layout size; /* explicitly set text align to left fixes an issue with iframes alignment when centered */ text-align: left; /* workaround for using passive listeners */ touch-action: none; } .wb-header { position: absolute; left: 0; top: 0; width: 100%; height: 35px; color: #fff; overflow: hidden; } .wb-body { position: absolute; left: 0; right: 0; top: 35px; bottom: 0; overflow: auto; -webkit-overflow-scrolling: touch; overflow-scrolling: touch; will-change: scroll-position; background: #fff; /* when no border is set there is some thin line visible */ //margin: -1px; /* always hide top border visually */ margin-top: 0 !important; } .wb-title{ font-family : Arial, sans-serif; font-size: 14px; padding-left: 10px; cursor: move; line-height: 35px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wb-n { position: absolute; top: -5px; left: 0; right: 0; height: 10px; cursor: n-resize; } .wb-e { position: absolute; top: 0; right: -5px; bottom: 0; width: 10px; cursor: w-resize; } .wb-s { position: absolute; bottom: -5px; left: 0; right: 0; height: 10px; cursor: n-resize; } .wb-w { position: absolute; top: 0; left: -5px; bottom: 0; width: 10px; cursor: w-resize; } .wb-nw { position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; cursor: nw-resize; } .wb-ne { position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; cursor: ne-resize; } .wb-sw { position: absolute; bottom: -5px; left: -5px; width: 10px; height: 10px; cursor: ne-resize; } .wb-se { position: absolute; bottom: -5px; right: -5px; width: 10px; height: 10px; cursor: nw-resize; } .wb-icon{ float: right; height: 35px; max-width: 100%; text-align: center; } .wb-icon * { display: inline-block; width: 30px; height: 100%; background-position: center; background-repeat: no-repeat; cursor: pointer; max-width: 100%; } .wb-min { background-image: url(@min); background-size: 14px auto; background-position: center bottom 11px; } .wb-max { background-image: url(@max); background-size: 17px auto; } .wb-close { background-image: url(@close); background-size: 15px auto; } .wb-full { background-image: url(@full); background-size: 16px auto; } /* .winbox:fullscreen{ transition: none !important; } .winbox:fullscreen .wb-full{ background-image: url(@minimize); } .winbox:fullscreen > div, .winbox:fullscreen .wb-title, */ .winbox.modal .wb-body ~ div, .winbox.modal .wb-title, .winbox.min .wb-body ~ div, //.winbox.min .wb-title, .winbox.max .wb-body ~ div, .winbox.max .wb-title { pointer-events: none; } .winbox.min { .wb-full, .wb-min { display: none; } .wb-title { cursor: default; } } &.max { box-shadow: none; } &.max .wb-body { margin: 0 !important; } .winbox iframe{ position: absolute; width: 100%; height: 100%; border: 0; } .winbox.modal{ &:before{ content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: inherit; border-radius: inherit; } &:after{ content: ''; position: absolute; top: -100vh; left: -100vw; right: -100vw; bottom: -100vh; background: #0d1117; animation: fade-in 0.2s ease-out forwards; z-index: -1; } .wb-min, .wb-max, .wb-full{ display: none; } } @keyframes fade-in { 0%{ opacity: 0; } 100%{ opacity: 0.85; } } @import "control.less";