Forked from micahgodbolt/SassMeister-input.scss
Last active
December 18, 2015 22:48
-
-
Save lajlev/5856623 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (min-width: 32em) { | |
.content .schedule-component { | |
float: left; | |
width: 100%; | |
position: relative; | |
} | |
.content .schedule-component ul, | |
.content .schedule-component li { | |
list-style: none; | |
position: absolute; | |
margin: 0; | |
padding: 0; | |
} | |
} | |
@media screen and (min-width: 90em) { | |
aside .schedule-component { | |
float: left; | |
width: 100%; | |
position: relative; | |
} | |
aside .schedule-component ul, | |
aside .schedule-component li { | |
list-style: none; | |
position: absolute; | |
margin: 0; | |
padding: 0; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- | |
// Sass (v3.2.9) | |
// --- | |
@mixin respond-to($queries...) { | |
$length: length($queries); | |
@for $i from 1 through $length{ | |
@if $i % 2 == 1 { | |
@media screen and (min-width: nth($queries, $i)) { | |
#{nth($queries, $i+1)} { | |
@content; | |
} | |
} | |
} | |
} | |
} | |
@include respond-to(32em, ".content", 90em, aside) { | |
.schedule-component { | |
float: left; | |
width: 100%; | |
position:relative; | |
} | |
.schedule-component ul, | |
.schedule-component li { | |
list-style: none; | |
position: absolute; | |
margin: 0; | |
padding: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment