overleaf/services/web/public/stylesheets/app/editor.less
2014-06-22 20:08:56 +01:00

170 lines
No EOL
2.9 KiB
Text

.toolbar {
height: 40px;
border-bottom: 1px solid @toolbar-border-color;
a {
display: inline-block;
color: @gray-light;
padding: 6px 12px 8px;
&:hover {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
color: @gray-dark;
}
}
.btn-full-height {
border: none;
border-radius: 0;
border-right: 1px solid @toolbar-border-color;
color: @link-color;
padding: 6px 12px 8px;
&:hover {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
background-color: darken(white, 10%);
color: @link-hover-color;
}
}
.toolbar-right {
float: right;
.btn-full-height {
border-right: 0;
border-left: 1px solid @toolbar-border-color;
}
}
&.toolbar-header {
box-shadow: 0 0 2px #ccc;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 1;
}
&.toolbar-small {
height: 32px;
a {
padding: 4px 2px 2px;
margin-left: 6px;
}
.toolbar-right {
a {
margin-left: 0;
margin-right: 6px;
}
}
}
}
#editor-content {
position: absolute;
top: 40px;
bottom: 0;
left: 0;
right: 0;
}
#file-tree {
background-color: #fafafa;
border-right: 1px solid @toolbar-border-color;
ul.file-tree-list {
font-size: 0.8rem;
margin: 0;
padding: (@line-height-computed / 4) 0;
position: absolute;
top: 32px;
bottom: 0;
left: 0;
right: 0;
overflow-y: scroll;
ul {
margin-left: (@line-height-computed / 2);
}
li {
line-height: 2.6;
.entity-name {
color: @gray-dark;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover {
background-color: @gray-lightest;
}
input {
line-height: 1.6;
}
}
i.fa-folder-open, i.fa-folder {
color: lighten(desaturate(@link-color, 10%), 5%);
font-size: 14px;
}
i.fa-file, i.fa-image {
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 {
color: @link-color;
}
}
}
}
}
}
.ui-layout-resizer {
width: 6px;
background-color: #f4f4f4;
.ui-layout-toggler {
color: #999;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px !important;
line-height: 50px;
&:hover {
background-color: #ddd;
color: #333;
}
}
}
.ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
.ui-layout-toggler {
&:before {
content: "\f104"
}
}
}
.ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
.ui-layout-toggler {
&:before {
content: "\f105"
}
}
}
.ui-layout-resizer-dragging {
background-color: #ddd;
}