Skip to content

Commit

Permalink
Ensure Sass variables are defined for Bootstrap 3 Sass (#3892)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Sep 8, 2023
1 parent d21f949 commit 6db17d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inst/www/shared/shiny_scss/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 6db17d4

Please sign in to comment.