|
|
@@ -8,7 +8,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.pdf .toolbar.toolbar-pdf when (@is-overleaf = true) {
|
|
|
+.pdf .toolbar.toolbar-pdf {
|
|
|
.toolbar-small-mixin;
|
|
|
.toolbar-alt-mixin;
|
|
|
padding-right: 5px;
|
|
|
@@ -29,23 +29,10 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.pdf
|
|
|
- .toolbar.toolbar-pdf
|
|
|
- when
|
|
|
- (@is-overleaf = true)
|
|
|
- and
|
|
|
- (@is-overleaf-light = false) {
|
|
|
+.pdf .toolbar.toolbar-pdf when (@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;
|
|
|
}
|
|
|
@@ -71,7 +58,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.btn-recompile-group when (@is-overleaf = true) {
|
|
|
+.btn-recompile-group {
|
|
|
align-self: stretch;
|
|
|
margin-right: 6px;
|
|
|
.btn-recompile {
|
|
|
@@ -90,24 +77,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.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%;
|
|
|
@@ -177,48 +146,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.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 {
|
|
|
@@ -285,75 +212,50 @@
|
|
|
}
|
|
|
|
|
|
.synctex-controls {
|
|
|
+ margin-right: -8px;
|
|
|
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;
|
|
|
+ display: flex;
|
|
|
justify-content: center;
|
|
|
font-size: 1em;
|
|
|
+ margin-bottom: @ol-synctex-control-size / 2;
|
|
|
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-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-goto-pdf > .synctex-control-icon when (@is-overleaf = true) {
|
|
|
+.synctex-control-goto-pdf > .synctex-control-icon {
|
|
|
text-indent: 1px; // "Optical" adjustment.
|
|
|
&::before {
|
|
|
content: '\f061';
|
|
|
}
|
|
|
}
|
|
|
-.synctex-control-goto-code > .synctex-control-icon when (@is-overleaf = true) {
|
|
|
+.synctex-control-goto-code > .synctex-control-icon {
|
|
|
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%);
|