1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 04:41:36 +02:00

Rename the classes and docs page, update everything accordingly

This commit is contained in:
Mark Otto
2020-09-22 16:30:00 -07:00
committed by Mark Otto
parent 18f8601d29
commit fe38a85839
8 changed files with 82 additions and 81 deletions

View File

@@ -1,6 +1,6 @@
@import "helpers/clearfix";
@import "helpers/colored-links";
@import "helpers/embed";
@import "helpers/ratio";
@import "helpers/position";
@import "helpers/visually-hidden";
@import "helpers/stretched-link";

View File

@@ -376,14 +376,16 @@ $transition-base: all .2s ease-in-out !default;
$transition-fade: opacity .15s linear !default;
$transition-collapse: height .35s ease !default;
// scss-docs-start embed-responsive-aspect-ratios
$embed-responsive-aspect-ratios: (
// stylelint-disable function-blacklist
// scss-docs-start aspect-ratios
$aspect-ratios: (
"1x1": 100%,
"4x3": 75%,
"16x9": 56.25%,
"21x9": 42.857142%
"4x3": calc(3 / 4 * 100%),
"16x9": calc(9 / 16 * 100%),
"21x9": calc(9 / 21 * 100%)
) !default;
// scss-docs-end embed-responsive-aspect-ratios
// scss-docs-end aspect-ratios
// stylelint-enable function-blacklist
// Typography
//

View File

@@ -1,7 +1,6 @@
// Credit: Nicolas Gallagher and SUIT CSS.
.embed-responsive {
.ratio {
position: relative;
width: 100%;
@@ -11,7 +10,7 @@
content: "";
}
.embed-responsive-item,
.ratio-item,
iframe,
embed,
object,
@@ -24,8 +23,8 @@
}
}
@each $key, $ratio in $embed-responsive-aspect-ratios {
.embed-responsive-#{$key} {
@each $key, $ratio in $aspect-ratios {
.ratio-#{$key} {
--aspect-ratio: #{$ratio};
}
}