Correct the syntax in hero is-bold colour variants

While the prior syntax does produce valid css, it's not quite valid scss
and so produces warnings in various pre and post-processing pipelines
which various upstream consumers of Bulma may use.
This commit is contained in:
Ben Anderson 2024-12-19 10:36:30 +13:00
parent e23cfc1262
commit 0d11af2398
No known key found for this signature in database

View File

@ -122,9 +122,9 @@ $hero-colors: dv.$colors !default;
// Modifiers
&.#{iv.$class-prefix}is-bold {
$gradient-top-left: hsl(
calc(#{cv.getVar("hero-h")} - $hero-gradient-h-offset),
calc(#{cv.getVar("hero-s")} + $hero-gradient-s-offset),
calc(#{cv.getVar("hero-background-l")} + $hero-gradient-l-offset)
calc(#{cv.getVar("hero-h")} - #{$hero-gradient-h-offset}),
calc(#{cv.getVar("hero-s")} + #{$hero-gradient-s-offset}),
calc(#{cv.getVar("hero-background-l")} + #{$hero-gradient-l-offset})
);
$gradient-middle: hsl(
#{cv.getVar("hero-h")},
@ -132,9 +132,9 @@ $hero-colors: dv.$colors !default;
#{cv.getVar("hero-background-l")}
);
$gradient-bottom-right: hsl(
calc(#{cv.getVar("hero-h")} + $hero-gradient-h-offset),
calc(#{cv.getVar("hero-s")} - $hero-gradient-s-offset),
calc(#{cv.getVar("hero-background-l")} - $hero-gradient-l-offset)
calc(#{cv.getVar("hero-h")} + #{$hero-gradient-h-offset}),
calc(#{cv.getVar("hero-s")} - #{$hero-gradient-s-offset}),
calc(#{cv.getVar("hero-background-l")} - #{$hero-gradient-l-offset})
);
background-image: linear-gradient(