📱(react) add media mixin
We want to be able to use responsive media queries for the Toast component.
This commit is contained in:
@@ -11,3 +11,9 @@
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin media($name, $tokens: $themes) {
|
||||
$breakpoint: breakpoint($name, $tokens);
|
||||
@media (max-width: #{$breakpoint}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user