Skip to content

Instantly share code, notes, and snippets.

@fractefactos
Created August 2, 2015 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fractefactos/db34a061d011748cc2f9 to your computer and use it in GitHub Desktop.
Save fractefactos/db34a061d011748cc2f9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<h1>LALALALA</h1>
<div class="texto">lalalala</div>
// ----
// libsass (v3.2.5)
// ----
$mq-show-breakpoints: ();
$mq-responsive: true;
@import 'mq';
.texto {
// Apply styling to mobile and upwards
@include mq($from: mobile) {
color: red;
}
// Apply styling up to devices smaller than tablets (exclude tablets)
@include mq($until: tablet) {
color: blue;
}
// Same thing, in landscape orientation
@include mq($until: tablet, $and: '(orientation: landscape)') {
color: hotpink;
}
// Apply styling to tablets up to desktop (exclude desktop)
@include mq(tablet, desktop) {
color: green;
}
}
h1 {
// Apply styling to mobile and upwards
@include mq($from: mobile) {
color: red;
}
// Apply styling up to devices smaller than tablets (exclude tablets)
@include mq($until: tablet) {
color: blue;
}
// Same thing, in landscape orientation
@include mq($until: tablet, $and: '(orientation: landscape)') {
color: hotpink;
}
// Apply styling to tablets up to desktop (exclude desktop)
@include mq(tablet, desktop) {
color: green;
}
}
@media (min-width: 20em) {
.texto {
color: red;
}
}
@media (max-width: 46.24em) {
.texto {
color: blue;
}
}
@media (max-width: 46.24em) and (orientation: landscape) {
.texto {
color: hotpink;
}
}
@media (min-width: 46.25em) and (max-width: 61.24em) {
.texto {
color: green;
}
}
@media (min-width: 20em) {
h1 {
color: red;
}
}
@media (max-width: 46.24em) {
h1 {
color: blue;
}
}
@media (max-width: 46.24em) and (orientation: landscape) {
h1 {
color: hotpink;
}
}
@media (min-width: 46.25em) and (max-width: 61.24em) {
h1 {
color: green;
}
}
<h1>LALALALA</h1>
<div class="texto">lalalala</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment