@use '../global/globalCssVariables.module.scss' as global; .pdfBox, .pdfBox-interactive { display: inline-block; position: relative; height: 100%; width: 100%; overflow: hidden; cursor: auto; transform-origin: top left; //z-index: 0; .pdfBox-ui { position: absolute; width: 100%; height: 100%; z-index: 1; pointer-events: none; top: 0px; left: 0px; // glr: This should really be the same component as text and PDFs .pdfBox-sidebarBtn { background: global.$black; height: 20px; width: 20px; right: 0px; color: global.$white; 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); } } .pdfBox-pageNums { display: flex; flex-direction: row; height: 25px; position: absolute; left: 5px; top: 5px; .pdfBox-fwdBtn, .pdfBox-backBtn { background: #121721; height: 25px; width: 25px; display: flex; position: relative; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; } } .pdfBox-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; .pdfBox-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; } .pdfBox-overlayButton-iconCont { background: #121721; height: 20px; width: 25px; display: flex; position: relative; align-items: center; justify-content: center; border-radius: 3px; pointer-events: all; } } .pdfBox-fuzzy, .pdfBox-nextIcon, .pdfBox-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; } .pdfBox-fuzzy { background-color: #4a4a4a; &.active { background-color: #3498db; color: white; } &:hover { background-color: #2980b9; } } .pdfBox-overlayButton:hover { background: none; } .pdfBox-settingsCont { position: absolute; right: 0px; top: 3px; pointer-events: all; .pdfBox-settingsButton { border-bottom-left-radius: 50%; display: flex; justify-content: space-evenly; align-items: center; height: 20px; background: none; padding: 0px; .pdfBox-settingsButton-arrow { width: 0px; height: 0px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 15px solid #121721; transition: all 0.5s; } .pdfBox-settingsButton-iconCont { background: #121721; height: 20px; width: 25px; display: flex; justify-content: center; align-items: center; margin-left: -2px; border-radius: 3px; } } .pdfBox-settingsButton:hover { background: none; } .pdfBox-settingsFlyout { position: absolute; background: #323232; box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25); right: 20px; border-radius: 7px; padding: 20px; display: flex; flex-direction: column; font-size: 14px; transition: all 0.5s; .pdfBox-settingsFlyout-title { color: white; } .pdfBox-settingsFlyout-kvpInput { margin-top: 20px; display: grid; grid-template-columns: 47.5% 5% 47.5%; } } } .pdfBox-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; .pdfBox-searchBar { width: calc(100% - 140px); // less size of search buttons font-size: 14px; } } } .pdfBox-title-outer { width: 100%; height: 100%; position: relative; display: grid; z-index: 0; background: lightslategray; transform-origin: top left; .pdfBox-title { color: lightgray; margin-top: auto; margin-bottom: auto; transform-origin: 40% 40%; width: 125%; transform: rotate(40deg) scale(0.8); font-size: 80; padding: 5%; overflow: hidden; display: inline-block; text-overflow: ellipsis; text-align: center; } } } .pdfBox { width: 100%; height: 100%; //pointer-events: none; .pdfViewerDash-text { .textLayer { // display: none; // this makes search highlights not show up span { user-select: none; } } } } .pdfBox-background { width: 100%; height: 100%; cursor: ew-resize; background: lightGray; } .pdfBox-container { position: absolute; transform-origin: top left; top: 0px; } .pdfBox-sidebarContainer { position: absolute; height: 100%; right: 0px; top: 0px; } .pdfBox-interactive { width: 100%; height: 100%; pointer-events: all; z-index: -1; .pdfViewerDash-text { .textLayer { display: contents; span { user-select: text; } } } }