@use '../global/globalCssVariables.module.scss' as global; .webBox { height: 100%; width: 100%; top: 0px; left: 0px; position: relative; display: flex; overflow: hidden; .webBox-sideResizer { position: absolute; width: 100%; height: 100%; cursor: ew-resize; background: darkgray; } .webBox-background { width: 100%; height: 100%; } .webBox-ui { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none; top: 0px; left: 0px; overflow: hidden; .webBox-overlayButton { border-bottom-left-radius: 50%; display: flex; justify-content: space-evenly; align-items: center; height: 20px; background: none; padding: 0px; position: absolute; pointer-events: all; color: white; bottom: 0px; right: 0px; .webBox-overlayButton-arrow { width: 0px; height: 0px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 15px solid #121721; transition: all 0.5s; } .webBox-overlayButton-iconCont { background: #121721; height: 20px; width: 25px; display: flex; position: relative; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; } } .webBox-nextIcon, .webBox-prevIcon { background: #121721; color: white; height: 20px; width: 25px; display: flex; position: relative; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; padding: 0px; } .webBox-overlayButton:hover { background: none; } .webBox-overlayCont { position: absolute; width: calc(100% - 40px); height: 20px; background: #121721; bottom: 0px; display: flex; justify-content: center; align-items: center; overflow: hidden; transition: left 0.5s; pointer-events: all; .webBox-searchBar { width: 70%; font-size: 14px; } } } .webBox-overlayButton-sidebar { background: #121721; height: 25px; width: 25px; right: 5px; display: flex; position: absolute; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; z-index: 1; // so it appears on top of the document's title, if shown box-shadow: global.$standard-box-shadow; transition: 0.2s; &:hover { filter: brightness(0.85); } } .pdfViewerDash-dragAnnotationBox { position: absolute; background-color: transparent; opacity: 0.1; } .webBox-annotationLayer { position: absolute; transform-origin: left top; top: 0px; width: 100%; pointer-events: none; mix-blend-mode: multiply; // bcz: makes text fuzzy! } .webBox-annotationBox { position: absolute; background-color: rgba(245, 230, 95, 0.616); } .webBox-container { transform-origin: top left; width: 100%; height: 100%; position: absolute; .webBox-htmlSpan { position: absolute; top: 0px; left: 0px; cursor: text; padding: 15px; height: 100%; } .webBox-cont { pointer-events: none; } .webBox-cont, .webBox-cont-interactive { padding: 0vw; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; transform-origin: top left; .webBox-iframe { width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; body { ::selection { color: white; background: orange; } } } } .webBox-cont-interactive { span { user-select: text !important; } } .webBox-outerContent { width: 100%; height: 100%; position: absolute; transform-origin: top left; top: 0px; left: 0px; overflow: auto; .webBox-innerContent { position: relative; } } div.webBox-outerContent::-webkit-scrollbar-thumb { cursor: nw-resize; } } .webBox-overlay { width: 100%; height: 100%; position: absolute; } .webBox-buttons { margin-left: 44px; background: lightGray; width: 100%; } .webBox-annotationToggle { z-index: 901; position: absolute; top: 2px; left: 2px; cursor: pointer; box-shadow: black 0.3em 0.3em 1em; border-radius: 5px; display: flex; opacity: 0.3; width: 25px; height: 25px; align-items: center; > svg { margin: auto; } } .webBox-annotationToggle:hover { opacity: 1; } .touch-iframe-overlay { width: 100%; height: 100%; position: absolute; pointer-events: all; .indicator { position: absolute; transition: background-color 0.2s ease; border-radius: 2px; &.active { background-color: rgba(0, 0, 0, 0.1); box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); } } } // Add styles to hide font errors and improve user experience .font-error-hidden { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important; } // Change iframe behavior when resource loading errors occur iframe.webBox-iframe { &.loading-error { // Make full content accessible when external resources fail pointer-events: all !important; } } }