| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047 |
- :root {
- --ph-highlight-color-blue: var(--color-blue-300);
- --ph-highlight-color-green: var(--color-green-300);
- --ph-highlight-color-red: var(--color-red-300);
- --ph-highlight-color-purple: var(--color-purple-300);
- --ph-highlight-color-yellow: var(--color-yellow-300);
- --ph-link-color: #106ba3;
- --ph-highlight-scroll-into-color: rgba(255, 75, 93, 0.67);
- --ph-view-container-width: 42vw;
- }
- /* Chrome, Safari, Edge, Opera */
- input::-webkit-outer-spin-button,
- input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
- }
- .extensions__pdf {
- &-container {
- display: flex;
- *[data-color=yellow] {
- background-color: var(--ph-highlight-color-yellow);
- border-color: var(--ph-highlight-color-yellow);
- }
- *[data-color=blue] {
- background-color: var(--ph-highlight-color-blue);
- border-color: var(--ph-highlight-color-blue);
- }
- *[data-color=green] {
- background-color: var(--ph-highlight-color-green);
- border-color: var(--ph-highlight-color-green);
- }
- *[data-color=red] {
- background-color: var(--ph-highlight-color-red);
- border-color: var(--ph-highlight-color-red);
- }
- *[data-color=purple] {
- background-color: var(--ph-highlight-color-purple);
- border-color: var(--ph-highlight-color-purple);
- }
- }
- &-loader {
- position: relative;
- }
- &-header {
- display: flex;
- justify-content: flex-end;
- position: absolute;
- top: 0;
- right: 10px; /* Allows clicking on the scrollbar */
- width: calc(100% - 10px);
- padding: 8px 20px;
- z-index: 5;
- -webkit-app-region: drag;
- }
- &-toolbar {
- -webkit-app-region: no-drag;
- > .inner {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- > .r {
- a.button {
- user-select: none;
- display: flex;
- align-items: center;
- margin-left: 8px;
- margin-right: 8px;
- padding: 4px 2px;
- color: var(--ls-icon-color);
- background-color: transparent;
- transition: none;
- word-break: normal;
- &.is-active {
- opacity: 1;
- border-bottom: 2px solid #969494;
- border-radius: 0;
- }
- &:active {
- opacity: .6;
- }
- }
- }
- .pager {
- white-space: nowrap;
- > .nu {
- padding-right: 4px;
- input {
- user-select: inherit;
- width: 35px;
- text-align: right;
- padding-right: 4px;
- padding-left: 2px;
- height: 18px;
- border: none;
- background: transparent;
- font-size: 15px;
- &.is-long {
- font-size: 12px;
- }
- }
- }
- > .ct {
- .button {
- margin: 0;
- &:last-child {
- padding-right: 3px;
- }
- }
- }
- }
- }
- }
- &-outline {
- position: absolute;
- right: 15px;
- > section {
- white-space: pre-wrap;
- max-height: 80vh;
- padding-top: 15px;
- padding-bottom: 15px;
- padding-left: 12px;
- overflow: auto;
- color: #565656;
- > .extensions__pdf-outline-item > .inner > a {
- font-weight: bold;
- }
- }
- &-item {
- &.has-children {
- > .inner > a > i.arrow {
- opacity: 1;
- }
- }
- &.is-expand {
- > .inner > a > i.arrow svg {
- transform: rotate(90deg) translateX(2px);
- }
- }
- > .inner {
- > a {
- color: #565656;
- font-size: 11px;
- text-decoration: none;
- font-weight: normal;
- display: flex;
- align-items: center;
- padding: 6px 5px;
- user-select: none;
- border-radius: 4px;
- cursor: default;
- margin-right: 10px;
- transition: none;
- > i {
- opacity: 0;
- width: 16px;
- height: 16px;
- display: flex;
- align-items: center;
- svg {
- color: #565656;
- transform: scale(.8);
- transition: .3s transform;
- }
- }
- &:hover {
- color: var(--ph-link-color);
- }
- &:active, &:focus {
- background-color: var(--ph-link-color);
- color: white;
- > i {
- svg {
- color: #e3e3e3;
- }
- }
- }
- }
- }
- > .children {
- padding-left: 12px;
- }
- }
- &-tabs {
- @apply flex justify-center py-2.5 space-x-1;
- border-bottom: 1px solid #d9d9d9;
- > .inner {
- display: flex;
- border: 1px solid #d5d5d5;
- border-radius: 4px;
- }
- button {
- font-size: 12px;
- padding: 5px 6px;
- line-height: 1;
- border: none;
- min-width: 90px;
- border-radius: 3px;
- color: black;
- &:hover {
- border: none;
- opacity: .8;
- color: black;
- border-radius: 3px;
- }
- &:active {
- opacity: 1;
- background-color: #c5c5c5;
- }
- &.active {
- background-color: #c5c5c5;
- }
- }
- }
- &-panels {
- max-height: 80vh;
- overflow-y: auto;
- padding: 5px 0 5px 10px;
- }
- &-wrap.hls-popup-overlay {
- right: -6px;
- left: unset;
- bottom: unset;
- height: auto;
- width: auto;
- }
- }
- &-settings {
- &-inner.hls-popup-box {
- position: absolute;
- right: 375px;
- width: 235px;
- padding: 15px 10px;
- }
- &-item {
- display: flex;
- color: rgb(115, 115, 115);
- &.theme-picker {
- justify-content: center;
- align-items: center;
- > button {
- border-radius: 50%;
- background-color: white;
- width: 30px;
- height: 30px;
- overflow: hidden;
- margin: 0 8px;
- border: 1px solid #c7c7c7;
- font-size: 0;
- &:hover {
- opacity: .8;
- border-color: #a3a3a3;
- }
- &.warm {
- background-color: #f9efdb;
- }
- &.dark {
- background-color: #0a4251;
- svg {
- color: white;
- }
- }
- }
- }
- &.toggle-input {
- align-items: center;
- justify-content: space-between;
- font-size: 11px;
- padding: 0 9px;
- padding-top: 12px;
- margin-top: 13px;
- opacity: 0.8;
- border-top: 1px solid #ccc;
- &.is-between {
- padding-top: 0;
- border-top: none;
- }
- }
- }
- }
- &-finder {
- &-wrap.hls-popup-overlay {
- right: -6px;
- left: unset;
- bottom: unset;
- height: auto;
- width: auto;
- }
- &.hls-popup-box {
- min-width: 360px;
- width: auto;
- > .input-inner {
- @apply p-2 relative;
- .input-wrap {
- @apply mr-1.5 border border-gray-300;
- border-radius: 4px;
- &:active, &:focus-within {
- border-color: transparent;
- }
- }
- input {
- @apply flex-1 bg-gray-200;
- padding: 1px 5px;
- border-radius: 4px;
- color: black;
- outline: none;
- border: 2px solid transparent;
- &:focus {
- border: 2px solid rgba(16, 107, 163, 0.75);
- }
- }
- .ui__button {
- margin-top: unset;
- border-radius: 4px;
- color: black;
- padding: 4px;
- .ti {
- font-weight: bold;
- color: #989898;
- }
- &.active .ti, &:hover .ti {
- color: #1f1f1f !important;
- }
- &.icon-enter {
- @apply absolute opacity-80;
- right: -1px;
- top: 2px;
- }
- }
- > .ui__button {
- margin-left: 8px;
- }
- }
- > .result-inner {
- @apply text-gray-800;
- }
- }
- }
- &-viewer {
- position: absolute;
- overflow: auto;
- width: 100%;
- height: 100%;
- > .viewer-container {
- }
- > .pdfViewer {
- &.disabled-text-selection {
- user-select: none;
- pointer-events: none;
- }
- }
- }
- &-resizer {
- position: absolute;
- width: 3px;
- height: 88vh;
- background-color: rgba(0, 0, 0, 0);
- overflow: hidden;
- z-index: 4;
- top: 10vh;
- cursor: col-resize;
- right: 0;;
- }
- &-hls-text-region {
- opacity: 1;
- z-index: 2;
- }
- &-hls-area-region {
- cursor: pointer;
- position: absolute;
- opacity: .8;
- z-index: 2;
- background-color: #FCD713FF;
- mix-blend-mode: multiply;
- touch-action: none;
- border-style: dashed;
- }
- &-viewer.is-area-dashed {
- .extensions__pdf {
- &-hls-area-region {
- background-color: transparent;
- border-width: 3px;
- opacity: 1 !important;
- }
- }
- }
- &-hls-ctx-menu {
- position: absolute;
- z-index: 9;
- color: #343434;
- border-radius: 4px;
- font-size: 13px;
- padding: 8px 10px;
- background-color: #e3e7e8;
- box-shadow: 0 2px 4px 0 rgba(134, 134, 134, 0.59);
- list-style: none;
- margin: 0;
- &::after {
- content: "";
- position: absolute;
- top: -50%;
- right: -50%;
- bottom: -50%;
- left: -50%;
- border: solid 1px #b2b2b2;
- transform: scale(0.5);
- transform-origin: center center;
- pointer-events: none;
- border-radius: 10px;
- }
- > li {
- margin: 0;
- padding: 5px 8px;
- display: flex;
- align-items: center;
- user-select: none;
- cursor: default;
- &.item:hover {
- background-color: #cecece;
- border-radius: 4px;
- }
- &.item-colors {
- display: flex;
- justify-content: space-between;
- margin: 0 -5px;
- > a {
- width: 14px;
- height: 14px;
- border-radius: 20px;
- background-color: #b2b2b2;
- overflow: hidden;
- opacity: 1;
- margin: 0 5px;
- font-size: 0;
- border: 1px inset rgba(0, 0, 0, .2);
- cursor: default;
- &:hover {
- opacity: .8;
- transform: scale(1.1);
- }
- &[data-color=yellow] {
- background-color: var(--color-yellow-500);
- }
- &[data-color=blue] {
- background-color: var(--color-blue-500);
- }
- &[data-color=green] {
- background-color: var(--color-green-500);
- }
- &[data-color=red] {
- background-color: var(--color-red-500);
- }
- &[data-color=purple] {
- background-color: var(--color-purple-500);
- }
- }
- }
- }
- }
- &-area-selection {
- .shadow-rect {
- position: absolute;
- background: rgba(252, 232, 151, 1);
- mix-blend-mode: multiply;
- }
- }
- &-highlights-list-item {
- @apply active:opacity-100 mr-2;
- user-select: none;
- font-size: 12px;
- padding-top: 8px;
- padding-bottom: 2px;
- padding-left: 6px;
- border-radius: 4px;
- margin-bottom: 3px;
- &:first-child {
- margin-top: 5px;
- }
- > h6 {
- @apply flex items-center justify-between pr-2 relative;
- font-size: 10px;
- line-height: 1em;
- color: #696969;
- -webkit-font-smoothing: antialiased;
- small {
- width: 8px;
- height: 8px;
- border-radius: 100%;
- margin-right: 6px;
- border-color: #cccccc !important;
- }
- button {
- @apply absolute right-0 top-[-6px] hover:opacity-80 active:opacity-100 hidden;
- padding-right: 8px;
- padding-top: 4px;
- .ti {
- font-size: 14px;
- }
- }
- }
- > p {
- color: #646464;
- padding-top: 6px;
- padding-bottom: 2px;
- margin: 0;
- &.text-wrap {
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- overflow: hidden;
- line-height: 1.24em;
- }
- &.area-wrap {
- display: flex;
- align-items: center;
- padding-right: 6px;
- }
- &:hover {
- color: var(--ph-link-color);
- }
- }
- &.active {
- background-color: var(--ph-link-color);
- > h6, > p {
- color: white;
- button {
- @apply inline;
- }
- }
- }
- &:hover:not(.active) {
- opacity: .9;
- }
- }
- }
- .hls-text-region-item {
- cursor: pointer;
- position: absolute;
- z-index: 2;
- transition: background 0.3s;
- background-color: rgba(252, 219, 97, 0.7);
- &[data-color=yellow] {
- background-color: var(--ph-highlight-color-yellow);
- opacity: .5;
- }
- &[data-color=blue] {
- background-color: var(--ph-highlight-color-blue);
- }
- &[data-color=green] {
- background-color: var(--ph-highlight-color-green);
- }
- &[data-color=red] {
- background-color: var(--ph-highlight-color-red);
- }
- &[data-color=purple] {
- background-color: var(--ph-highlight-color-purple);
- }
- }
- .hls-popup {
- &-overlay {
- position: absolute;
- top: 40px;
- right: 0;
- left: 0;
- width: 100%;
- height: 92vh;
- background-color: rgba(0, 0, 0, 0);
- display: none;
- &.visible {
- display: block;
- }
- }
- &-box {
- z-index: 3;
- border-radius: 4px;
- width: 320px;
- overflow-y: auto;
- background-color: #e3e7e8;
- outline: none;
- box-shadow: 0 2px 4px 0 rgba(134, 134, 134, 0.59);
- &::after {
- content: "";
- position: absolute;
- top: -50%;
- right: -50%;
- bottom: -50%;
- left: -50%;
- border: solid 1px #b2b2b2;
- transform: scale(0.5);
- transform-origin: center center;
- pointer-events: none;
- border-radius: 10px;
- }
- }
- }
- .extensions__pdf-container {
- background-color: transparent;
- .extensions__pdf-toolbar .buttons {
- background-color: var(--ls-primary-background-color);
- }
- &[data-theme=light] {
- background-color: #FFFFFF;
- }
- &[data-theme=dark] {
- background-color: #042f3c;
- .pdfViewer {
- background: transparent;
- .page {
- -webkit-filter: invert(100%);
- filter: invert(100%);
- }
- }
- .textLayer {
- background-color: #023d4cf7;
- -webkit-filter: invert(100%);
- filter: invert(100%);
- }
- .extensions__pdf-toolbar {
- background: linear-gradient(0deg, rgba(255, 255, 255, 0) 10%, rgb(15 31 37) 100%)
- }
- .extensions__pdf-hls-area-region {
- mix-blend-mode: revert;
- opacity: .4;
- }
- }
- &[data-theme=warm] {
- background-color: #f6efdf;
- .textLayer {
- background-color: #f8eeda;
- }
- .extensions__pdf-toolbar {
- .buttons {
- background-color: #f6efdf;
- }
- }
- }
- }
- .asset-ref {
- &.is-pdf {
- &:before {
- content: "[[📚";
- opacity: .7;
- margin-right: 4px;
- }
- &:after {
- content: "]]";
- opacity: .7;
- }
- }
- }
- .block-ref {
- &-wrap {
- &[data-type=annotation] {
- }
- &[data-hl-type=area] {
- display: block;
- .block-ref {
- display: block;
- border: none;
- }
- .prefix-link > .hl-area {
- cursor: alias;
- }
- }
- }
- }
- .block-content {
- &[data-type=annotation] {
- .prefix-link {
- display: inline-flex;
- align-items: center;
- padding-right: 4px;
- cursor: alias;
- color: var(--ls-link-ref-text-color);
- &:before {
- content: "📌 ";
- }
- }
- [data-hl-type=area] {
- .prefix-link {
- padding-top: 5px;
- display: block;
- }
- .hl-page {
- display: inline-flex;
- justify-content: space-between;
- width: 85%;
- > label {
- flex: 1;
- cursor: text;
- }
- }
- }
- .hl-area {
- @apply relative;
- display: inline-block;
- cursor: text;
- border: 1px solid #eee;
- border-radius: 4px;
- overflow: hidden;
- margin-top: 4px;
- .actions {
- @apply absolute right-1 top-1 flex opacity-0 transition-opacity;
- }
- &:hover {
- .actions {
- @apply opacity-100;
- }
- }
- img {
- margin: 0;
- box-shadow: none;
- max-width: 100%;
- max-height: 420px;
- cursor: alias;
- }
- }
- }
- }
- .ls-hl-colored .block-content {
- &[data-hl-color=green] {
- .prefix-link {
- &:before {
- content: "🟢 ";
- }
- }
- }
- &[data-hl-color=purple] {
- .prefix-link {
- &:before {
- content: "🟣 ";
- }
- }
- }
- &[data-hl-color=blue] {
- .prefix-link {
- &:before {
- content: "🔵 ";
- }
- }
- }
- &[data-hl-color=yellow] {
- .prefix-link {
- &:before {
- content: "🟡 ";
- }
- }
- }
- &[data-hl-color=red] {
- .prefix-link {
- &:before {
- content: "🔴 ";
- }
- }
- }
- }
- body[data-page] {
- .extensions__pdf-loader {
- width: 100%;
- }
- .extensions__pdf-container {
- position: fixed;
- left: 0;
- top: 0;
- width: var(--ph-view-container-width);
- height: 100vh;
- overflow-y: hidden;
- z-index: 10;
- }
- .extensions__pdf {
- &-viewer {
- left: 0;
- width: 100%;
- }
- &-viewer-cnt {
- display: flex;
- }
- &-highlights {
- height: 30vh;
- overflow: auto;
- position: absolute;
- top: 20px;
- left: 20px;
- background-color: rgba(231, 231, 231, 0.9);
- padding: 20px;
- z-index: 6;
- max-width: 400px;
- pre {
- white-space: pre-wrap;
- font-size: 12px;
- }
- }
- }
- }
- body.is-pdf-active {
- #app-container {
- padding-left: calc(var(--ph-view-container-width) + 15px);
- }
- #left-sidebar {
- border: none !important;
- display: none;
- }
- #head > .l {
- padding-left: 0;
- }
- #main-container.is-left-sidebar-open {
- padding-left: unset;
- }
- #left-menu {
- display: none;
- }
- }
- html.is-system-window {
- .extensions__pdf-container {
- width: 100vw;
- height: 100vh;
- }
- .extensions__pdf-loader {
- @apply w-full;
- }
- }
- /* overrides for pdf_viewer.css from PDF.JS web viewer */
- .textLayer {
- z-index: 2;
- opacity: .8;
- mix-blend-mode: multiply;
- }
- .annotationLayer {
- .highlightAnnotation, .underlineAnnotation {
- display: none;
- }
- }
- .textLayer ::selection {
- background: rgb(185, 231, 255);
- mix-blend-mode: multiply;
- color: unset;
- }
- .textLayer .highlight {
- background-color: rgb(206 255 162);
- border: 1px solid transparent;
- border-radius: 0;
- padding: 0 2px;
- &.selected {
- background-color: rgb(206 255 162);
- border: 2px dashed #ff3434;
- }
- }
- .hl-flash {
- animation-name: hl-flash;
- animation-duration: 0.3s;
- animation-timing-function: ease;
- animation-iteration-count: 2;
- animation-direction: alternate;
- animation-play-state: running;
- }
- @keyframes hl-flash {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- .pdfViewer .page.loadingIcon::after {
- background: none;
- }
|