|
@@ -37,11 +37,6 @@
|
|
|
margin: (@line-height-computed / 2);
|
|
margin: (@line-height-computed / 2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- ul.file-tree-list when (@is-overleaf = false) {
|
|
|
|
|
- font-size: 0.8rem;
|
|
|
|
|
- padding: (@line-height-computed / 4) 0;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
&-history {
|
|
&-history {
|
|
|
.entity-name {
|
|
.entity-name {
|
|
|
padding-left: 6px;
|
|
padding-left: 6px;
|
|
@@ -59,16 +54,13 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- li .entity-name.droppable-hover when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ li .entity-name.droppable-hover {
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
|
|
}
|
|
}
|
|
|
- li .entity-name.droppable-hover when (@is-overleaf-light = true) {
|
|
|
|
|
- // color: @file-tree-item-selected-color;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- ul.droppable-hover li div.entity-name:hover when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ ul.droppable-hover li div.entity-name:hover {
|
|
|
background-color: transparent;
|
|
background-color: transparent;
|
|
|
.fake-full-width-bg(transparent);
|
|
.fake-full-width-bg(transparent);
|
|
|
&.droppable-hover {
|
|
&.droppable-hover {
|
|
@@ -105,7 +97,7 @@
|
|
|
&:hover {
|
|
&:hover {
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
}
|
|
}
|
|
|
- &:hover when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ &:hover {
|
|
|
// When the entity is a subfolder, the DOM element is "indented" via margin-left. This makes the
|
|
// When the entity is a subfolder, the DOM element is "indented" via margin-left. This makes the
|
|
|
// element not fill the entire file-tree width (as it's spaced from the left-hand side via margin)
|
|
// element not fill the entire file-tree width (as it's spaced from the left-hand side via margin)
|
|
|
// and, in consequence, the background gets clipped. The ::before pseudo-selector is used to fill
|
|
// and, in consequence, the background gets clipped. The ::before pseudo-selector is used to fill
|
|
@@ -115,21 +107,15 @@
|
|
|
input {
|
|
input {
|
|
|
line-height: 1.6;
|
|
line-height: 1.6;
|
|
|
}
|
|
}
|
|
|
- &.droppable-hover when (@is-overleaf = false) {
|
|
|
|
|
- background-color: fade(@file-tree-droppable-bg-color, 60%);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
i.fa {
|
|
i.fa {
|
|
|
color: @file-tree-item-icon-color;
|
|
color: @file-tree-item-icon-color;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
&.linked-file-highlight {
|
|
&.linked-file-highlight {
|
|
|
- &when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ & {
|
|
|
color: white;
|
|
color: white;
|
|
|
}
|
|
}
|
|
|
- &when (@is-overleaf = false) {
|
|
|
|
|
- color: @blue;
|
|
|
|
|
- }
|
|
|
|
|
position: relative;
|
|
position: relative;
|
|
|
top: 4px;
|
|
top: 4px;
|
|
|
left: -8px;
|
|
left: -8px;
|
|
@@ -151,13 +137,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&.multi-selected {
|
|
&.multi-selected {
|
|
|
- > .entity > .entity-name when (@is-overleaf = false) {
|
|
|
|
|
- background-color: @file-tree-multiselect-bg;
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background-color: @file-tree-multiselect-hover-bg;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- > .entity when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ > .entity {
|
|
|
> .entity-name {
|
|
> .entity-name {
|
|
|
> div > i.fa,
|
|
> div > i.fa,
|
|
|
> i.fa,
|
|
> i.fa,
|
|
@@ -209,21 +189,7 @@
|
|
|
|
|
|
|
|
&:not(.multi-selected) {
|
|
&:not(.multi-selected) {
|
|
|
ul.file-tree-list li.selected {
|
|
ul.file-tree-list li.selected {
|
|
|
- > .entity > .entity-name when (@is-overleaf = false) {
|
|
|
|
|
- color: @link-color;
|
|
|
|
|
- border-right: 4px solid @link-color;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- padding-right: 32px;
|
|
|
|
|
- i.fa-folder-open,
|
|
|
|
|
- i.fa {
|
|
|
|
|
- color: @link-color;
|
|
|
|
|
- }
|
|
|
|
|
- .entity-menu-toggle {
|
|
|
|
|
- display: inline;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- > .entity when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ > .entity {
|
|
|
> .entity-name {
|
|
> .entity-name {
|
|
|
color: @file-tree-item-selected-color;
|
|
color: @file-tree-item-selected-color;
|
|
|
> div > i.fa,
|
|
> div > i.fa,
|
|
@@ -247,11 +213,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- ul.droppable-hover.file-tree-list when (@is-overleaf = false) {
|
|
|
|
|
- background-color: fade(@file-tree-droppable-bg-color, 60%);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .ui-draggable-dragging when (@is-overleaf = true) {
|
|
|
|
|
|
|
+ .ui-draggable-dragging {
|
|
|
background-color: fade(@file-tree-item-selected-bg, 60%);
|
|
background-color: fade(@file-tree-item-selected-bg, 60%);
|
|
|
color: @file-tree-item-selected-color;
|
|
color: @file-tree-item-selected-color;
|
|
|
width: 75%;
|
|
width: 75%;
|
|
@@ -259,41 +221,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// TODO check if the OL Beta theme is OK with darker themes.
|
|
|
|
|
-.editor-dark when (@is-overleaf = false) {
|
|
|
|
|
- aside#file-tree {
|
|
|
|
|
- // background-color: lighten(@editor-dark-background-color, 10%);
|
|
|
|
|
-
|
|
|
|
|
- ul.file-tree-list {
|
|
|
|
|
- .dropdown-toggle {
|
|
|
|
|
- color: @editor-dark-highlight-color;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- li {
|
|
|
|
|
- .entity-name {
|
|
|
|
|
- color: #aaaaaa;
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background-color: black;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- &.selected {
|
|
|
|
|
- > .entity > .entity-name {
|
|
|
|
|
- color: @editor-dark-highlight-color;
|
|
|
|
|
- border-color: @editor-dark-highlight-color;
|
|
|
|
|
- i.fa-folder-open,
|
|
|
|
|
- i.fa-folder,
|
|
|
|
|
- i.fa-file,
|
|
|
|
|
- i.fa-image,
|
|
|
|
|
- i.fa-file-pdf-o {
|
|
|
|
|
- color: @editor-dark-highlight-color;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
.modal-new-file {
|
|
.modal-new-file {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
table {
|
|
table {
|