Skip to content

Commit

Permalink
overwrite font styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Feb 25, 2023
1 parent a4db933 commit 7dcee32
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web_src/less/chroma/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ maintain the themes:
2. Output CSS styles (https://github.com/alecthomas/chroma/tree/master/styles)
* ./chroma --html-styles --style=github
* ./chroma --html-styles --style=github-dark
3. Remove unnecessary styles like ".bg"
4. Add the style name to the code
3. Remove unnecessary styles like ".bg", ".chroma { background-color }"
4. Add the style name to the code comment
*/

.chroma {
background-color: var(--color-code-bg);
}

// do not want to use any Chroma font style, overwrite them
.chroma * {
font-weight: normal !important;
font-style: normal !important;
text-decoration: none !important;
}

/* LineTableTD */
.chroma .lntd {
vertical-align: top;
Expand Down

0 comments on commit 7dcee32

Please sign in to comment.