Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Last active August 29, 2015 14:19
Show Gist options
  • Save starryeyez024/dd8faf40bf6cce86440b to your computer and use it in GitHub Desktop.
Save starryeyez024/dd8faf40bf6cce86440b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="">
<div>
</div>
</div>
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// Objective #1 Resolve syntax issues so that this code compiles to CSS.
// Objective #2 Fix any potential problems this CSS could cause on redhat.com.
// Objective #3 Make the code DRY!
$gray: #333;
@mixin small-title {
}
@media screen and (max-width: 480px) {
.region-content {
width: 600px;
background-image: url(http://redhat.local/images/red-bg.png);
background-repeat: no-repeat;
background-position: 0 0;
#block-block-7 a {
background: #333;
}
#block-block-5 a {
background: #333;
}
#block-block-1 a {
background: $gray;
}
}
}
.region-content h2 {
@include small-title;
font-size: 92em;
font-weight: bold;
color: #333;
}
@media screen and (max-width: 480px) {
.region-content {
width: 600px;
background-image: url(http://redhat.local/images/red-bg.png);
background-repeat: no-repeat;
background-position: 0 0;
}
.region-content #block-block-7 a {
background: #333;
}
.region-content #block-block-5 a {
background: #333;
}
.region-content #block-block-1 a {
background: #333;
}
}
.region-content h2 {
font-size: 92em;
font-weight: bold;
color: #333;
}
<div class="">
<div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment