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:
@@ -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.';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user