1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 14:59:31 +00:00

Added sass helper functions and mixins

This commit is contained in:
2022-01-25 20:08:35 +00:00
parent 5857ed46f4
commit d250ff859f
4 changed files with 32 additions and 0 deletions

View File

@@ -15,3 +15,17 @@
}
}
@mixin respond-to($breakpoint) {
$value: map-get($breakpoints, $breakpoint);
@if $value != null {
@media (min-width: $value) {
@content;
}
}
@else {
@warn 'No value could be retrieved from `#{$breakpoint}`. '
+ 'Please make sure it is defined in `$breakpoints` map.';
}
}