overleaf/services/web/public/stylesheets/app/editor/file-tree.less

139 lines
2.4 KiB
Text
Raw Normal View History

2014-06-26 15:39:52 +00:00
2014-06-27 16:11:26 +00:00
aside#file-tree {
.file-tree-inner {
2014-06-26 15:39:52 +00:00
position: absolute;
top: 32px;
bottom: 0;
left: 0;
right: 0;
overflow-y: auto;
&.no-toolbar {
top: 0;
}
2014-06-27 16:11:26 +00:00
}
h3 {
font-size: 1rem;
border-bottom: 1px solid @gray;
padding-bottom: (@line-height-computed / 4);
margin: (@line-height-computed / 2);
}
ul.file-tree-list {
font-size: 0.8rem;
margin: 0;
padding: (@line-height-computed / 4) 0;
2014-06-26 15:39:52 +00:00
ul {
margin-left: (@line-height-computed / 2);
}
li {
line-height: 2.6;
position: relative;
2014-06-26 15:39:52 +00:00
.entity-name {
2014-07-22 10:53:20 +00:00
color: @gray-darker;
2014-06-26 15:39:52 +00:00
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover {
background-color: @gray-lightest;
}
input {
line-height: 1.6;
}
&.droppable-hover {
background-color: @file-tree-droppable-background-color;
}
}
i.fa-folder-open, i.fa-folder {
color: lighten(desaturate(@link-color, 10%), 5%);
font-size: 14px;
}
2014-07-22 12:33:01 +00:00
i.fa-file, i.fa-image, i.fa-file-pdf-o {
2014-06-26 15:39:52 +00:00
color: @gray-light;
font-size: 14px;
}
i.toggle {
width: 24px;
padding: 6px;
font-size: 0.7rem;
color: @gray
}
&.selected {
> .entity > .entity-name {
color: @link-color;
border-right: 4px solid @link-color;
font-weight: bold;
i.fa-folder-open, i.fa-folder, i.fa-file, i.fa-image, i.fa-file-pdf-o {
2014-06-26 15:39:52 +00:00
color: @link-color;
}
padding-right: 32px;
}
}
.dropdown {
position: absolute;
right: 0;
> a {
padding: 0 12px;
}
}
.rename-input {
display: block;
position: absolute;
top: 1px;
left: 44px;
right: 32px;
input {
width: 100%;
}
}
2014-06-26 15:39:52 +00:00
}
}
ul.droppable-hover {
background-color: @file-tree-droppable-background-color;
}
2014-07-11 12:55:14 +00:00
}
.editor-dark {
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;
}
}
}
}
}
}
}