Skip to content

Commit 7dcee32

Browse files
committed
overwrite font styles
1 parent a4db933 commit 7dcee32

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

web_src/less/chroma/base.less

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ maintain the themes:
44
2. Output CSS styles (https://github.com/alecthomas/chroma/tree/master/styles)
55
* ./chroma --html-styles --style=github
66
* ./chroma --html-styles --style=github-dark
7-
3. Remove unnecessary styles like ".bg"
8-
4. Add the style name to the code
7+
3. Remove unnecessary styles like ".bg", ".chroma { background-color }"
8+
4. Add the style name to the code comment
99
*/
1010

1111
.chroma {
1212
background-color: var(--color-code-bg);
1313
}
1414

15+
// do not want to use any Chroma font style, overwrite them
16+
.chroma * {
17+
font-weight: normal !important;
18+
font-style: normal !important;
19+
text-decoration: none !important;
20+
}
21+
1522
/* LineTableTD */
1623
.chroma .lntd {
1724
vertical-align: top;

0 commit comments

Comments
 (0)