mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
a9c29b1641
Solve the problem of losing the default background color of the "mark" tag
19 lines
527 B
SCSS
19 lines
527 B
SCSS
@use "sass:meta";
|
|
@use "sass:string";
|
|
@use "variables" as *;
|
|
|
|
/// Get CSS variable with prefix
|
|
/// @param {String} $name - CSS variable name (without prefix)
|
|
/// @param {*} $fallback - Optional fallback value
|
|
/// @return {String} - Complete CSS variable reference
|
|
/// @example
|
|
/// color: fi-var(global-font-color);
|
|
/// background: fi-var(custom-bg, #fff);
|
|
@function fi-var($name, $fallback: null) {
|
|
@if $fallback != null {
|
|
@return var(#{$rootPrefix}#{$name}, $fallback);
|
|
}
|
|
|
|
@return var(#{$rootPrefix}#{$name});
|
|
}
|