📱(react) add media mixin

We want to be able to use responsive media queries for the Toast
component.
This commit is contained in:
Nathan Vasse
2024-01-05 11:53:38 +01:00
committed by NathanVss
parent 9e0f7c5ef4
commit 68608b5390

View File

@@ -11,3 +11,9 @@
@content;
}
}
@mixin media($name, $tokens: $themes) {
$breakpoint: breakpoint($name, $tokens);
@media (max-width: #{$breakpoint}) {
@content;
}
}