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
###################################################### | |
# Drums | |
###################################################### | |
define :boom do | |
with_fx :reverb, room: 1 do | |
sample :bd_boom, amp: 8 | |
end | |
sample :ambi_choir, rate: 0.1 |
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.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$foo: 10; | |
$foo: 20; // redeclare to overwrite | |
$foo: 30 !default; // ONLY set if not already, this is the !default | |
$bar: 10; |
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
class CustomSlickQuizFilters { | |
function __construct() | |
{ | |
add_filter( 'slickquiz_admin_options', array( &$this, 'custom_admin_options' ) ); | |
add_filter( 'slickquiz_after_options', array( &$this, 'custom_after_options' ) ); | |
add_filter( 'slickquiz_after_result', array( &$this, 'custom_after_result' ) ); | |
} | |
function custom_admin_options( $options ) |
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
mkdir base && touch base/_vars.scss && touch base/_base.scss && mkdir blocks && touch blocks/_all.scss && mkdir modules && touch modules/_all.scss && mkdir pages && touch pages/_all.scss && mkdir lib && touch application.scss |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
// You can use inline %placeholders in Sass: | |
.form %form-item + .text { | |
margin-top: 10px; | |
} |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
// Horizontal Spacing | |
@mixin margin--horz($left, $right: $left) { | |
margin-left: $left; | |
margin-right: $right; |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
// To enable support for browsers that do not support @media queries, | |
// (IE <= 8, Firefox <= 3, Opera <= 9) set $mq-responsive to false | |
// Create a separate stylesheet served exclusively to these browsers, | |
// meaning @media queries will be rasterized, relying on the cascade itself | |
$mq-responsive: true !default; |
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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
/* | |
A slightly more automated approach to BEM modifier classes: | |
using '&' parent selector interpolation, modifiers extend their bases, | |
so that HTML markup requires only the modifier class not the base *and* modifier | |
*/ |
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
/* ========================================================================== | |
Block Title | |
========================================================================== */ | |
/** | |
* Markdown Example (HAML) | |
* | |
* %div.block_modifiers | |
* %header.block--element_modifiers |
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
/* | |
* Extends - @extend .inheritance-class; | |
* | |
* Selectors extending a class get comma separated. Property / value pairs ARE NOT duplicated everywhere. | |
* Use for simple selectors. Warning: it gets messy where there are sub-nodes | |
* | |
* Still unsure? Use @extend if a relationship IS implied AND you need the base class in the stylesheet. Example: | |
* .message { ... } | |
* .error { @extend .message; ... } | |
* .info { @extend .message; ... } |
NewerOlder