Skip to content

Commit d54ca93

Browse files
committed
userchrome.css: use css variables
1 parent a971753 commit d54ca93

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

Dark/userchrome.css

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,55 @@
55
* which is defined in `userstyle.css`) *
66
*****************************************************************************/
77

8+
:root {
9+
--editor-heading-color: cyan;
10+
--editor-heading-font-weight: bold; /* not used */
11+
--editor-heading-font-size: 1.1em; /* not used */
12+
--editor-code-color: greenyellow;
13+
--editor-text-in-brackets-color: #f9ee98; /* yellow-ish */
14+
--editor-strong-color: salmon;
15+
--editor-emphasis-color: salmon;
16+
--editor-emphasis-font-style: italic;
17+
--editor-list-element-color: deepskyblue;
18+
}
19+
/* not used means it needs to be uncommented in the proper section */
20+
821
/*------ Editor: Headings ---------------------------------------------------*/
922
.ace_heading {
10-
color: cyan !important;
11-
/* font-weight: bold; */
12-
/*font-size: 1.1em;*/
23+
color: var(--editor-heading-color) !important;
24+
/* font-weight: var(--editor-heading-font-weight); */
25+
/* font-size: var(--editor-heading-font-size); */
1326
}
1427
/*---------------------------------------------------------------------------*/
1528

1629
/*------ Editor: inline code and codeblocks ---------------------------------*/
1730
.ace_support.ace_function {
18-
color: greenyellow !important;
31+
color: var(--editor-code-color) !important;
1932
}
2033
/*---------------------------------------------------------------------------*/
2134

2235
/*------ Editor: text in brackets [ ] ---------------------------------------*/
2336
.ace_string {
24-
color: #f9ee98 !important; /* yellow-ish */
37+
color: var(--editor-text-in-brackets-color) !important;
2538
}
2639
/*---------------------------------------------------------------------------*/
2740

2841
/*------ Editor: strong -----------------------------------------------------*/
2942
.ace_string.ace_strong {
30-
color: salmon !important;
43+
color: var(--editor-strong-color) !important;
3144
}
3245
/*---------------------------------------------------------------------------*/
3346

3447
/*------ Editor: italics ----------------------------------------------------*/
3548
.ace_string.ace_emphasis {
36-
color: salmon !important;
37-
font-style: italic;
49+
color: var(--editor-emphasis-color) !important;
50+
font-style: var(--editor-emphasis-font-style);
3851
}
3952
/*---------------------------------------------------------------------------*/
4053

4154
/*------ Editor: list elements and checkbox elements ------------------------*/
4255
.ace_list {
43-
color: deepskyblue !important;
56+
color: var(--editor-list-element-color) !important;
4457
}
4558
/*---------------------------------------------------------------------------*/
4659

0 commit comments

Comments
 (0)