mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 07:18:57 +00:00
dd6d320654
* 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
34 lines
1.1 KiB
SCSS
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');
|
|
}
|
|
}
|