Coding style decided

This commit is contained in:
2018-05-05 21:13:43 +10:00
parent 5eb4d7ee4f
commit 3a27f7985b
28 changed files with 1085 additions and 6 deletions

View File

@ -0,0 +1,30 @@
/*
* Responsive Tools
* Responsive tools
*
* Dependencies:
*
* Version:
* 1.0.0 - 2018/01/24
*/
@mixin t-media-query($media-query) {
$breakpoint-found: false;
@each $breakpoint in $s-breakpoints {
$name: nth($breakpoint, 1);
$declaration: nth($breakpoint, 2);
@if $media-query == $name and $declaration {
$breakpoint-found: true;
@media only screen and #{$declaration} {
@content;
}
}
}
@if $breakpoint-found == false {
@warn 'Breakpoint "#{$media-query}" does not exist';
}
}