| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507 |
- @stripe-width: 20px;
- @keyframes pdf-toolbar-stripes {
- from { background-position: 0 0; }
- to { background-position: @stripe-width 0; }
- }
- .pdf .toolbar.toolbar-pdf when (@is-overleaf = true) {
- .toolbar-small-mixin;
- .toolbar-alt-mixin;
- padding-right: 5px;
- &.changes-to-autocompile {
- #gradient > .striped(@color: rgba(255,255,255,.10), @angle: -45deg);
- background-size: @stripe-width @stripe-width;
- .animation(pdf-toolbar-stripes 2s linear infinite);
- }
- .auto-compile-status {
- color: white;
- margin-right: (@line-height-computed / 2);
- i {
- color: @brand-danger;
- }
- }
- .auto-compile-status when (@is-overleaf-light = true) {
- color: @ol-blue-gray-3;
- }
- }
- .pdf .toolbar.toolbar-pdf when (@is-overleaf = true) and (@is-overleaf-light = false) {
- border-bottom: 0;
- }
- .pdf .toolbar.toolbar-pdf when (@is-overleaf = false) {
- .toolbar-tall-mixin;
- padding: 0 (@line-height-computed / 2);
- .auto-compile-status {
- display: none;
- }
- }
- .pdf {
- background-color: @pdf-bg;
- }
- .pdf-viewer, .pdf-logs, .pdf-errors, .pdf-uncompiled {
- .full-size;
- top: @pdf-top-offset;
- }
- .pdf-logs, .pdf-errors, .pdf-uncompiled, .pdf-validation-problems{
- padding: @line-height-computed / 2;
- }
- .pdf-uncompiled {
- .fa {
- color: @blue;
- }
- }
- .btn-recompile-group when (@is-overleaf = true) {
- align-self: stretch;
- margin-right: 6px;
- .btn-recompile {
- height: 100%;
- .btn-primary;
- padding-top: 3px;
- padding-bottom: 3px;
- &:first-child {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- &[disabled] {
- background-color: mix(@btn-primary-bg, @toolbar-alt-bg-color, 65%);
- .opacity(1.0);
- }
- }
- }
- .btn-recompile-group when (@is-overleaf = false) {
- margin-right: (@line-height-computed / 2);
- .btn-recompile {
- .btn-info;
- }
- }
- .btn-split-screen when (@is-overleaf = false) {
- .fa {
- display: none;
- }
- }
- .btn-split-screen when (@is-overleaf = true) {
- .fa {
- display: none;
- }
- }
- .pdf-viewer {
- iframe {
- width: 100%;
- height: 100%;
- border: none;
- }
- .pdfjs-viewer {
- .full-size;
- background-color: @pdfjs-bg;
- overflow: scroll;
- canvas, div.pdf-canvas {
- background: white;
- box-shadow: @pdf-page-shadow-color 0px 0px 10px;
- }
- div.pdf-canvas.pdfng-empty {
- background-color: white;
- }
- div.pdf-canvas.pdfng-loading {
- background-color: white;
- }
- .page-container {
- margin: 10px auto;
- padding: 0 10px;
- box-sizing: content-box;
- user-select: none;
- }
- }
- .progress-thin {
- position: absolute;
- top: -2px;
- height: 3px;
- left: 0;
- right: 0;
- .progress-bar {
- height: 100%;
- background-color: @link-color;
- }
- }
- .pdfjs-controls {
- position: absolute;
- padding: @line-height-computed / 2;
- top: 0;
- left: 0;
- display: inline-block;
- .btn-group {
- transition: opacity 0.5s ease, visibility 0 linear 0.5s;
- visibility: hidden;
- opacity: 0;
- }
- &:hover, &.flash {
- .btn-group {
- transition: none;
- visibility: visible;
- opacity: 1;
- }
- }
- i.fa-arrows-h {
- border-right: 2px solid white;
- border-left: 2px solid white;
- }
- i.fa-arrows-v {
- border-top: 2px solid white;
- border-bottom: 2px solid white;
- }
- }
- }
- .pdf .toolbar {
- .toolbar-right {
- a {
- &:hover {
- i when (@is-overleaf = false) {
- box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
- border-color: @gray-dark;
- }
- }
- i when (@is-overleaf = false) {
- display: inline-block;
- width: 16px;
- height: 16px;
- border: 1px solid @gray-light;
- }
- i.full-screen {
- border-top-width: 3px;
- border-radius: 2px;
- }
- i.full-screen when (@is-overleaf = true) {
- display: none;
- }
- i.split-screen {
- width: 7px;
- border-top-width: 3px;
- border-radius: 2px;
- margin-left: 2px;
- }
- i.split-screen when (@is-overleaf = true) {
- display: none;
- }
- i.fa when (@is-overleaf = false) {
- display: none;
- }
- }
- }
- }
- .pdf-logs {
- overflow: auto;
- .alert {
- font-size: 0.9rem;
- margin-bottom: @line-height-computed / 2;
- cursor: pointer;
- .line-no {
- float: right;
- color: @log-line-no-color;
- font-weight: 700;
- .fa {
- opacity: 0;
- }
- }
- .entry-message {
- font-weight: 700;
- //font-family: @font-family-monospace;
- }
- .entry-content {
- white-space: pre-wrap;
- font-size: 0.8rem;
- //font-family: @font-family-monospace;
- }
- &:hover .line-no {
- color: inherit;
- .fa {
- opacity: 1;
- }
- }
- &.alert-danger {
- background-color: tint(@alert-danger-bg, 15%);
- &:hover {
- background-color: @alert-danger-bg;
- }
- }
- &.alert-warning {
- background-color: tint(@alert-warning-bg, 15%);
- &:hover {
- background-color: @alert-warning-bg;
- }
- }
- &.alert-info {
- background-color: tint(@alert-info-bg, 15%);
- &:hover {
- background-color: @alert-info-bg;
- }
- }
- }
- pre {
- font-size: 12px;
- }
- .dropdown {
- position: relative;
- }
- .force-recompile {
- margin-top: 10px;
- text-align: right;
- }
- }
- .synctex-controls {
- position: absolute;
- z-index: @synctex-controls-z-index;
- padding: @synctex-controls-padding;
- top: 68px;
- }
- .synctex-controls when (@is-overleaf = true) {
- margin-right: -8px;
- }
- .synctex-control {
- display: block;
- margin-bottom: 3px;
- > .synctex-control-icon {
- display: inline-block;
- font: normal normal normal 14px/1 FontAwesome;
- font-size: inherit;
- text-rendering: auto;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- }
- .synctex-control when (@is-overleaf = true) {
- @ol-synctex-control-size: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 1em;
- width: @ol-synctex-control-size;
- height: @ol-synctex-control-size;
- border-radius: @ol-synctex-control-size / 2;
- padding: 0 0 2px;
- background-color: fade(@btn-default-bg, 80%);
- transition: background 0.15s ease;
- margin-bottom: @ol-synctex-control-size / 2;
- }
- .synctex-control when (@is-overleaf = false) {
- line-height: 1.3;
- padding: 0 2px;
- }
- .synctex-control-goto-pdf > .synctex-control-icon when (@is-overleaf = true) {
- text-indent: 1px; // "Optical" adjustment.
- &::before {
- content: "\f061";
- }
- }
- .synctex-control-goto-code > .synctex-control-icon when (@is-overleaf = true) {
- text-indent: -1px; // "Optical" adjustment.
- &::before {
- content: "\f060";
- }
- }
- .synctex-control-goto-pdf > .synctex-control-icon::before when (@is-overleaf = false) {
- content: "\f178";
- }
- .synctex-control-goto-code > .synctex-control-icon::before when (@is-overleaf = false) {
- content: "\f177";
- }
- .editor-dark {
- .pdf-logs {
- background-color: lighten(@editor-dark-background-color, 10%);
- }
- .pdfjs-viewer {
- background-color: lighten(@editor-dark-background-color, 10%);
- }
- .pdf .toolbar {
- .toolbar-right a {
- i {
- border-color: @gray;
- }
- &:hover {
- i {
- border-color: @gray-light;
- }
- }
- }
- }
- }
- .keyboard-tooltip {
- .tooltip-inner {
- max-width: none;
- }
- }
- .keyboard-shortcut {
- white-space: nowrap;
- }
- @keyframes expand-feedback-area {
- from {
- max-height: 0;
- }
- to {
- max-height: 500px;
- }
- }
- .card-hint:extend(.card-thin) {
- margin-top: 10px;
- padding-bottom: 7px;
- cursor: default;
- &-icon-container {
- background: currentColor;
- width: 2.5rem;
- height: 2.5rem;
- font-size: 1.5rem;
- text-align: center;
- border-radius: 50%;
- float: left;
- margin-right: 10px;
- .fa {
- color: #FFF;
- }
- .alert-danger & {
- color: @state-danger-border;
- }
- .alert-warning & {
- color: @state-warning-border;
- }
- .alert-info & {
- color: @state-info-border;
- }
- }
- &-text,
- &-feedback-label {
- color: @log-hints-color;
- font-size: 0.9rem;
- margin-bottom: 20px;
- }
- &-text {
- min-height: 35px;
- }
- &-feedback-label {
- font-size: inherit;
- margin-right: 0.5em;
- margin-bottom: 0;
- font-weight: normal;
- }
- &-ext-link,
- &-feedback {
- display: inline-block;
- font-size: 0.8rem;
- }
- &-footer a,
- &-text a {
- .alert-danger & {
- color: @state-danger-text;
- }
- .alert-warning & {
- color: @state-warning-text;
- }
- .alert-info & {
- color: @state-info-text;
- }
- }
- &-feedback {
- color: @log-hints-color;
- float: right;
- }
- &-extra-feedback {
- color: @log-hints-color;
- font-size: 0.8rem;
- margin-top: 10px;
- padding-bottom: 5px;
- animation: 0.5s ease-out expand-feedback-area;
- overflow: hidden;
- &-label {
- margin: 5px 0 10px;
- padding-top: 5px;
- border-top: solid 1px @gray-lighter;
- }
- .radio {
- margin: 5px;
- }
- textarea {
- font-size: 0.8rem;
- margin-bottom: 10px;
- padding: 5px;
- }
- input[type="radio"] {
- margin-top: 2px;
- }
- }
- & + p {
- margin-top: 20px;
- }
- }
- .files-dropdown-container {
- .pull-right();
- position: relative;
- }
- .files-dropdown {
- display: inline-block;
- }
- .plv-text-layer {
- display: none;
- user-select: text;
- .pdf-page-container:hover &,
- .pdfjs-viewer-show-text & {
- display: block;
- }
- }
|