mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 06:44:35 +02:00
Move box-shadow and transition mixins out of the main mixins file and into their own files
This commit is contained in:
@@ -2,22 +2,6 @@
|
|||||||
//
|
//
|
||||||
// Used in conjunction with global variables to enable certain theme features.
|
// Used in conjunction with global variables to enable certain theme features.
|
||||||
|
|
||||||
@mixin box-shadow($shadow...) {
|
|
||||||
@if $enable-shadows {
|
|
||||||
box-shadow: $shadow;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin transition($transition...) {
|
|
||||||
@if $enable-transitions {
|
|
||||||
@if length($transition) == 0 {
|
|
||||||
transition: $transition-base;
|
|
||||||
} @else {
|
|
||||||
transition: $transition;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
@import "mixins/breakpoints";
|
@import "mixins/breakpoints";
|
||||||
@import "mixins/hover";
|
@import "mixins/hover";
|
||||||
@@ -47,7 +31,9 @@
|
|||||||
// // Skins
|
// // Skins
|
||||||
@import "mixins/background-variant";
|
@import "mixins/background-variant";
|
||||||
@import "mixins/border-radius";
|
@import "mixins/border-radius";
|
||||||
|
@import "mixins/box-shadow";
|
||||||
@import "mixins/gradients";
|
@import "mixins/gradients";
|
||||||
|
@import "mixins/transition";
|
||||||
|
|
||||||
// // Layout
|
// // Layout
|
||||||
@import "mixins/clearfix";
|
@import "mixins/clearfix";
|
||||||
|
5
scss/mixins/_box-shadow.scss
Normal file
5
scss/mixins/_box-shadow.scss
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@mixin box-shadow($shadow...) {
|
||||||
|
@if $enable-shadows {
|
||||||
|
box-shadow: $shadow;
|
||||||
|
}
|
||||||
|
}
|
9
scss/mixins/_transition.scss
Normal file
9
scss/mixins/_transition.scss
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
@mixin transition($transition...) {
|
||||||
|
@if $enable-transitions {
|
||||||
|
@if length($transition) == 0 {
|
||||||
|
transition: $transition-base;
|
||||||
|
} @else {
|
||||||
|
transition: $transition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user