@use '../global/globalCssVariables.module.scss' as global; .webBox { position: relative; overflow: hidden; aspect-ratio: 1 / 1; // Explicitly enforce square aspect ratio .webBox-sideResizer { position: absolute; width: 100%; height: 100%; cursor: ew-resize; background: darkgray; } .webBox-background { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } // Simple container for screenshot .webBox-screenshot-container { width: 100%; } .webBox-screenshot { width: 100%; height: auto; // Maintain aspect ratio display: block; pointer-events: none; } .webBox-loading { padding: 20px; text-align: center; color: #666; background-color: #f5f5f5; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .webBox-loading-spinner { margin-top: 15px; color: #1976d2; font-size: 24px; } .webBox-error { padding: 20px; color: #d32f2f; text-align: center; background-color: #ffebee; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; } .webBox-placeholder { padding: 20px; text-align: center; color: #757575; background-color: #fafafa; min-height: 200px; display: flex; align-items: center; justify-content: center; } // Basic container layout .webBox-container { width: 100%; height: 100%; position: relative; } // Simple scrollable container - vertical only .webBox-outerContent { width: 100%; position: relative; overflow-y: auto; overflow-x: hidden; background-color: #f5f5f5; // Improve scrollbar styling &::-webkit-scrollbar-thumb { background-color: #888; border-radius: 6px; } &::-webkit-scrollbar { width: 8px; background-color: #f5f5f5; } } .webBox-innerContent { width: 100%; background-color: #f5f5f5; } .webBox-htmlSpan { position: absolute; top: 0; left: 0; cursor: text; padding: 15px; width: 100%; height: 100%; } .webBox-annotationLayer { position: absolute; transform-origin: left top; top: 0; width: 100%; pointer-events: none; mix-blend-mode: multiply; } .webBox-annotationBox { position: absolute; background-color: rgba(245, 230, 95, 0.616); } .webBox-ui { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none; top: 0; left: 0; overflow: hidden; .webBox-overlayButton { border-bottom-left-radius: 50%; display: flex; justify-content: space-evenly; align-items: center; height: 20px; background: none; padding: 0; position: absolute; pointer-events: all; color: white; bottom: 0; right: 0; .webBox-overlayButton-arrow { width: 0; height: 0; 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-refreshButton { background: #121721; height: 20px; width: 25px; display: flex; position: absolute; bottom: 0; right: 40px; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; padding: 0px; } .webBox-overlayCont { position: absolute; width: calc(100% - 40px); height: 20px; background: #121721; bottom: 0; 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; 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-overlay { width: 100%; height: 100%; position: absolute; } .webBox-buttons { margin-left: 44; background: lightGray; width: 100%; } .webBox-annotationToggle { z-index: 901; position: absolute; top: 2; left: 2; 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; .indicator { position: absolute; &.active { background-color: rgba(0, 0, 0, 0.1); } } } }