mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
f2b6218edc
reference issues: #312, #476
30 lines
847 B
SCSS
30 lines
847 B
SCSS
/**
|
|
* Code syntax highlighting for Chroma
|
|
*
|
|
* To generate syntax highlighting styles from the command line,
|
|
* See https://gohugo.io/quick-reference/syntax-highlighting-styles/#styles
|
|
* For example:
|
|
* hugo gen chromastyles --style=github > assets/css/_partials/_code-syntax/light.scss
|
|
* hugo gen chromastyles --style=github-dark > assets/css/_partials/_code-syntax/dark.scss
|
|
*/
|
|
.highlight {
|
|
/* LineLink */
|
|
.lnlinks {
|
|
outline: none;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
/* LineHighlight */
|
|
.hl {
|
|
display: block;
|
|
background-color: var(#{$rootPrefix}code-highlight-color);
|
|
box-shadow: -0.75rem 0 0 var(#{$rootPrefix}code-highlight-color), 0.75rem 0 0 var(#{$rootPrefix}code-highlight-color);
|
|
}
|
|
|
|
@import '../_code-syntax/light';
|
|
|
|
[data-theme='dark'] & {
|
|
@import '../_code-syntax/dark';
|
|
}
|
|
}
|