2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@bg-color) {
|
|
|
|
&::before {
|
2017-11-27 12:12:14 -05:00
|
|
|
content: '\00a0';
|
2017-11-27 12:11:32 -05:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
right: 100%;
|
|
|
|
background-color: @bg-color;
|
|
|
|
}
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2017-11-23 10:21:06 -05:00
|
|
|
#file-tree {
|
2017-11-23 11:42:38 -05:00
|
|
|
.toolbar.toolbar-filetree {
|
|
|
|
.toolbar-small-mixin;
|
|
|
|
.toolbar-alt-mixin;
|
2017-11-24 11:03:30 -05:00
|
|
|
padding: 0 5px;
|
2017-11-23 11:42:38 -05:00
|
|
|
}
|
|
|
|
|
2014-06-27 12:11:26 -04:00
|
|
|
.file-tree-inner {
|
2014-06-26 11:39:52 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 32px;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
overflow-y: auto;
|
2017-11-20 07:24:00 -05:00
|
|
|
background-color: @file-tree-bg;
|
2014-07-03 10:05:35 -04:00
|
|
|
|
|
|
|
&.no-toolbar {
|
|
|
|
top: 0;
|
|
|
|
}
|
2014-06-27 12:11:26 -04:00
|
|
|
}
|
|
|
|
|
2017-11-21 06:45:06 -05:00
|
|
|
// TODO; Consolidate with "Project files" in Overleaf
|
2014-06-27 12:11:26 -04:00
|
|
|
h3 {
|
|
|
|
font-size: 1rem;
|
|
|
|
border-bottom: 1px solid @gray;
|
|
|
|
padding-bottom: (@line-height-computed / 4);
|
|
|
|
margin: (@line-height-computed / 2);
|
|
|
|
}
|
|
|
|
|
2017-11-20 07:24:00 -05:00
|
|
|
ul.file-tree-list when (@is-overleaf = false) {
|
2014-06-27 12:11:26 -04:00
|
|
|
font-size: 0.8rem;
|
|
|
|
padding: (@line-height-computed / 4) 0;
|
2017-11-20 07:24:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.file-tree-list {
|
|
|
|
margin: 0;
|
2016-02-10 10:54:25 -05:00
|
|
|
overflow-x: hidden;
|
|
|
|
height: 100%;
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2017-11-21 06:20:39 -05:00
|
|
|
ul when (@is-overleaf = false) {
|
|
|
|
margin-left: (@line-height-computed / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
ul when (@is-overleaf = true) {
|
2014-06-26 11:39:52 -04:00
|
|
|
margin-left: (@line-height-computed / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
line-height: 2.6;
|
2014-08-12 07:46:05 -04:00
|
|
|
position: relative;
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2017-01-24 10:19:48 -05:00
|
|
|
.entity {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
.entity-name {
|
2017-11-20 07:24:00 -05:00
|
|
|
color: @file-tree-item-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
&:hover {
|
2017-11-20 07:24:00 -05:00
|
|
|
background-color: @file-tree-item-hover-bg;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2017-11-21 06:20:39 -05:00
|
|
|
&:hover when (@is-overleaf = true) {
|
|
|
|
// 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)
|
2017-11-27 12:11:32 -05:00
|
|
|
// and, in consequence, the background gets clipped. The ::before pseudo-selector is used to fill
|
|
|
|
// the empty space.
|
|
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
2017-11-21 06:20:39 -05:00
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
input {
|
|
|
|
line-height: 1.6;
|
|
|
|
}
|
2017-11-22 06:54:57 -05:00
|
|
|
&.droppable-hover when (@is-overleaf = false) {
|
|
|
|
background-color: fade(@file-tree-droppable-bg-color, 60%);
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2017-11-22 06:54:57 -05:00
|
|
|
|
|
|
|
&.droppable-hover when (@is-overleaf = true) {
|
|
|
|
background-color: @file-tree-droppable-bg-color;
|
2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@file-tree-droppable-bg-color);
|
2017-11-22 06:54:57 -05:00
|
|
|
}
|
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
|
|
|
|
2015-07-17 11:30:04 -04:00
|
|
|
i.fa {
|
2017-11-21 06:20:39 -05:00
|
|
|
color: @file-tree-item-icon-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
2015-07-17 11:30:04 -04:00
|
|
|
i.fa-folder-open, i.fa-folder {
|
2017-11-21 06:20:39 -05:00
|
|
|
color: @file-tree-item-folder-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
i.toggle {
|
|
|
|
width: 24px;
|
|
|
|
padding: 6px;
|
|
|
|
font-size: 0.7rem;
|
2017-11-21 06:20:39 -05:00
|
|
|
color: @file-tree-item-toggle-color;
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2016-02-09 10:13:58 -05:00
|
|
|
|
|
|
|
&.multi-selected {
|
2017-11-21 06:45:06 -05:00
|
|
|
> .entity > .entity-name when (@is-overleaf = false) {
|
|
|
|
background-color: @file-tree-multiselect-bg;
|
2016-02-09 10:13:58 -05:00
|
|
|
&:hover {
|
2017-11-21 06:45:06 -05:00
|
|
|
background-color: @file-tree-multiselect-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
> .entity when (@is-overleaf = true) {
|
|
|
|
> .entity-name {
|
2017-11-21 11:10:07 -05:00
|
|
|
> div > i.fa,
|
|
|
|
> i.fa,
|
|
|
|
.entity-menu-toggle i.fa {
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
color: #FFF;
|
|
|
|
font-weight: bold;
|
2017-11-21 06:45:06 -05:00
|
|
|
background-color: @file-tree-multiselect-bg;
|
2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@file-tree-multiselect-bg);
|
2017-11-21 06:45:06 -05:00
|
|
|
&:hover {
|
|
|
|
background-color: @file-tree-multiselect-hover-bg;
|
2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@file-tree-multiselect-hover-bg);
|
2017-11-21 06:45:06 -05:00
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
> a {
|
|
|
|
padding: 0 12px;
|
|
|
|
}
|
|
|
|
}
|
2014-08-12 07:46:05 -04:00
|
|
|
|
|
|
|
.rename-input {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
left: 44px;
|
|
|
|
right: 32px;
|
2017-11-22 06:54:57 -05:00
|
|
|
color: @file-tree-item-input-color;
|
2014-08-12 07:46:05 -04:00
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2016-02-09 10:13:58 -05:00
|
|
|
|
|
|
|
> .entity > .entity-name {
|
|
|
|
.entity-menu-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.multi-selected) {
|
|
|
|
ul.file-tree-list li.selected {
|
2017-11-20 07:24:00 -05:00
|
|
|
> .entity > .entity-name when (@is-overleaf = false) {
|
2016-02-09 10:13:58 -05:00
|
|
|
color: @link-color;
|
|
|
|
border-right: 4px solid @link-color;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-right: 32px;
|
2016-05-18 11:34:50 -04:00
|
|
|
i.fa-folder-open, i.fa {
|
2016-02-09 10:13:58 -05:00
|
|
|
color: @link-color;
|
|
|
|
}
|
|
|
|
.entity-menu-toggle {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2017-11-20 07:24:00 -05:00
|
|
|
|
|
|
|
> .entity when (@is-overleaf = true) {
|
|
|
|
> .entity-name {
|
2017-11-21 11:10:07 -05:00
|
|
|
> div > i.fa,
|
|
|
|
> i.fa,
|
|
|
|
.entity-menu-toggle i.fa {
|
|
|
|
color: #FFF;
|
|
|
|
}
|
2017-11-21 06:20:39 -05:00
|
|
|
background-color: @file-tree-item-selected-bg;
|
2017-11-21 11:10:07 -05:00
|
|
|
font-weight: bold;
|
|
|
|
padding-right: 32px;
|
2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@file-tree-item-selected-bg);
|
2017-11-20 07:24:00 -05:00
|
|
|
|
|
|
|
.entity-menu-toggle {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 07:10:33 -05:00
|
|
|
ul.droppable-hover.file-tree-list when (@is-overleaf = false) {
|
2017-11-22 06:54:57 -05:00
|
|
|
background-color: fade(@file-tree-droppable-bg-color, 60%);
|
|
|
|
}
|
2017-11-22 07:10:33 -05:00
|
|
|
ul.droppable-hover.file-tree-list when (@is-overleaf = true) {
|
2017-11-22 06:54:57 -05:00
|
|
|
background-color: @file-tree-droppable-bg-color;
|
2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@file-tree-droppable-bg-color);
|
2014-06-26 11:39:52 -04:00
|
|
|
}
|
2014-07-11 08:55:14 -04:00
|
|
|
}
|
2014-07-28 10:06:26 -04:00
|
|
|
|
2017-11-21 11:10:07 -05:00
|
|
|
// TODO check if the OL Beta theme is OK with darker themes.
|
2017-11-21 06:20:39 -05:00
|
|
|
.editor-dark when (@is-overleaf = false) {
|
2014-07-28 10:06:26 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|