Skip to content

Commit 3882f4f

Browse files
committed
Updated editor styles
1 parent 93b6288 commit 3882f4f

1 file changed

Lines changed: 48 additions & 3 deletions

File tree

public/css/index.css

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ body {
2424
overflow-y: auto !important;
2525
}
2626
.CodeMirror-code {
27-
padding-bottom: 36px;
27+
/*padding-bottom: 36px;*/
28+
}
29+
.CodeMirror-gutter-elt {
30+
text-align: center;
2831
}
2932
.CodeMirror-linenumber {
30-
opacity: 0.5;
31-
width: 29px;
33+
/* opacity: 0.5;*/
34+
min-width: 1.5em;
35+
text-align: right;
3236
}
3337
.CodeMirror-matchingtag {
3438
background: rgba(255, 255, 255, .1);
@@ -38,9 +42,43 @@ body {
3842
color: #d0d0d0;
3943
text-shadow: none;
4044
font-family: Arial;
45+
font-size: 1em;
4146
line-height: .3;
4247
cursor: pointer;
4348
margin: 2px;
49+
padding-bottom: 2px;
50+
}
51+
.CodeMirror-foldgutter {
52+
/*width: 1em;*/
53+
cursor: default;
54+
line-height: 100%;
55+
}
56+
.CodeMirror-foldgutter-open,
57+
.CodeMirror-foldgutter-folded {
58+
line-height: 1em;
59+
cursor: pointer;
60+
}
61+
.CodeMirror-foldgutter-open {
62+
padding-top: 1px;
63+
}
64+
.CodeMirror-foldgutter-folded {
65+
padding-top: 2px;
66+
}
67+
.CodeMirror-foldgutter-open:after {
68+
content: "⌵";
69+
font-size: 1em;
70+
/* opacity: 0.5;*/
71+
}
72+
.CodeMirror-foldgutter-folded:after {
73+
content: "+";
74+
font-size: 1em;
75+
font-weight: 700;
76+
}
77+
.CodeMirror-foldmarker, .CodeMirror-foldgutter-folded:after {
78+
color: #78B2F2 !important;
79+
}
80+
.CodeMirror-sizer {
81+
margin-bottom: 0px !important;
4482
}
4583
.ui-content {
4684
height: 100%;
@@ -256,6 +294,13 @@ div[contenteditable]:empty:not(:focus):before{
256294

257295
.cm-trailing-space-new-line:before {
258296
content: '↵';
297+
}
298+
299+
.cm-matchhighlight {
300+
/* border-radius: 5px;*/
301+
/* box-shadow: 0 1px 0 0 #ccc;*/
302+
border-bottom: 1px solid #ccc;
303+
}
259304

260305
.status-bar {
261306
background: #1c1c1e;

0 commit comments

Comments
 (0)