diff options
author | Mark Otto <markd.otto@gmail.com> | 2018-04-01 08:07:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-01 08:07:48 +0300 |
commit | dd7ed798564643d18d738f20e4cf51ccffd5af99 (patch) | |
tree | acd50a759363bf1c48b91d6e8a8e14322eaae4b2 /scss | |
parent | a016cbd6a88dd092179bec327eab2bca84268f5f (diff) |
Add box-shadow utilities (#25758)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_utilities.scss | 1 | ||||
-rw-r--r-- | scss/_variables.scss | 4 | ||||
-rw-r--r-- | scss/utilities/_shadows.scss | 6 |
3 files changed, 11 insertions, 0 deletions
diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 7b2a1ebe9d..6c7a7cdd34 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -8,6 +8,7 @@ @import "utilities/float"; @import "utilities/position"; @import "utilities/screenreaders"; +@import "utilities/shadows"; @import "utilities/sizing"; @import "utilities/spacing"; @import "utilities/text"; diff --git a/scss/_variables.scss b/scss/_variables.scss index 68095ce127..c08c2b0464 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -212,6 +212,10 @@ $border-radius: .25rem !default; $border-radius-lg: .3rem !default; $border-radius-sm: .2rem !default; +$box-shadow-sm: 0 .125rem .25rem rgba($black, .075) !default; +$box-shadow: 0 .5rem 1rem rgba($black, .15) !default; +$box-shadow-lg: 0 1rem 3rem rgba($black, .175) !default; + $component-active-color: $white !default; $component-active-bg: theme-color("primary") !default; diff --git a/scss/utilities/_shadows.scss b/scss/utilities/_shadows.scss new file mode 100644 index 0000000000..f5d03fcd59 --- /dev/null +++ b/scss/utilities/_shadows.scss @@ -0,0 +1,6 @@ +// stylelint-disable declaration-no-important + +.shadow-sm { box-shadow: $box-shadow-sm !important; } +.shadow { box-shadow: $box-shadow !important; } +.shadow-lg { box-shadow: $box-shadow-lg !important; } +.shadow-none { box-shadow: none !important; } |