Merge pull request #153 from shikorism/fix/140
カード画像の角丸の位置をメディアクエリで可変にした
This commit is contained in:
commit
d044b6db20
10
resources/assets/sass/_bootstrap-custom.scss
vendored
10
resources/assets/sass/_bootstrap-custom.scss
vendored
@ -7,3 +7,13 @@
|
||||
width: 100%;
|
||||
@include border-right-radius($card-inner-border-radius);
|
||||
}
|
||||
|
||||
.card-img-top-to-left {
|
||||
width: 100%;
|
||||
@include media-breakpoint-down(md) {
|
||||
@include border-top-radius($card-inner-border-radius);
|
||||
}
|
||||
@include media-breakpoint-up(lg) {
|
||||
@include border-left-radius($card-inner-border-radius);
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
<a class="text-dark card-link" href="{{ $link }}" target="_blank" rel="noopener">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-12 col-md-6">
|
||||
<img src="" alt="Thumbnail" class="card-img-left bg-secondary">
|
||||
<img src="" alt="Thumbnail" class="card-img-top-to-left bg-secondary">
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<div class="card-body">
|
||||
|
Loading…
Reference in New Issue
Block a user