First pass at cleaning out the CSS cruft

- Dump unused styles
- Use breakpoint mixin for media queries
This commit is contained in:
Michael Rose
2016-03-09 22:19:11 -05:00
parent d84f35c0e1
commit 3b1cefde27
30 changed files with 1824 additions and 918 deletions

View File

@@ -0,0 +1,18 @@
@function breakpoint-parse-triple-default($feature, $first, $second) {
// Sort into min and max
$min: min($first, $second);
$max: max($first, $second);
// Set Context
$context-setter: private-breakpoint-set-context(min-#{$feature}, $min);
$context-setter: private-breakpoint-set-context(max-#{$feature}, $max);
// Make them EMs if need be
@if (breakpoint-get('to ems') == true) {
$min: breakpoint-to-base-em($min);
$max: breakpoint-to-base-em($max);
}
@return '(min-#{$feature}: #{$min}) and (max-#{$feature}: #{$max})';
}