Skip to content

Commit f892356

Browse files
committed
compatibility CodeMirror
1 parent ff79c7a commit f892356

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

Dark/userchrome.css

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
--editor-heading-font-size: 1.1em; /* not used */
1212
--editor-code-color: greenyellow;
1313
--editor-text-in-brackets-color: #f9ee98; /* yellowish */
14+
--editor-text-in-parens-color: #dddddd; /* lightgrey */
1415
--editor-strong-color: salmon;
1516
--editor-emphasis-color: salmon;
1617
--editor-emphasis-font-style: italic;
1718
--editor-list-element-color: deepskyblue;
18-
--editor-checkbox-color: lightgrey; /* not used */
19+
--editor-checkbox-color: lightgrey;
20+
--editor-checkbox-checked-color: #FFCB6B; /* orange */
1921
}
2022
/* not used: to take effect the proper section must be uncommented */
2123

@@ -25,45 +27,73 @@
2527
/* font-weight: var(--editor-heading-font-weight); */
2628
/* font-size: var(--editor-heading-font-size); */
2729
}
30+
.cm-header {
31+
color: var(--editor-heading-color) !important;
32+
}
2833
/*---------------------------------------------------------------------------*/
2934

3035
/*------ Editor: inline code and codeblocks ---------------------------------*/
3136
.ace_support.ace_function {
3237
color: var(--editor-code-color) !important;
3338
}
39+
.cm-comment {
40+
color: var(--editor-code-color) !important;
41+
}
3442
/*---------------------------------------------------------------------------*/
3543

3644
/*------ Editor: text in brackets [ ] ---------------------------------------*/
3745
.ace_string {
3846
color: var(--editor-text-in-brackets-color) !important;
3947
}
48+
.cm-link-text {
49+
color: var(--editor-text-in-brackets-color) !important;
50+
}
51+
/*---------------------------------------------------------------------------*/
52+
53+
/*------ Editor: text/link in parens ( ) ------------ ----------------------*/
54+
.cm-string.cm-url {
55+
color: var(--editor-text-in-parens-color) !important;
56+
}
4057
/*---------------------------------------------------------------------------*/
4158

4259
/*------ Editor: strong -----------------------------------------------------*/
4360
.ace_string.ace_strong {
4461
color: var(--editor-strong-color) !important;
4562
}
63+
.cm-strong {
64+
color: var(--editor-strong-color) !important;
65+
}
4666
/*---------------------------------------------------------------------------*/
4767

4868
/*------ Editor: italics ----------------------------------------------------*/
4969
.ace_string.ace_emphasis {
5070
color: var(--editor-emphasis-color) !important;
5171
font-style: var(--editor-emphasis-font-style);
5272
}
73+
.cm-em {
74+
color: var(--editor-emphasis-color) !important;
75+
}
5376
/*---------------------------------------------------------------------------*/
5477

5578
/*------ Editor: list elements and checkbox elements ------------------------*/
5679
.ace_list {
5780
color: var(--editor-list-element-color) !important;
5881
}
82+
.cm-variable-2, .cm-variable-3, .cm-keyword {
83+
color: var(--editor-list-element-color) !important;
84+
}
5985
/*---------------------------------------------------------------------------*/
6086

6187
/*------ Editor: checkbox [ ] and [x] ---------------------------------------*/
62-
/*
6388
.ace_variable {
6489
color: var(--editor-checkbox-color) !important;
6590
}
66-
*/
91+
.cm-meta {
92+
color: var(--editor-checkbox-checked-color) !important;
93+
}
94+
.cm-property {
95+
color: var(--editor-checkbox-checked-color) !important;
96+
}
6797
/*---------------------------------------------------------------------------*/
6898

6999
/*------ Notebook and note list panes: Dim items ----------------------------*/

0 commit comments

Comments
 (0)