Created
September 15, 2014 16:55
-
-
Save invamped/048f4d8acd8b57f40db1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<p>Test text</p> |
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.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
/* Mobile First Media Queries Mixins*/ | |
@mixin breakpoint($point) { | |
/* Custom, iPhone Retina */ | |
@if $point == xsmall { | |
@media (min-width: 320px) { @content; } | |
} | |
/* Extra Small Devices, Phones */ | |
@else if $point == small { | |
@media (min-width: 480px) { @content; } | |
} | |
/* Small Devices, Tablets */ | |
@else if $point == medium { | |
@media (min-width: 768px) { @content; } | |
} | |
/* Medium Devices, Desktops */ | |
@else if $point == large { | |
@media (min-width: 992px) { @content; } | |
} | |
/* Large Devices, Wide Screens */ | |
@else if $point == xlarge { | |
@media (min-width: 1200px) { @content; } | |
} | |
} | |
html { | |
font-size: 62.5%; /* Sets up the Base 10 stuff */ | |
} | |
@mixin font-size($sizeValue: 1.6) { | |
font-size: ($sizeValue * 10) + px; | |
font-size: $sizeValue + rem; | |
} | |
//Font Sizes | |
$large: 3; | |
$medium: 2.5; | |
$small: 2; | |
@include breakpoint(large) { | |
$large: 6; | |
} | |
@include breakpoint(small) { | |
$large: 2; | |
} | |
p{ | |
@include font-size($large); | |
} | |
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
/* Mobile First Media Queries Mixins*/ | |
html { | |
font-size: 62.5%; | |
/* Sets up the Base 10 stuff */ | |
} | |
/* Custom, iPhone Retina */ | |
/* Custom, iPhone Retina */ | |
p { | |
font-size: 30px; | |
font-size: 3rem; | |
} |
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
<p>Test text</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment