mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 14:54:27 +02:00
Updates responsive embeds with new class names and CSS variables
- Renames .embed-responsive-XbyY classes to .embed-responsive-XxY - Simplifies the Sass map to just be key and value, ratio and percentage - Builds .embed-responsive-* modifiers with CSS variables - Updates docs to show power of CSS variables - Add notes to the Migration guide
This commit is contained in:
@@ -164,6 +164,19 @@
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
// Responsive embed helpers
|
||||
.embed-responsive {
|
||||
display: inline-block;
|
||||
color: $gray-600;
|
||||
background-color: $gray-100;
|
||||
border: $border-width solid $border-color;
|
||||
}
|
||||
.embed-responsive-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-example-modal {
|
||||
|
Reference in New Issue
Block a user