Skip to content

Commit

Permalink
Attach easings custom properties to :root
Browse files Browse the repository at this point in the history
  • Loading branch information
meduzen committed Jan 2, 2020
1 parent 9a0e748 commit 17d9faa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/easings.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
@import 'functions/bezier';
@import 'easings/easings';

/**
* Attach easings custom properties to `:root {}` if `$easings-legacy` is true
* or doesn’t exist.
*/
@if variable-exists('easings-legacy') == false or $easings-legacy == false {

:root {
@each $easing in $easings-list {
--#{$easing}: cubic-bezier(#{map-get($easings-map, $easing)});
}
}
}

0 comments on commit 17d9faa

Please sign in to comment.