Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2021-06-14 23:25:11 +0300
committerMark Otto <otto@github.com>2021-07-06 06:22:29 +0300
commit359ed099e5b2f82bd602f2a6c45f43af8f2c87e8 (patch)
treeda343e462e97568af72c13d0d7571fa94e5cf083 /scss
parent8bc89b273d078f57c2a11e9b9b0ff60daf7f8e21 (diff)
Add horizontal collapse support
Diffstat (limited to 'scss')
-rw-r--r--scss/_transitions.scss6
-rw-r--r--scss/_variables.scss1
2 files changed, 7 insertions, 0 deletions
diff --git a/scss/_transitions.scss b/scss/_transitions.scss
index 2905df45cd..bfb26aa8ac 100644
--- a/scss/_transitions.scss
+++ b/scss/_transitions.scss
@@ -17,5 +17,11 @@
height: 0;
overflow: hidden;
@include transition($transition-collapse);
+
+ &.collapse-horizontal {
+ width: 0;
+ height: auto;
+ @include transition($transition-collapse-width);
+ }
}
// scss-docs-end collapse-classes
diff --git a/scss/_variables.scss b/scss/_variables.scss
index aa4d4ff2fb..7f93df4e34 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -398,6 +398,7 @@ $transition-base: all .2s ease-in-out !default;
$transition-fade: opacity .15s linear !default;
// scss-docs-start collapse-transition
$transition-collapse: height .35s ease !default;
+$transition-collapse-width: width .35s ease !default;
// scss-docs-end collapse-transition
// stylelint-disable function-disallowed-list