From 6db17d4f672a41aac5a558e5927b98f409bdc8c1 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Fri, 8 Sep 2023 10:39:25 -0500 Subject: [PATCH] Ensure Sass variables are defined for Bootstrap 3 Sass (#3892) --- inst/www/shared/shiny_scss/bootstrap.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inst/www/shared/shiny_scss/bootstrap.scss b/inst/www/shared/shiny_scss/bootstrap.scss index 7faf14504a..fdf09ffb48 100644 --- a/inst/www/shared/shiny_scss/bootstrap.scss +++ b/inst/www/shared/shiny_scss/bootstrap.scss @@ -1,9 +1,13 @@ $prefix: bs- !default; // BS5 CSS variable prefix -// No $border-width, $border-radius, or $border-color in BS3 +// For BS3, which doesn't have these Sass variables (but has other, similar ones) $border-width: 1px !default; $border-radius: $border-radius-base !default; $border-color: mix($body-bg, $text-color, 70%) !default; +$primary: $brand-primary !default; +$info: $brand-info !default; +$warning: $brand-warning !default; +$danger: $brand-danger !default; // No rgb CSS vars available in BS3-4 $primary-rgb: var(--#{$prefix}primary-rgb, red($primary),green($primary),blue($primary)) !default;