overleaf/services/web/public/stylesheets/app/editor.less

270 lines
4.5 KiB
Text
Raw Normal View History

2014-06-24 15:28:53 -04:00
.full-size {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
2014-06-24 11:33:36 -04:00
.global-alerts {
position: absolute;
z-index: 20;
top: (@line-height-computed / 4);
width: 400px;
left: 50%;
margin-left: -200px;
}
2014-06-21 17:20:37 -04:00
.toolbar {
height: 40px;
border-bottom: 1px solid @toolbar-border-color;
2014-02-12 05:23:40 -05:00
2014-06-21 17:20:37 -04:00
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;
}
2014-02-12 05:23:40 -05:00
}
2014-06-21 17:20:37 -04:00
.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;
}
2014-02-12 05:23:40 -05:00
}
2014-06-21 17:20:37 -04:00
.toolbar-right {
float: right;
.btn-full-height {
border-right: 0;
border-left: 1px solid @toolbar-border-color;
}
2014-02-12 05:23:40 -05:00
}
2014-06-21 17:20:37 -04:00
&.toolbar-header {
box-shadow: 0 0 2px #ccc;
2014-02-12 05:23:40 -05:00
position: absolute;
top: 0;
left: 0;
right: 0;
2014-06-21 17:20:37 -04:00
z-index: 1;
2014-02-12 05:23:40 -05:00
}
2014-06-21 17:20:37 -04:00
&.toolbar-small {
height: 32px;
a {
padding: 4px 2px 2px;
margin-left: 6px;
}
2014-06-21 17:20:37 -04:00
.toolbar-right {
a {
margin-left: 0;
margin-right: 6px;
}
}
2014-02-12 05:23:40 -05:00
}
}
2014-06-21 17:20:37 -04:00
#file-tree {
background-color: #fafafa;
2014-02-12 05:23:40 -05:00
2014-06-21 17:20:37 -04:00
ul.file-tree-list {
font-size: 0.8rem;
2014-06-22 07:10:42 -04:00
margin: 0;
padding: (@line-height-computed / 4) 0;
position: absolute;
top: 32px;
bottom: 0;
left: 0;
right: 0;
overflow-y: scroll;
2014-02-12 05:23:40 -05:00
2014-06-21 17:20:37 -04:00
ul {
margin-left: (@line-height-computed / 2);
2014-06-06 09:42:34 -04:00
}
2014-06-21 17:20:37 -04:00
li {
line-height: 2.6;
2014-02-12 05:23:40 -05:00
2014-06-21 17:20:37 -04:00
.entity-name {
color: @gray-dark;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover {
background-color: @gray-lightest;
}
2014-06-22 15:08:56 -04:00
input {
line-height: 1.6;
}
2014-06-23 05:57:31 -04:00
&.droppable-hover {
background-color: @file-tree-droppable-background-color;
}
}
2014-06-21 17:20:37 -04:00
i.fa-folder-open, i.fa-folder {
color: lighten(desaturate(@link-color, 10%), 5%);
font-size: 14px;
}
2014-06-21 17:20:37 -04:00
i.fa-file, i.fa-image {
color: @gray-light;
font-size: 14px;
2014-03-27 09:02:34 -04:00
}
2014-06-21 17:20:37 -04:00
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;
}
2014-06-23 07:37:05 -04:00
padding-right: 32px;
}
}
.dropdown {
position: absolute;
right: 0;
> a {
padding: 0 12px;
2014-06-21 17:20:37 -04:00
}
}
2014-06-23 12:25:45 -04:00
.context-menu {
position: fixed;
z-index: 100;
}
}
}
2014-06-23 05:57:31 -04:00
ul.droppable-hover {
background-color: @file-tree-droppable-background-color;
}
2014-06-21 17:20:37 -04:00
}
2014-02-12 05:23:40 -05:00
2014-06-24 11:33:36 -04:00
#ide-body {
2014-06-24 15:28:53 -04:00
.full-size;
2014-06-24 11:33:36 -04:00
top: 40px;
}
2014-06-24 10:31:44 -04:00
#editor {
2014-06-24 15:28:53 -04:00
.full-size;
2014-06-24 10:31:44 -04:00
}
2014-06-24 12:50:59 -04:00
.loading {
2014-06-24 15:28:53 -04:00
.full-size;
2014-06-24 12:50:59 -04:00
padding-top: 10rem;
font-family: @font-family-serif;
text-align: center;
background-color: #fafafa;
}
2014-06-24 10:31:44 -04:00
// The internal components of the aceEditor directive
.ace-editor-wrapper {
2014-06-24 15:28:53 -04:00
.full-size;
2014-06-24 10:31:44 -04:00
.undo-conflict-warning {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 10;
}
.ace-editor-body {
width: 100%;
height: 100%;
}
}
2014-06-21 17:20:37 -04:00
.ui-layout-resizer {
width: 6px;
background-color: #f4f4f4;
2014-06-24 10:31:44 -04:00
border-left: 1px solid @toolbar-border-color;
border-right: 1px solid @toolbar-border-color;
2014-06-21 17:20:37 -04:00
.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;
2014-02-12 05:23:40 -05:00
&:hover {
2014-06-21 17:20:37 -04:00
background-color: #ddd;
2014-02-12 05:23:40 -05:00
color: #333;
}
}
}
2014-06-21 17:20:37 -04:00
.ui-layout-resizer-west.ui-layout-resizer-open, .ui-layout-resizer-east.ui-layout-resizer-closed {
.ui-layout-toggler {
&:before {
content: "\f104"
2014-02-12 05:23:40 -05:00
}
}
}
2014-06-21 17:20:37 -04:00
.ui-layout-resizer-east.ui-layout-resizer-open, .ui-layout-resizer-west.ui-layout-resizer-closed {
.ui-layout-toggler {
&:before {
content: "\f105"
2014-02-12 05:23:40 -05:00
}
}
}
2014-06-21 17:20:37 -04:00
.ui-layout-resizer-dragging {
2014-02-12 05:23:40 -05:00
background-color: #ddd;
2014-06-24 15:28:53 -04:00
}
#left-menu {
position: absolute;
width: 210px;
padding: 10px;
top: 0;
bottom: 0;
background-color: #f4f4f4;
z-index: 100;
overflow: auto;
-webkit-transition: left ease-in-out 0.35s;
transition: left ease-in-out 0.35s;
left: -280px;
&.shown {
left: 0;
}
h4 {
font-family: @font-family-serif;
font-weight: 400;
font-size: 1rem;
margin: (@line-height-computed / 2) 0;
padding-bottom: (@line-height-computed / 4);
color: @gray-light;
border-bottom: 1px solid @gray-light;
text-transform: uppercase;
}
}
#left-menu-mask {
.full-size;
opacity: 0.4;
background-color: #999;
z-index: 99;
2014-06-21 17:20:37 -04:00
}