Skip to content

Instantly share code, notes, and snippets.

@jhough10
Created August 5, 2015 21:28
Show Gist options
  • Save jhough10/ef3e885b2dcaafed7286 to your computer and use it in GitHub Desktop.
Save jhough10/ef3e885b2dcaafed7286 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$media-breakpoints: (
phone: 480px,
tablet: 760px,
desktop: 1200px
);
@mixin media-query($size) {
@if map-has-key($media-breakpoints, $size) {
@media screen and (min-width: #{map-get($media-breakpoints, $size)}) {
@content;
}
}
}
.page-section {
width: 100%;
@include media-query(tablet) {
font-size: 15px;
}
@include media-query(phone) {
width: 50%;
}
}
.page-section {
width: 100%;
}
@media screen and (min-width: 760px) {
.page-section {
font-size: 15px;
}
}
@media screen and (min-width: 480px) {
.page-section {
width: 50%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment