diff options
author | Mark Otto <markd.otto@gmail.com> | 2016-09-08 06:40:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-08 06:40:12 +0300 |
commit | 07752bab7b248d9c064b7b85dcaeccccecde8fc7 (patch) | |
tree | fe8925f34227972ba09bf2dab65e4eef7c87709c /scss | |
parent | 5413787e403711a78843976a37a77b1c9ad51cc1 (diff) |
v4: Card image fixes (#20667)
* Add .img-fluid to card images in columns to ensure proper resizing
* change that variable from regular value to variable
* use calc to figure out a tighter border for card images
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_card.scss | 2 | ||||
-rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 73b3b0e820..1644ae466c 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -168,7 +168,7 @@ // Card image .card-img { // margin: -1.325rem; - @include border-radius(.25rem); + @include border-radius($card-border-radius-inner); } .card-img-overlay { position: absolute; diff --git a/scss/_variables.scss b/scss/_variables.scss index 05c008820d..c8cdbb104d 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -581,7 +581,7 @@ $card-spacer-y: .75rem !default; $card-border-width: 1px !default; $card-border-radius: $border-radius !default; $card-border-color: rgba(0,0,0,.125) !default; -$card-border-radius-inner: $card-border-radius !default; +$card-border-radius-inner: calc($card-border-radius - 1px) !default; $card-cap-bg: #f5f5f5 !default; $card-bg: #fff !default; |