1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-26 06:44:35 +02:00

Add example of responsive behavior for aspect ratios

This commit is contained in:
Mark Otto
2020-09-22 16:38:58 -07:00
committed by Mark Otto
parent 3b8c17029f
commit 73e5640405
2 changed files with 26 additions and 0 deletions

View File

@@ -181,6 +181,15 @@
justify-content: center;
}
}
.bd-example-ratios-breakpoint {
.ratio-4x3 {
width: 16rem;
@include media-breakpoint-up(md) {
--aspect-ratio: 50%; // 2x1
}
}
}
.bd-example-modal {
background-color: #fafafa;