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
11 lines
412 B
SCSS
11 lines
412 B
SCSS
@use "sass:string";
|
|
|
|
/// Build an rgba-like color from any source color expression.
|
|
/// @param {Color | String} $color - Source color, supports CSS vars such as fi-var(secondary).
|
|
/// @param {Number} $alpha [1] - Alpha channel value in range 0..1.
|
|
/// @example
|
|
/// color: fi-rgba(fi-var(secondary), 0.2);
|
|
@function rgba($color, $alpha: 1) {
|
|
@return string.unquote("rgb(from #{$color} r g b / #{$alpha})");
|
|
}
|