Skip to content

Commit

Permalink
Merge pull request #72 from metabrainz/collapse-css
Browse files Browse the repository at this point in the history
Import Bootstrap transitions
  • Loading branch information
akshaaatt authored Apr 25, 2022
2 parents 0f65c18 + 75eb1e8 commit 5fedbf9
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 3 deletions.
37 changes: 37 additions & 0 deletions dist/bootstrap-generic.css
Original file line number Diff line number Diff line change
Expand Up @@ -3479,6 +3479,43 @@ textarea.form-control-lg {
border-radius: 0;
}

.fade {
transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
.fade {
transition: none;
}
}
.fade:not(.show) {
opacity: 0;
}

.collapse:not(.show) {
display: none;
}

.collapsing {
height: 0;
overflow: hidden;
transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
.collapsing {
transition: none;
}
}
.collapsing.collapse-horizontal {
width: 0;
height: auto;
transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
.collapsing.collapse-horizontal {
transition: none;
}
}

.dropup,
.dropend,
.dropdown,
Expand Down
34 changes: 34 additions & 0 deletions dist/bootstrap-mb.css
Original file line number Diff line number Diff line change
Expand Up @@ -3063,6 +3063,40 @@ a > .bs code {
font-size: 0.875rem;
border-radius: 0;
}
.bs .fade {
transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
.bs .fade {
transition: none;
}
}
.bs .fade:not(.show) {
opacity: 0;
}
.bs .collapse:not(.show) {
display: none;
}
.bs .collapsing {
height: 0;
overflow: hidden;
transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
.bs .collapsing {
transition: none;
}
}
.bs .collapsing.collapse-horizontal {
width: 0;
height: auto;
transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
.bs .collapsing.collapse-horizontal {
transition: none;
}
}
.bs .dropup,
.bs .dropend,
.bs .dropdown,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metabrainz/design-system",
"version": "1.0.6",
"version": "1.0.7",
"description": "Design system of MetaBrainz",
"main": "components/index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion scss/bootstrap-generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@import "../node_modules/bootstrap/scss/tables";
@import "../node_modules/bootstrap/scss/forms";
@import "../node_modules/bootstrap/scss/buttons";
// @import "../node_modules/bootstrap/scss/transitions";
@import "../node_modules/bootstrap/scss/transitions";
@import "../node_modules/bootstrap/scss/dropdown";
//@import "../node_modules/bootstrap/scss/button-group";
@import "../node_modules/bootstrap/scss/nav";
Expand Down
2 changes: 1 addition & 1 deletion scss/bootstrap-mb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@import "../node_modules/bootstrap/scss/tables";
@import "../node_modules/bootstrap/scss/forms";
@import "../node_modules/bootstrap/scss/buttons";
// @import "../node_modules/bootstrap/scss/transitions";
@import "../node_modules/bootstrap/scss/transitions";
@import "../node_modules/bootstrap/scss/dropdown";
//@import "../node_modules/bootstrap/scss/button-group";
@import "../node_modules/bootstrap/scss/nav";
Expand Down

0 comments on commit 5fedbf9

Please sign in to comment.