Skip to content

Commit 2b9daba

Browse files
authored
feat(shiny-preset): Box shadow, value box tweaks (#796)
Co-authored-by: gadenbuie <[email protected]>
1 parent e710081 commit 2b9daba

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

inst/builtin/bs5/shiny/_variables.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,13 @@ $table-striped-bg: rgba($primary, 0.06) !default;
9797
$table-hover-bg: rgba($primary, 0.1) !default;
9898
$table-striped-order: even !default;
9999

100+
// Box Shadows
101+
$box-shadow:
102+
0px 1px 2px rgba(29, 31, 33,.1),
103+
0px 3px 7px rgba(29, 31, 33,.1),
104+
0px 12px 30px rgba(29, 31, 33,.08) !default;
105+
106+
$card-border-radius: 8px !default;
107+
100108
// bslib variables
101109
$bslib-value-box-enable-shadow: true !default;

inst/components/dist/value_box/value_box.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/components/scss/value_box.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ $bslib-value-box-horizontal-break-point: 300px;
2525
// }
2626

2727
.bslib-value-box {
28-
box-shadow: var(--bslib-value-box-shadow);
28+
&.card {
29+
// .card also sets box-shadow by default, likely to an empty css variable
30+
box-shadow: var(--bslib-value-box-shadow);
31+
}
2932

3033
border-width: var(--bslib-value-box-border-width-auto-no, var(--bslib-value-box-border-width-baseline));
3134
&.border-auto {

0 commit comments

Comments
 (0)