2017-11-27 12:11:32 -05:00
|
|
|
.fake-full-width-bg(@bg-color) {
|
2019-12-05 14:09:31 -05:00
|
|
|
&::before {
|
|
|
|
content: '\00a0';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
right: 100%;
|
|
|
|
background-color: @bg-color;
|
|
|
|
}
|
2017-11-27 12:11:32 -05:00
|
|
|
}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2020-07-16 06:09:01 -04:00
|
|
|
.editor-sidebar {
|
2020-06-29 09:05:08 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-07-23 05:20:41 -04:00
|
|
|
background-color: @file-tree-bg;
|
2020-07-16 06:09:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-tree {
|
|
|
|
display: flex !important; // To work around jQuery layout's inline styles
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
max-height: 100%;
|
2020-06-29 09:05:08 -04:00
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
.toolbar.toolbar-filetree {
|
|
|
|
.toolbar-small-mixin;
|
|
|
|
.toolbar-alt-mixin;
|
|
|
|
padding: 0 5px;
|
2020-06-29 09:05:08 -04:00
|
|
|
flex-shrink: 0;
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
2020-11-26 09:22:30 -05:00
|
|
|
> file-tree-root,
|
2019-12-05 14:09:31 -05:00
|
|
|
.file-tree-inner {
|
2020-11-26 09:22:30 -05:00
|
|
|
position: relative;
|
2020-07-17 05:40:14 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-06-29 09:05:08 -04:00
|
|
|
flex-grow: 1;
|
2019-12-05 14:09:31 -05:00
|
|
|
overflow-y: auto;
|
2020-11-26 09:22:30 -05:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2019-12-05 14:09:31 -05:00
|
|
|
|
|
|
|
&.no-toolbar {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO; Consolidate with "Project files" in Overleaf
|
|
|
|
h3 {
|
|
|
|
font-size: 1rem;
|
|
|
|
border-bottom: 1px solid @gray;
|
|
|
|
padding-bottom: (@line-height-computed / 4);
|
|
|
|
margin: (@line-height-computed / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-history {
|
|
|
|
.entity-name {
|
|
|
|
padding-left: 6px;
|
|
|
|
&.deleted {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.loading {
|
|
|
|
padding-left: 6px;
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-26 09:22:30 -05:00
|
|
|
li.dnd-droppable-hover .entity-name,
|
2020-06-25 10:45:49 -04:00
|
|
|
li .entity-name.droppable-hover {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-weight: bold;
|
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
|
|
|
}
|
|
|
|
|
2020-06-25 10:45:49 -04:00
|
|
|
ul.droppable-hover li div.entity-name:hover {
|
2019-12-05 14:09:31 -05:00
|
|
|
background-color: transparent;
|
|
|
|
.fake-full-width-bg(transparent);
|
|
|
|
&.droppable-hover {
|
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.file-tree-list {
|
|
|
|
margin: 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
height: 100%;
|
2020-07-17 05:40:14 -04:00
|
|
|
flex-grow: 1;
|
2020-01-21 04:34:58 -05:00
|
|
|
position: relative;
|
|
|
|
overflow-y: auto;
|
2019-12-05 14:09:31 -05:00
|
|
|
|
2020-11-26 09:22:30 -05:00
|
|
|
.entity > ul,
|
|
|
|
ul[role='tree'] {
|
2022-05-11 07:27:09 -04:00
|
|
|
margin-left: 22px;
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
2021-01-07 09:22:28 -05:00
|
|
|
li.bottom-buffer {
|
|
|
|
min-height: @line-height-computed;
|
|
|
|
}
|
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
li {
|
|
|
|
line-height: @file-tree-line-height;
|
|
|
|
position: relative;
|
2020-11-26 09:22:30 -05:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
|
|
|
|
.entity {
|
|
|
|
user-select: none;
|
2020-11-26 09:22:30 -05:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.entity > .entity-name > button {
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
&.item-name-button {
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-align: left;
|
|
|
|
padding-right: 32px;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.entity-name {
|
|
|
|
color: @file-tree-item-color;
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-11-26 09:22:30 -05:00
|
|
|
&.entity-name-react {
|
|
|
|
text-overflow: clip;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
&:hover {
|
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
|
}
|
2020-06-25 10:45:49 -04:00
|
|
|
&:hover {
|
2019-12-05 14:09:31 -05:00
|
|
|
// 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)
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
line-height: 1.6;
|
|
|
|
}
|
2021-11-09 06:01:08 -05:00
|
|
|
.entity-menu-toggle > i {
|
2020-11-26 09:22:30 -05:00
|
|
|
color: white;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.entity.dnd-draggable-dragging {
|
|
|
|
.entity-name:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
.fake-full-width-bg(transparent);
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
color: @file-tree-item-icon-color;
|
|
|
|
font-size: 14px;
|
2022-01-19 06:56:57 -05:00
|
|
|
|
2022-05-11 07:27:09 -04:00
|
|
|
&.file-tree-icon {
|
|
|
|
margin-right: 4px;
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
&.linked-file-icon {
|
|
|
|
position: relative;
|
|
|
|
left: -2px;
|
2022-01-19 06:56:57 -05:00
|
|
|
|
2022-05-11 07:27:09 -04:00
|
|
|
+ .linked-file-highlight {
|
|
|
|
& {
|
2022-05-20 04:16:10 -04:00
|
|
|
color: inherit;
|
2022-05-11 07:27:09 -04:00
|
|
|
}
|
|
|
|
position: relative;
|
|
|
|
top: 4px;
|
|
|
|
width: 0;
|
|
|
|
left: -5px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
2022-05-11 07:27:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.file-tree-folder-icon {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.file-tree-expand-icon {
|
|
|
|
margin-left: 8px;
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
i.fa-folder-open,
|
|
|
|
i.fa-folder {
|
|
|
|
color: @file-tree-item-folder-color;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
i.toggle {
|
|
|
|
width: 24px;
|
|
|
|
padding: 6px;
|
2020-08-18 09:08:49 -04:00
|
|
|
font-size: 16px;
|
2019-12-05 14:09:31 -05:00
|
|
|
color: @file-tree-item-toggle-color;
|
|
|
|
}
|
|
|
|
|
2020-08-18 09:08:49 -04:00
|
|
|
.file-tree-dropdown-toggle {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
color: #fff;
|
2020-08-24 08:21:03 -04:00
|
|
|
line-height: 1.6;
|
2020-08-18 09:08:49 -04:00
|
|
|
font-size: 20px;
|
2020-08-24 08:21:03 -04:00
|
|
|
padding: 0 4px 0 18px;
|
2020-08-18 09:08:49 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
&::before {
|
2020-08-24 08:21:03 -04:00
|
|
|
content: '\00B7\00B7\00B7';
|
|
|
|
transform: rotate(90deg);
|
|
|
|
letter-spacing: 0.5px;
|
2020-08-18 09:08:49 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
&.multi-selected {
|
2020-06-25 10:45:49 -04:00
|
|
|
> .entity {
|
2019-12-05 14:09:31 -05:00
|
|
|
> .entity-name {
|
|
|
|
> div > i.fa,
|
2020-11-26 09:22:30 -05:00
|
|
|
> button > i.fa,
|
2019-12-05 14:09:31 -05:00
|
|
|
> i.fa,
|
|
|
|
.entity-menu-toggle i.fa {
|
|
|
|
color: #fff;
|
|
|
|
}
|
2022-01-19 06:56:57 -05:00
|
|
|
> i.linked-file-highlight {
|
2019-12-05 14:09:31 -05:00
|
|
|
color: @blue;
|
|
|
|
}
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: @file-tree-multiselect-bg;
|
|
|
|
.fake-full-width-bg(@file-tree-multiselect-bg);
|
|
|
|
&:hover {
|
|
|
|
background-color: @file-tree-multiselect-hover-bg;
|
|
|
|
.fake-full-width-bg(@file-tree-multiselect-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-09 06:01:08 -05:00
|
|
|
.menu-button {
|
2019-12-05 14:09:31 -05:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2022-05-11 07:27:09 -04:00
|
|
|
top: 3px;
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.rename-input {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
2022-05-11 07:27:09 -04:00
|
|
|
left: 32px;
|
2019-12-05 14:09:31 -05:00
|
|
|
right: 32px;
|
|
|
|
color: @file-tree-item-input-color;
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .entity > .entity-name {
|
|
|
|
.entity-menu-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 09:42:41 -04:00
|
|
|
|
|
|
|
.entity-limit-hit {
|
|
|
|
color: @file-tree-item-color;
|
|
|
|
line-height: 2.05;
|
|
|
|
margin-left: (@line-height-computed / 2);
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.entity-limit-hit-message {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
i.fa.entity-limit-hit-tooltip-trigger {
|
|
|
|
margin-left: (@line-height-computed / 4);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.multi-selected) {
|
|
|
|
ul.file-tree-list li.selected {
|
2020-06-25 10:45:49 -04:00
|
|
|
> .entity {
|
2019-12-05 14:09:31 -05:00
|
|
|
> .entity-name {
|
|
|
|
color: @file-tree-item-selected-color;
|
|
|
|
> div > i.fa,
|
2020-11-26 09:22:30 -05:00
|
|
|
> button > i.fa,
|
2019-12-05 14:09:31 -05:00
|
|
|
> i.fa,
|
|
|
|
.entity-menu-toggle i.fa {
|
|
|
|
color: @file-tree-item-selected-color;
|
|
|
|
}
|
2022-01-19 06:56:57 -05:00
|
|
|
> i.linked-file-highlight {
|
2019-12-05 14:09:31 -05:00
|
|
|
color: @blue;
|
|
|
|
}
|
|
|
|
background-color: @file-tree-item-selected-bg;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-right: 32px;
|
|
|
|
.fake-full-width-bg(@file-tree-item-selected-bg);
|
|
|
|
|
|
|
|
.entity-menu-toggle {
|
2020-08-18 09:08:49 -04:00
|
|
|
display: inline-block;
|
2021-11-09 06:01:08 -05:00
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0;
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-26 09:22:30 -05:00
|
|
|
ul.file-tree-list li.selected.dnd-droppable-hover {
|
|
|
|
> .entity {
|
|
|
|
> .entity-name {
|
|
|
|
background-color: @file-tree-item-hover-bg;
|
|
|
|
.fake-full-width-bg(@file-tree-item-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dnd-draggable-preview-layer {
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 100;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&.dnd-droppable-hover {
|
|
|
|
border: 3px solid @file-tree-item-selected-bg;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
|
2020-11-26 09:22:30 -05:00
|
|
|
.dnd-draggable-preview-item,
|
2020-06-25 10:45:49 -04:00
|
|
|
.ui-draggable-dragging {
|
2019-12-05 14:09:31 -05:00
|
|
|
background-color: fade(@file-tree-item-selected-bg, 60%);
|
|
|
|
color: @file-tree-item-selected-color;
|
|
|
|
width: 75%;
|
|
|
|
padding-left: @line-height-computed;
|
|
|
|
}
|
2020-11-26 09:22:30 -05:00
|
|
|
|
|
|
|
.dnd-draggable-preview-item {
|
|
|
|
line-height: @file-tree-line-height;
|
2020-12-09 06:55:52 -05:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-11-26 09:22:30 -05:00
|
|
|
}
|
2021-01-14 08:57:33 -05:00
|
|
|
|
|
|
|
.disconnected-overlay {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 10;
|
|
|
|
background: @file-tree-bg;
|
|
|
|
opacity: 0.5;
|
|
|
|
cursor: wait;
|
|
|
|
}
|
2014-07-11 08:55:14 -04:00
|
|
|
}
|
2014-07-28 10:06:26 -04:00
|
|
|
|
2018-06-10 10:44:00 -04:00
|
|
|
.modal-new-file {
|
2019-12-05 14:09:31 -05:00
|
|
|
padding: 0;
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
}
|
2021-03-18 05:52:36 -04:00
|
|
|
/* old modal */
|
2019-12-05 14:09:31 -05:00
|
|
|
.toggle-output-files-button {
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
2021-03-18 05:52:36 -04:00
|
|
|
/* new modal */
|
|
|
|
.toggle-file-type-button {
|
|
|
|
font-size: 80%;
|
|
|
|
margin-top: -12px;
|
|
|
|
.btn {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0;
|
|
|
|
vertical-align: baseline;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
.btn:focus-within {
|
|
|
|
outline: none;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
.modal-new-file--list {
|
|
|
|
background-color: @modal-footer-background-color;
|
|
|
|
width: 220px;
|
|
|
|
ul {
|
|
|
|
li {
|
2021-03-18 05:52:36 -04:00
|
|
|
/* old modal (a) */
|
2019-12-05 14:09:31 -05:00
|
|
|
a {
|
|
|
|
color: @text-color;
|
|
|
|
padding: (@line-height-computed / 4);
|
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-03-18 05:52:36 -04:00
|
|
|
/* new modal (button) */
|
|
|
|
.btn {
|
|
|
|
color: @text-color;
|
|
|
|
padding: (@line-height-computed / 4);
|
|
|
|
}
|
|
|
|
.btn:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.btn:focus {
|
|
|
|
outline: none;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: white;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
li.active {
|
|
|
|
background-color: white;
|
2021-03-18 05:52:36 -04:00
|
|
|
/* old modal (a) */
|
2019-12-05 14:09:31 -05:00
|
|
|
a {
|
|
|
|
color: @link-color;
|
|
|
|
}
|
2021-03-18 05:52:36 -04:00
|
|
|
/* new modal (button) */
|
|
|
|
.btn {
|
|
|
|
color: @link-color;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-12-05 14:09:31 -05:00
|
|
|
}
|
|
|
|
li:hover {
|
|
|
|
background-color: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-26 09:22:30 -05:00
|
|
|
.file-tree-error {
|
|
|
|
text-align: center;
|
|
|
|
color: @file-tree-error-color;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-tree-modal-alert {
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
2021-03-18 05:52:36 -04:00
|
|
|
.btn.modal-new-file-mode {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
.modal-new-file--body {
|
|
|
|
padding: 20px;
|
|
|
|
padding-top: (@line-height-computed / 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-new-file--body-upload {
|
|
|
|
padding-top: 20px;
|
2018-06-10 10:44:00 -04:00
|
|
|
}
|
2020-03-03 11:36:49 -05:00
|
|
|
|
|
|
|
.modal-footer {
|
|
|
|
.approaching-file-limit {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.at-file-limit {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
2021-03-18 05:52:36 -04:00
|
|
|
|
|
|
|
.modal-new-file--body-upload .uppy-Root {
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-new-file--body-upload .uppy-size--md {
|
|
|
|
.uppy-Dashboard-AddFiles-title {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
}
|