Last active
August 29, 2015 14:06
-
-
Save csswizardry/035f64a34faddf0ce02c 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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
// AMCSS setup | |
$amcss-prefix: am-; | |
@mixin am($amcss-attribute, $amcss-value: null) { | |
@if($amcss-value != null) { | |
$amcss-value: "~=\"#{$amcss-value}\""; | |
} | |
[#{$amcss-prefix}#{$amcss-attribute}#{$amcss-value}] { | |
@content | |
} | |
} | |
/** | |
* Buttons | |
*/ | |
@include am(Button) { | |
display: inline-block; | |
} | |
@include am(Button, positive) { | |
background-color: green; | |
} | |
/** | |
* Site nav | |
*/ | |
@include am(Site-nav) { | |
float: left; | |
} | |
@include am(Site-nav-item) { | |
padding-left: 20px; | |
&:first-child { | |
padding-left: 0; | |
} | |
} | |
/** | |
* Mastheads | |
*/ | |
@include am(Masthead, banner) { | |
min-height: 480px; | |
& > { | |
@include am(Site-nav) { | |
float: none; | |
width: 100%; | |
} | |
} | |
} |
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
/** | |
* Buttons | |
*/ | |
[am-Button] { | |
display: inline-block; | |
} | |
[am-Button~="positive"] { | |
background-color: green; | |
} | |
/** | |
* Site nav | |
*/ | |
[am-Site-nav] { | |
float: left; | |
} | |
[am-Site-nav-item] { | |
padding-left: 20px; | |
} | |
[am-Site-nav-item]:first-child { | |
padding-left: 0; | |
} | |
/** | |
* Mastheads | |
*/ | |
[am-Masthead~="banner"] { | |
min-height: 480px; | |
} | |
[am-Masthead~="banner"] > [am-Site-nav] { | |
float: none; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment