diff options
| author | Mark Otto <[email protected]> | 2016-09-07 20:40:12 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-09-07 20:40:12 -0700 |
| commit | 07752bab7b248d9c064b7b85dcaeccccecde8fc7 (patch) | |
| tree | fe8925f34227972ba09bf2dab65e4eef7c87709c /scss | |
| parent | 5413787e403711a78843976a37a77b1c9ad51cc1 (diff) | |
| download | bootstrap-07752bab7b248d9c064b7b85dcaeccccecde8fc7.tar.xz bootstrap-07752bab7b248d9c064b7b85dcaeccccecde8fc7.zip | |
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 73b3b0e82..1644ae466 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 05c008820..c8cdbb104 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; |
