Skip to content

Commit 0d11af2

Browse files
committed
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.
1 parent e23cfc1 commit 0d11af2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sass/layout/hero.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ $hero-colors: dv.$colors !default;
122122
// Modifiers
123123
&.#{iv.$class-prefix}is-bold {
124124
$gradient-top-left: hsl(
125-
calc(#{cv.getVar("hero-h")} - $hero-gradient-h-offset),
126-
calc(#{cv.getVar("hero-s")} + $hero-gradient-s-offset),
127-
calc(#{cv.getVar("hero-background-l")} + $hero-gradient-l-offset)
125+
calc(#{cv.getVar("hero-h")} - #{$hero-gradient-h-offset}),
126+
calc(#{cv.getVar("hero-s")} + #{$hero-gradient-s-offset}),
127+
calc(#{cv.getVar("hero-background-l")} + #{$hero-gradient-l-offset})
128128
);
129129
$gradient-middle: hsl(
130130
#{cv.getVar("hero-h")},
131131
#{cv.getVar("hero-s")},
132132
#{cv.getVar("hero-background-l")}
133133
);
134134
$gradient-bottom-right: hsl(
135-
calc(#{cv.getVar("hero-h")} + $hero-gradient-h-offset),
136-
calc(#{cv.getVar("hero-s")} - $hero-gradient-s-offset),
137-
calc(#{cv.getVar("hero-background-l")} - $hero-gradient-l-offset)
135+
calc(#{cv.getVar("hero-h")} + #{$hero-gradient-h-offset}),
136+
calc(#{cv.getVar("hero-s")} - #{$hero-gradient-s-offset}),
137+
calc(#{cv.getVar("hero-background-l")} - #{$hero-gradient-l-offset})
138138
);
139139

140140
background-image: linear-gradient(

0 commit comments

Comments
 (0)