2016-05-11 04:22:32 +02:00
|
|
|
.CodeMirror {
|
2016-09-14 19:03:51 +02:00
|
|
|
@include themify() {
|
|
|
|
border: 1px solid getThemifyVariable('ide-border-color');
|
|
|
|
}
|
|
|
|
font-family: Inconsolata, monospace;
|
|
|
|
height: 100%;
|
2016-05-11 04:22:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumbers {
|
|
|
|
padding-right: #{10 / $base-font-size}rem;
|
2016-12-19 23:07:04 +01:00
|
|
|
|
2016-05-11 04:22:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber {
|
2016-12-19 23:07:04 +01:00
|
|
|
width: #{32 / $base-font-size}rem;
|
2017-10-11 23:31:23 +02:00
|
|
|
left: #{-3 / $base-font-size}rem !important;
|
2016-12-19 23:07:04 +01:00
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('inactive-text-color');
|
|
|
|
}
|
2016-05-11 04:22:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-lines {
|
2017-10-11 23:31:23 +02:00
|
|
|
padding-top: #{25 / $base-font-size}rem;
|
2016-05-13 00:29:38 +02:00
|
|
|
}
|
|
|
|
|
2017-10-11 23:31:23 +02:00
|
|
|
pre.CodeMirror-line {
|
2016-06-20 20:58:15 +02:00
|
|
|
padding-left: #{5 / $base-font-size}rem;
|
|
|
|
}
|
2016-07-13 01:11:07 +02:00
|
|
|
|
|
|
|
.CodeMirror-gutter-wrapper {
|
|
|
|
right: 100%;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-lint-marker-warning, .CodeMirror-lint-marker-error, .CodeMirror-lint-marker-multiple {
|
|
|
|
background-image: none;
|
2018-10-10 23:40:47 +02:00
|
|
|
width: #{49 / $base-font-size}rem;
|
2016-07-13 01:11:07 +02:00
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
2017-10-12 22:19:18 +02:00
|
|
|
right: 100%;
|
2016-07-13 01:11:07 +02:00
|
|
|
}
|
|
|
|
|
2016-07-13 01:24:57 +02:00
|
|
|
.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {
|
|
|
|
background-image: none;
|
|
|
|
padding-left: inherit;
|
|
|
|
}
|
|
|
|
|
2016-07-13 01:11:07 +02:00
|
|
|
.CodeMirror-lint-marker-warning {
|
|
|
|
background-color: rgb(255, 190, 5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-lint-marker-error {
|
|
|
|
background-color: rgb(255, 95, 82);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-gutter-elt:not(.CodeMirror-linenumber) {
|
|
|
|
opacity: 0.3;
|
2018-10-10 23:40:47 +02:00
|
|
|
width: #{49 / $base-font-size}rem !important;
|
2016-07-13 01:11:07 +02:00
|
|
|
height: 100%;
|
2018-10-10 23:40:47 +02:00
|
|
|
left: 49px !important;
|
2016-07-13 01:11:07 +02:00
|
|
|
// background-color: rgb(255, 95, 82);
|
|
|
|
}
|
2016-07-13 01:24:57 +02:00
|
|
|
|
|
|
|
.CodeMirror-lint-tooltip {
|
2016-09-14 19:03:51 +02:00
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('modal-background-color');
|
|
|
|
border: 1px solid getThemifyVariable('modal-border-color');
|
|
|
|
box-shadow: 0 12px 12px getThemifyVariable('shadow-color');
|
2016-09-22 00:52:44 +02:00
|
|
|
color: getThemifyVariable('primary-text-color');
|
2016-09-14 19:03:51 +02:00
|
|
|
}
|
2016-07-21 21:07:53 +02:00
|
|
|
border-radius: 2px;
|
2016-12-14 16:41:50 +01:00
|
|
|
font-family: Montserrat, sans-serif;
|
2016-07-13 01:24:57 +02:00
|
|
|
}
|
2016-09-07 22:33:01 +02:00
|
|
|
|
2016-09-22 00:52:44 +02:00
|
|
|
.CodeMirror-gutters {
|
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('editor-gutter-color');
|
|
|
|
border-color: getThemifyVariable('ide-border-color');
|
|
|
|
}
|
2016-10-05 18:26:49 +02:00
|
|
|
// left: 0 !important;
|
2016-12-19 23:07:04 +01:00
|
|
|
width: #{48 / $base-font-size}rem;
|
2016-07-13 01:24:57 +02:00
|
|
|
}
|
2016-09-07 22:33:01 +02:00
|
|
|
|
2017-06-06 21:20:21 +02:00
|
|
|
/*
|
|
|
|
Search dialog
|
|
|
|
*/
|
|
|
|
|
|
|
|
.CodeMirror-dialog {
|
2017-07-28 17:38:47 +02:00
|
|
|
position: fixed;
|
2017-06-06 21:20:21 +02:00
|
|
|
top: 0;
|
2017-07-28 17:38:47 +02:00
|
|
|
left: 50%;
|
|
|
|
margin-left: - #{365/2/$base-font-size}rem;
|
2017-06-06 21:20:21 +02:00
|
|
|
|
|
|
|
z-index: 10;
|
|
|
|
|
2017-07-28 17:38:47 +02:00
|
|
|
width: 100%;
|
|
|
|
max-width: #{365 / $base-font-size}rem;
|
2017-06-06 21:20:21 +02:00
|
|
|
|
|
|
|
font-family: Montserrat, sans-serif;
|
|
|
|
|
|
|
|
padding: #{14 / $base-font-size}rem #{20 / $base-font-size}rem #{14 / $base-font-size}rem #{18 / $base-font-size}rem;
|
|
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('modal-background-color');
|
|
|
|
box-shadow: 0 12px 12px 0 getThemifyVariable('shadow-color');
|
|
|
|
border: solid 0.5px getThemifyVariable('modal-border-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-title {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: #{12 / $base-font-size}rem;
|
|
|
|
|
|
|
|
font-size: #{21 / $base-font-size}rem;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-field {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: #{12 / $base-font-size}rem;
|
2017-07-28 17:38:47 +02:00
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('search-background-color');
|
|
|
|
border: solid 0.5px getThemifyVariable('button-border-color');
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
background-color: $white;
|
|
|
|
}
|
2017-06-06 21:20:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-count {
|
|
|
|
display: block;
|
|
|
|
height: #{20 / $base-font-size}rem;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-actions {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
*/
|
|
|
|
.CodeMirror-search-modifiers {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-regexp-button,
|
|
|
|
.CodeMirror-case-button,
|
|
|
|
.CodeMirror-word-button {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
|
|
|
margin-left: #{10 / $base-font-size}rem;
|
|
|
|
|
|
|
|
word-break: keep-all;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('inactive-text-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-regexp-button .label,
|
|
|
|
.CodeMirror-case-button .label,
|
|
|
|
.CodeMirror-word-button .label {
|
|
|
|
@extend %hidden-element;
|
|
|
|
}
|
|
|
|
|
|
|
|
[aria-checked="true"] {
|
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('primary-text-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Previous / Next buttons
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Visually hide button text
|
|
|
|
.CodeMirror-search-button .label {
|
|
|
|
@extend %hidden-element;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-button {
|
|
|
|
margin-right: #{10 / $base-font-size}rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-search-button::after {
|
|
|
|
display: block;
|
|
|
|
content: ' ';
|
|
|
|
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2017-06-06 21:20:21 +02:00
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Previous button
|
|
|
|
.CodeMirror-search-button.prev::after {
|
|
|
|
background-image: url(../images/up-arrow.svg)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Next button
|
|
|
|
.CodeMirror-search-button.next::after {
|
|
|
|
background-image: url(../images/down-arrow.svg)
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Close button
|
|
|
|
*/
|
|
|
|
.CodeMirror-close-button {
|
|
|
|
position: absolute;
|
|
|
|
top: #{14 / $base-font-size}rem;
|
|
|
|
right: #{18 / $base-font-size}rem;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Visually hide button text
|
|
|
|
.CodeMirror-close-button .label {
|
|
|
|
@extend %hidden-element;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-close-button:after {
|
|
|
|
display: block;
|
|
|
|
content: ' ';
|
|
|
|
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
margin-left: #{8 / $base-font-size}rem;
|
|
|
|
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2017-06-06 21:20:21 +02:00
|
|
|
|
|
|
|
background: transparent url(../images/exit.svg) no-repeat;
|
|
|
|
}
|
|
|
|
|
2019-03-04 21:38:14 +01:00
|
|
|
// foldgutter
|
|
|
|
.CodeMirror-foldmarker {
|
|
|
|
text-shadow: -1px 0 #ed225d, 0 1px #ed225d, 1px 0 #ed225d, 0 -1px #ed225d;
|
|
|
|
color: #FFF;
|
|
|
|
/* background-color: rgba(237, 34, 93, 0.42); */
|
|
|
|
/* border-radius: 3px; */
|
|
|
|
font-weight: bold;
|
|
|
|
font-family: arial;
|
|
|
|
line-height: .3;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
.CodeMirror-foldgutter {
|
|
|
|
width: 2.7em;
|
|
|
|
}
|
|
|
|
.CodeMirror-foldgutter-open,
|
|
|
|
.CodeMirror-foldgutter-folded {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-bottom: 0.4em;
|
|
|
|
text-align: right;
|
|
|
|
line-height: 1.0;
|
|
|
|
}
|
|
|
|
.CodeMirror-foldgutter-open:after {
|
|
|
|
content: "\25BE";
|
|
|
|
}
|
|
|
|
.CodeMirror-foldgutter-folded:after {
|
|
|
|
content: "\25B8";
|
|
|
|
}
|
|
|
|
|
2018-10-15 23:45:31 +02:00
|
|
|
.CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded {
|
|
|
|
position: absolute;
|
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
|
2017-10-11 23:31:23 +02:00
|
|
|
.CodeMirror-foldgutter-open:after {
|
2017-10-12 20:22:17 +02:00
|
|
|
@include themify() {
|
|
|
|
background-image: getThemifyVariable('codefold-icon-open');
|
|
|
|
}
|
2017-10-11 23:31:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-foldgutter-folded:after {
|
2017-10-12 20:22:17 +02:00
|
|
|
@include themify() {
|
|
|
|
background-image: getThemifyVariable('codefold-icon-closed');
|
|
|
|
}
|
2017-10-11 23:31:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-foldgutter-folded:after,
|
|
|
|
.CodeMirror-foldgutter-open:after {
|
|
|
|
background-size: 10px 10px;
|
|
|
|
content: "";
|
|
|
|
padding-left: 15px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-foldmarker {
|
|
|
|
text-shadow: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
opacity: 1;
|
|
|
|
font-weight: normal;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 0.85em;
|
|
|
|
line-height: 0.7;
|
|
|
|
padding: 0 #{5 / $base-font-size}rem;
|
|
|
|
font-family: serif;
|
|
|
|
}
|
|
|
|
|
2017-10-12 23:13:27 +02:00
|
|
|
|
|
|
|
.line-runtime-error + .CodeMirror-activeline-gutter {
|
|
|
|
background-color: rgb(255, 95, 82);
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-runtime-error {
|
|
|
|
background-color: rgb(255, 95, 82) !important;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
2017-01-05 20:40:04 +01:00
|
|
|
.editor-holder {
|
|
|
|
height: calc(100% - #{29 / $base-font-size}rem);
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
2019-06-12 23:11:35 +02:00
|
|
|
&.editor-holder--hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-01-05 20:40:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.editor__header {
|
|
|
|
height: #{29 / $base-font-size}rem;
|
|
|
|
}
|
2016-12-19 23:07:04 +01:00
|
|
|
|
2016-09-07 22:33:01 +02:00
|
|
|
.editor__options-button {
|
2017-06-26 23:46:47 +02:00
|
|
|
@include icon();
|
2016-09-07 22:33:01 +02:00
|
|
|
position: absolute;
|
2016-12-19 23:19:07 +01:00
|
|
|
top: #{10 / $base-font-size}rem;
|
|
|
|
right: #{2 / $base-font-size}rem;
|
2016-09-07 22:33:01 +02:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2016-12-19 23:07:04 +01:00
|
|
|
|
2016-09-07 22:33:01 +02:00
|
|
|
.editor__options {
|
|
|
|
display: none;
|
|
|
|
@extend %modal;
|
|
|
|
position: absolute;
|
2016-12-20 06:21:04 +01:00
|
|
|
right: #{0 / $base-font-size}rem;
|
|
|
|
padding: #{8 / $base-font-size}rem #{20 / $base-font-size}rem;
|
|
|
|
font-size: #{12 / $base-font-size}rem;
|
|
|
|
@include themify() {
|
|
|
|
background-color: getThemifyVariable('modal-background-color');
|
|
|
|
box-shadow: 0 0 18px getThemifyVariable('shadow-color');
|
|
|
|
}
|
2016-09-07 22:33:01 +02:00
|
|
|
.editor--options & {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-09-12 07:31:30 +02:00
|
|
|
}
|
|
|
|
|
2016-12-20 06:21:04 +01:00
|
|
|
.editor__options li {
|
|
|
|
padding: #{4 / $base-font-size}rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor__options a {
|
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('secondary-text-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-09 18:52:14 +01:00
|
|
|
.editor__file-name {
|
|
|
|
@include themify() {
|
2016-12-19 23:07:04 +01:00
|
|
|
color: getThemifyVariable('secondary-text-color');
|
2016-11-09 18:52:14 +01:00
|
|
|
}
|
2016-12-19 23:07:04 +01:00
|
|
|
height: #{29 / $base-font-size}rem;
|
2016-12-19 23:19:07 +01:00
|
|
|
padding-top: #{7 / $base-font-size}rem;
|
|
|
|
padding-left: #{56 / $base-font-size}rem;
|
2016-11-09 18:52:14 +01:00
|
|
|
font-size: #{12 / $base-font-size}rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2016-09-12 07:31:30 +02:00
|
|
|
}
|