Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save castastrophe/aa2d645972ea8b6d72b10edd94d55bfa to your computer and use it in GitHub Desktop.
Save castastrophe/aa2d645972ea8b6d72b10edd94d55bfa to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="region-content">
<h2>Hello World!
</h2>
<div id="block-block-1" class="block">
Lorem Ipsum Uno <a href="http://www.redhat.com">Click me</a>
</div>
<div id="block-block-5" class="block">
Lorem Ipsum Dos <a href="http://www.redhat.com">Click me</a>
</div>
<div id="block-block-7" class="block">
Lorem Ipsum Tres <a>Click me</a>
</div>
</div>
<footer class="footer" id="footer">Copyright 2015</footer>
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
// Solve each objective; use Google if you like!
// 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!
// Bonus, fix the HTML error
* {
box-sizing: border-box;
}
body {
font-family: helvetica;
}
a {
text-decoration: none;
color: #c00;
}
.region-content .block {
float: left;
width: 30%;
background: #eee;
padding: 5px;
margin: 1.5%;
}
.region-content h1 {
@include small-title;
font-size: 15em;
font-weight: bold;
color: red
}
$gray: #ccc;
$red: #c00;
@media screen (max-width: 700px) {
.region-content {
width: 1200px;
background-image: url(http://www.redhat.local/profiles/rh/themes/redhatdotcom/img/bkgd/bkgd-ltc-mountains_trees_stream-2000x680.jpg);
background-repeat: no-repeat;
background-position: 0 0;
#block-block-7 {
background: #ccc;
}
#block-block-5 {
background: #ccc;
}
#block-block-1 {
background: $gray;
}
}
}
#footer {
margin: 0 0 0 0;
margin-top: 1em;
}
Invalid CSS after "@media screen ": expected "{", was "(max-width: 700..."
<div class="region-content">
<h2>Hello World!
</h2>
<div id="block-block-1" class="block">
Lorem Ipsum Uno <a href="http://www.redhat.com">Click me</a>
</div>
<div id="block-block-5" class="block">
Lorem Ipsum Dos <a href="http://www.redhat.com">Click me</a>
</div>
<div id="block-block-7" class="block">
Lorem Ipsum Tres <a>Click me</a>
</div>
</div>
<footer class="footer" id="footer">Copyright 2015</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment