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
/** | |
* Functions to shorten calling assets | |
*/ | |
function get_assets($subdir){ | |
return get_stylesheet_directory_uri() .'/assets'.($subdir ? '/'. $subdir : ''); | |
} | |
function assets($subdir){ | |
echo get_stylesheet_directory_uri() .'/assets'.($subdir ? '/'. $subdir : ''); |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
/** | |
* libsass list manipulation problem | |
* I am using the following code as a crude example. | |
* the real world application I am trying to achieve | |
* is providing grid system setup via a single $args array. | |
*/ |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@mixin equivalent_fractions($numerator,$denominator){ | |
@for $i from -$numerator through -1{ | |
@if($numerator % abs($i) == 0 and $denominator % abs($i) == 0){ | |
numerator: $numerator; | |
increment: abs($i); | |
out: #{$numerator % abs($i)}-#{$denominator % abs($i)}; |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@mixin equivalent_fractions($numerator,$denominator){ | |
@for $i from -$numerator through -1{ | |
@if($numerator % abs($i) == 0 and $denominator % abs($i) == 0){ | |
out: #{$numerator / abs($i)}-#{$denominator / abs($i)}; | |
} | |
} |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@import "sass-list-maps"; | |
@function equivalent_fractions($numerator,$denominator){ | |
$fractions: (); | |
@for $i from -$numerator through -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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@import "sass-list-maps"; | |
/** | |
* Flexbones Grid System | |
* | |
* Version 1.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) | |
// ---- | |
$array:( | |
allitems: ( | |
subitems: ( | |
item1: 'test1', | |
item2: 'test2', |
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
// ---- | |
// libsass (v3.0) | |
// ---- | |
/** | |
* Flexbones Grid System | |
* | |
* Version 1.1 | |
* Author: Rory Ashford | |
*/ |
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
// ---- | |
// libsass (v3.0) | |
// ---- | |
$comics: ( | |
deadpool: ( | |
issue: 001, | |
year: 1995 | |
), | |
fables: ( |
OlderNewer