Created
November 10, 2013 22:54
-
-
Save seanirby/7405041 to your computer and use it in GitHub Desktop.
Extends
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
<h1>Implement Inheritance Using '@extend'</h1> | |
<span class="message success">Success</span> | |
<span class="message error">Error</span> | |
<span class="message warning">Warning</span> |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
body{ | |
background-color: #505050; | |
} | |
h1,h2,h3{ | |
text-align: center; | |
color: white; | |
font-family: Helvetica; | |
} | |
.message { | |
position: relative; | |
top: 50%; | |
left: 30%; | |
font-size: 36px; | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: white; | |
font-family: Helvetica; | |
} | |
.success { | |
background-color: green; | |
} | |
.error { | |
background-color: red; | |
} | |
.warning { | |
background-color: orange; | |
} |
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
body { | |
background-color: #505050; | |
} | |
h1, h2, h3 { | |
text-align: center; | |
color: white; | |
font-family: Helvetica; | |
} | |
.message { | |
position: relative; | |
top: 50%; | |
left: 30%; | |
font-size: 36px; | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: white; | |
font-family: Helvetica; | |
} | |
.success { | |
background-color: green; | |
} | |
.error { | |
background-color: red; | |
} | |
.warning { | |
background-color: orange; | |
} |
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
<h1>Implement Inheritance Using '@extend'</h1> | |
<span class="message success">Success</span> | |
<span class="message error">Error</span> | |
<span class="message warning">Warning</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment