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

238 lines
4.3 KiB
Text
Raw Normal View History

2014-06-26 15:39:52 +00:00
@import "./editor/file-tree.less";
@import "./editor/track-changes.less";
@import "./editor/toolbar.less";
@import "./editor/left-menu.less";
2014-06-28 12:25:06 +00:00
@import "./editor/pdf.less";
2014-07-01 13:12:28 +00:00
@import "./editor/share.less";
2014-07-02 14:56:09 +00:00
@import "./editor/chat.less";
2014-07-03 16:05:50 +00:00
@import "./editor/binary-file.less";
2014-07-10 16:27:19 +00:00
@import "./editor/search.less";
2014-07-15 16:56:09 +00:00
@import "./editor/publish-template.less";
2014-07-17 14:25:22 +00:00
@import "./editor/online-users.less";
2014-07-22 13:38:32 +00:00
@import "./editor/hotkeys.less";
2014-06-26 15:39:52 +00:00
2014-06-24 19:28:53 +00:00
.full-size {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
2014-06-24 15:33:36 +00:00
.global-alerts {
position: absolute;
z-index: 20;
2014-07-02 15:41:29 +00:00
top: 2px;
2014-06-24 15:33:36 +00:00
width: 400px;
left: 50%;
margin-left: -200px;
2014-07-02 15:41:29 +00:00
.alert {
padding: (@line-height-computed / 4);
font-size: 14px;
margin-bottom: (@line-height-computed / 4);
}
2014-06-24 15:33:36 +00:00
}
#chat-wrapper {
.full-size;
> .ui-layout-resizer > .ui-layout-toggler {
display: none !important;
}
}
2014-06-24 15:33:36 +00:00
#ide-body {
2014-06-24 19:28:53 +00:00
.full-size;
2014-06-24 15:33:36 +00:00
top: 40px;
}
2014-06-24 14:31:44 +00:00
#editor {
2014-06-24 19:28:53 +00:00
.full-size;
2014-06-26 16:25:25 +00:00
}
2014-06-24 14:31:44 +00:00
2014-07-10 12:41:54 +00:00
.loading-screen {
2014-07-29 10:25:26 +00:00
h3 {
padding-top: 136px;
background-image: url(/img/lion-128.png);
background-repeat: no-repeat;
background-position: top center;
}
2014-07-10 12:41:54 +00:00
.full-size;
2014-07-10 12:45:48 +00:00
background-color: #fafafa;
2014-07-10 12:41:54 +00:00
.container {
text-align: center;
position: absolute;
2014-07-29 10:25:26 +00:00
top: 50%;
2014-07-10 12:41:54 +00:00
left: 50%;
width: 400px;
margin-left: -200px;
2014-07-30 14:44:03 +00:00
margin-top: -200px;
2014-07-10 12:41:54 +00:00
}
}
2014-06-27 11:45:37 +00:00
.loading-panel {
2014-06-26 16:25:25 +00:00
.full-size;
padding-top: 10rem;
font-family: @font-family-serif;
text-align: center;
background-color: #fafafa;
2014-06-24 16:50:59 +00:00
}
2014-06-27 11:45:37 +00:00
.error-panel {
.full-size;
padding: @line-height-computed;
background-color: #fafafa;
.alert {
max-width: 400px;
margin: auto;
}
}
2014-07-03 15:18:49 +00:00
.project-name {
.name {
display: inline-block;
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
padding: 6px;
color: @gray;
font-weight: 700;
white-space: nowrap;
}
input {
height: 30px;
margin-top: 4px;
text-align: center;
padding: 6px;
font-weight: 700;
}
a.rename {
visibility: hidden;
}
&:hover {
a.rename {
visibility: visible;
}
}
}
2014-06-24 14:31:44 +00:00
// The internal components of the aceEditor directive
.ace-editor-wrapper {
2014-06-24 19:28:53 +00:00
.full-size;
2014-06-24 14:31:44 +00:00
.undo-conflict-warning {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 10;
}
.ace-editor-body {
width: 100%;
height: 100%;
}
2014-06-25 15:06:04 +00:00
.spelling-highlight {
position: absolute;
background-image: url(/img/spellcheck-underline.png);
background-repeat: repeat-x;
background-position: bottom left;
}
2014-06-25 17:17:17 +00:00
.remote-cursor {
2014-06-30 13:01:39 +00:00
position: absolute;
2014-06-26 10:19:05 +00:00
border-left: 2px solid transparent;
2014-06-25 17:17:17 +00:00
.nubbin {
2014-06-26 10:19:05 +00:00
height: 5px;
width: 5px;
2014-06-25 17:17:17 +00:00
position: absolute;
2014-06-26 10:19:05 +00:00
left: -2px;
2014-06-25 17:17:17 +00:00
}
}
2014-06-26 10:19:05 +00:00
.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;
white-space: nowrap;
2014-06-26 10:19:05 +00:00
}
2014-06-27 11:45:37 +00:00
.annotation {
position: absolute;
z-index: 2;
}
.highlights-before-label {
position: absolute;
top: @line-height-computed / 2;
right: @line-height-computed;
}
.highlights-after-label {
position: absolute;
bottom: @line-height-computed / 2;
right: @line-height-computed;
}
2014-06-24 14:31:44 +00:00
}
2014-06-21 21:20:37 +00:00
.ui-layout-resizer {
width: 6px;
background-color: #f4f4f4;
2014-06-24 14:31:44 +00:00
border-left: 1px solid @toolbar-border-color;
border-right: 1px solid @toolbar-border-color;
2014-06-21 21:20:37 +00: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 10:23:40 +00:00
&:hover {
2014-06-21 21:20:37 +00:00
background-color: #ddd;
2014-02-12 10:23:40 +00:00
color: #333;
}
}
}
2014-06-21 21:20:37 +00: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 10:23:40 +00:00
}
}
}
2014-06-21 21:20:37 +00: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 10:23:40 +00:00
}
}
}
2014-06-21 21:20:37 +00:00
.ui-layout-resizer-dragging {
2014-02-12 10:23:40 +00:00
background-color: #ddd;
2014-06-24 19:28:53 +00:00
}
2014-06-25 15:06:04 +00:00
.context-menu {
position: fixed;
z-index: 100;
}
.editor-dark {
color: @gray-lighter;
background-color: @editor-dark-background-color;
.ui-layout-resizer {
background-color: darken(@editor-dark-background-color, 10%);
border: none;
}
.btn-default {
color: white;
background-color: @gray;
border-color: darken(@gray-dark, 10%);
&:hover {
background-color: darken(@gray, 5%);
border-color: darken(@gray-dark, 20%);
}
}
}