Skip to content

Commit

Permalink
Move box-shadow and transition mixins out of the main mixins file and…
Browse files Browse the repository at this point in the history
… into their own files
  • Loading branch information
mdo committed Mar 5, 2017
1 parent ac3a2fe commit 9a93671
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
18 changes: 2 additions & 16 deletions scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@
//
// 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
@import "mixins/breakpoints";
@import "mixins/hover";
Expand Down Expand Up @@ -47,7 +31,9 @@
// // Skins
@import "mixins/background-variant";
@import "mixins/border-radius";
@import "mixins/box-shadow";
@import "mixins/gradients";
@import "mixins/transition";

// // Layout
@import "mixins/clearfix";
Expand Down
5 changes: 5 additions & 0 deletions scss/mixins/_box-shadow.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin box-shadow($shadow...) {
@if $enable-shadows {
box-shadow: $shadow;
}
}
9 changes: 9 additions & 0 deletions scss/mixins/_transition.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@mixin transition($transition...) {
@if $enable-transitions {
@if length($transition) == 0 {
transition: $transition-base;
} @else {
transition: $transition;
}
}
}

0 comments on commit 9a93671

Please sign in to comment.