File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ html[mode=dark] {
3939}
4040
4141.highlighter-rouge {
42- background : var (--highlight-bg-color );
42+ background-color : var (--highlight-bg-color );
4343 @extend %code-snippet-radius ;
4444 color : var (--highlighter-rouge-color );
4545 margin-bottom : 1.2em ; /* Override BS Inline-code style */
@@ -94,16 +94,21 @@ code {
9494 -moz-hyphens : none ;
9595 hyphens : none ;
9696 & .highlighter-rouge {
97- padding : 2 px 4 px ;
97+ padding : 3 px 5 px ;
9898 margin : 0 .15rem ;
9999 border-radius : 4px ;
100+ background-color : var (--inline-code-bg );
100101 }
101102 @at-root a >& .highlighter-rouge {
102103 padding-bottom : 0 ; // show link's underlinke
104+ color : inherit ;
103105 }
104106 @at-root a :hover >& .highlighter-rouge {
105107 border-bottom : none ;
106108 }
109+ blockquote & .highlighter-rouge {
110+ color : inherit ;
111+ }
107112}
108113
109114td .rouge-code {
Original file line number Diff line number Diff line change 8383 --highlight-lineno-color : #6c6c6d ;
8484 --highlight-lineno-border-color : #3c4042 ;
8585
86+ --inline-code-bg : var (--highlight-bg-color );
87+
8688 .highlight {
8789 .gp { color : #818c96 ; }
8890 }
Original file line number Diff line number Diff line change 7676 --highlight-lineno-color : #c2c6cc ;
7777 --highlight-lineno-border-color : #e9ecef ;
7878
79+ --inline-code-bg : #f3f3f3 ;
7980} // light-syntax
You can’t perform that action at this time.
0 commit comments