Skip to content

Commit 768e540

Browse files
committed
Be explicit in the color we are mixing
Add comment about using own bootstrap defaults
1 parent 66ee107 commit 768e540

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/resources/formats/html/bootstrap/_bootstrap-variables.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,12 @@ $link-weight: $font-weight-base !default;
272272
$link-decoration: null !default;
273273

274274
// border colors
275-
$border-color: mix($body-contrast-color, $body-contrast-bg, 30%) !default;
275+
/// if a theme does not provide body-color or body-bg
276+
/// defaults to boostrap own default value for theses variables (in _variables.scss)
277+
$border-color: mix(
278+
if(variable-exists(body-color), $body-color, $gray-900),
279+
if(variable-exists(body-bg), $body-bg, $white),
280+
10%
281+
) !default;
282+
/// Make sure table border are the same as the border color (in case change in bootstrap default)
276283
$table-border-color: $border-color !default;

0 commit comments

Comments
 (0)