Last active
September 3, 2015 19:45
-
-
Save willbowling/63af1454c878001df58f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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.2.19) | |
// Compass (v0.12.7) | |
// ---- | |
@import compass | |
// What is this? | |
$brand-primary: #333 | |
// What is this? | |
=pane-primary | |
+box-shadow(3px 3px 5px rgba(black, .15)) | |
+border-radius(10px) | |
padding: 10px | |
clear: both | |
.parent-class | |
border: 1px solid red | |
+pane-primary | |
&.some-class | |
// what does the "&" do here? | |
color: blue | |
.hasModernizr & | |
// what does the "&" do here? | |
color: white | |
// BONUS ROUND: | |
// Lighten the color red by 5% |
This file contains hidden or 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
.parent-class { | |
border: 1px solid red; | |
-webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15); | |
-moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15); | |
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15); | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
-ms-border-radius: 10px; | |
-o-border-radius: 10px; | |
border-radius: 10px; | |
padding: 10px; | |
clear: both; | |
} | |
.parent-class.some-class { | |
color: blue; | |
} | |
.hasModernizr .parent-class { | |
color: white; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment