Files
FixIt/assets/scss/pages/single/code-syntax/_index.scss
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

34 lines
1.1 KiB
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/scss/pages/single/code-syntax/_light.scss
// hugo gen chromastyles --style=github-dark > assets/scss/pages/single/code-syntax/_dark.scss
// ====================================================================================================
@use "sass:meta";
@use "core/functions" as *;
@use "core/mixins" as *;
.single .highlight {
/* LineLink */
.lnlinks {
outline: none;
text-decoration: none;
color: inherit;
}
/* LineHighlight */
.hl {
display: block;
background-color: fi-var(code-highlight-color);
box-shadow: -0.75rem 0 0 fi-var(code-highlight-color), 0.75rem 0 0 fi-var(code-highlight-color);
}
@include meta.load-css('light');
@include dark-mode {
@include meta.load-css('dark');
}
}