Skip to content

Commit

Permalink
some clean up on editor
Browse files Browse the repository at this point in the history
  • Loading branch information
farzindev committed Apr 7, 2021
1 parent 600fb4c commit a55a944
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 251 deletions.
2 changes: 1 addition & 1 deletion src/Blogifier.Admin/wwwroot/admin/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Blogifier.Admin/wwwroot/admin/css/app.css.map

Large diffs are not rendered by default.

19 changes: 1 addition & 18 deletions src/Blogifier.Admin/wwwroot/admin/scss/include/_codemirror.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
.CodeMirror {
font-family: monospace;
direction: ltr;
// height: 300px;
// color: #000;

&-cursor {
width: 1px;
background-color: #000;
}
}

// if (indentWithTabs: false) is set true.
.cm-tab {
display: inline-block;
text-decoration: inherit;
}


// theme
.cm-header,
.cm-strong {
font-weight: 500;
Expand Down Expand Up @@ -129,17 +124,12 @@
.CodeMirror-gutter-wrapper ::selection {
background-color: transparent;
}
.CodeMirror-gutter-wrapper ::-moz-selection {
background-color: transparent;
}
.CodeMirror-lines {
cursor: text;
min-height: 1px;
}
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
border-width: 0;
background: 0 0;
Expand All @@ -153,8 +143,6 @@
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre.CodeMirror-line,
Expand Down Expand Up @@ -187,7 +175,6 @@
.CodeMirror-linenumber,
.CodeMirror-scroll,
.CodeMirror-sizer {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.CodeMirror-measure {
Expand Down Expand Up @@ -229,11 +216,7 @@ div.CodeMirror-dragcursors {
.CodeMirror-line > span > span::selection {
background: #d7d4f0;
}
.CodeMirror-line::-moz-selection,
.CodeMirror-line > span::-moz-selection,
.CodeMirror-line > span > span::-moz-selection {
background: #d7d4f0;
}

.cm-searching {
background-color: #ffa;
background-color: rgba(255, 255, 0, 0.4);
Expand Down
Loading

0 comments on commit a55a944

Please sign in to comment.