generate responsive offsets

This commit is contained in:
Marcos Moura 2016-12-14 10:56:25 -02:00
parent ece16fbf10
commit 18d27fb885
2 changed files with 8 additions and 12 deletions

View file

@ -101,14 +101,12 @@ $sizes: (8, 16, 24, 40);
flex: 0 1 66.66666%;
}
@if $size == '' {
.md-flex-offset-33 {
margin-left: 33.33333%;
}
.md-flex-offset#{$size}-33 {
margin-left: 33.33333%;
}
.md-flex-offset-66 {
margin-left: 66.66666%;
}
.md-flex-offset#{$size}-66 {
margin-left: 66.66666%;
}
@for $i from 1 through 20 {
@ -119,10 +117,8 @@ $sizes: (8, 16, 24, 40);
flex: 0 1 #{$counter + '%'};
}
@if $size == '' {
.md-flex-offset-#{$counter} {
margin-left: #{$counter + '%'};
}
.md-flex-offset#{$size}-#{$counter} {
margin-left: #{$counter + '%'};
}
}
}

View file

@ -1,6 +1,6 @@
/* Common */
$font-roboto: Roboto, Lato, sans-serif;
$font-roboto: Roboto, 'Noto Sans', Noto, sans-serif;
/* Responsive Breakpoints */