Created
December 12, 2014 21:38
-
-
Save ryansukale/8e2e1a52fd73bcd7bb6b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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.7) | |
// Compass (v1.0.1) | |
// ---- | |
$du-responsive-config: ( | |
( | |
table-type: ".portfolio, .options, .currencies, .commodities, .losers, .gainers, .etfs", | |
data-cols: ".data-col4", | |
min: 300, | |
max: 500 | |
), | |
); | |
@mixin media-page($table-config) { | |
$table-type: map-get($table-config, table-type); | |
$data-cols: map-get($table-config, data-cols); | |
$min: map-get($table-config, min); | |
$max: map-get($table-config, max); | |
@media screen | |
and (min-width: $min) | |
and (max-width: $max) { | |
.home-page { | |
#{$table-type} { | |
#{$data-cols} { | |
display: table-cell; | |
} | |
} | |
} | |
} | |
} | |
@each $table-config in $du-responsive-config { | |
@include media-page($table-config) | |
} |
This file contains 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: 300) and (max-width: 500) { | |
.home-page .portfolio .data-col4, .home-page .options .data-col4, .home-page .currencies .data-col4, .home-page .commodities .data-col4, .home-page .losers .data-col4, .home-page .gainers .data-col4, .home-page .etfs .data-col4 { | |
display: table-cell; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment