Last active
September 12, 2017 20:28
-
-
Save castastrophe/fa22074fd9d0e0bd99b1f9d704aff60d 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
> 1% | |
last 2 versions |
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
<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> |
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.21) | |
// 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 and (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; | |
} |
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
Undefined mixin 'small-title'. |
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
<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