Skip to content

Commit fd666bb

Browse files
authored
Refactor shadow variables. (jgthms#3251)
* Refactor shadow variables. * Add default flags.
1 parent 7e0ea44 commit fd666bb

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

sass/components/card.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$card-color: $text !default
44
$card-background-color: $scheme-main !default
5-
$card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
5+
$card-shadow: $shadow !default
66
$card-radius: 0.25rem !default
77

88
$card-header-background-color: transparent !default

sass/components/dropdown.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $dropdown-content-offset: 4px !default
88
$dropdown-content-padding-bottom: 0.5rem !default
99
$dropdown-content-padding-top: 0.5rem !default
1010
$dropdown-content-radius: $radius !default
11-
$dropdown-content-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
11+
$dropdown-content-shadow: $shadow !default
1212
$dropdown-content-z: 20 !default
1313

1414
$dropdown-item-color: $text !default

sass/components/panel.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$panel-margin: $block-spacing !default
44
$panel-item-border: 1px solid $border-light !default
55
$panel-radius: $radius-large !default
6-
$panel-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
6+
$panel-shadow: $shadow !default
77

88
$panel-heading-background-color: $border-light !default
99
$panel-heading-color: $text-strong !default

sass/elements/box.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$box-color: $text !default
44
$box-background-color: $scheme-main !default
55
$box-radius: $radius-large !default
6-
$box-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
6+
$box-shadow: $shadow !default
77
$box-padding: 1.25rem !default
88

99
$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default

sass/utilities/derived-variables.sass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ $size-normal: $size-6 !default
9999
$size-medium: $size-5 !default
100100
$size-large: $size-4 !default
101101

102+
// Effects
103+
104+
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
105+
102106
// Lists and maps
103107
$custom-colors: null !default
104108
$custom-shades: null !default

0 commit comments

Comments
 (0)