overleaf/services/web/public/stylesheets/app/editor.less
2014-06-27 12:45:37 +01:00

136 lines
2.4 KiB
Text

@import "./editor/file-tree.less";
@import "./editor/track-changes.less";
@import "./editor/toolbar.less";
@import "./editor/left-menu.less";
.full-size {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.global-alerts {
position: absolute;
z-index: 20;
top: (@line-height-computed / 4);
width: 400px;
left: 50%;
margin-left: -200px;
}
#ide-body {
.full-size;
top: 40px;
}
#editor {
.full-size;
}
.loading-panel {
.full-size;
padding-top: 10rem;
font-family: @font-family-serif;
text-align: center;
background-color: #fafafa;
}
.error-panel {
.full-size;
padding: @line-height-computed;
background-color: #fafafa;
.alert {
max-width: 400px;
margin: auto;
}
}
// The internal components of the aceEditor directive
.ace-editor-wrapper {
.full-size;
.undo-conflict-warning {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 10;
}
.ace-editor-body {
width: 100%;
height: 100%;
}
.spelling-highlight {
position: absolute;
background-image: url(/img/spellcheck-underline.png);
background-repeat: repeat-x;
background-position: bottom left;
}
.remote-cursor {
border-left: 2px solid transparent;
.nubbin {
height: 5px;
width: 5px;
position: absolute;
left: -2px;
}
}
.annotation-label {
padding: (@line-height-computed / 4) (@line-height-computed / 2);
font-size: 0.8rem;
z-index: 100;
font-family: @font-family-sans-serif;
color: white;
font-weight: 700;
}
.annotation {
position: absolute;
z-index: 2;
}
}
.ui-layout-resizer {
width: 6px;
background-color: #f4f4f4;
border-left: 1px solid @toolbar-border-color;
border-right: 1px solid @toolbar-border-color;
.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;
}
.context-menu {
position: fixed;
z-index: 100;
}