Skip to content

Instantly share code, notes, and snippets.

View andyharris's full-sized avatar
🏠
Working from home

Andy Harris andyharris

🏠
Working from home
View GitHub Profile
@andyharris
andyharris / ahtest001.scss
Created November 1, 2012 18:46
Why does my visual grid not change?
$visual-grid : true;
// ---------------------------------------------------------------------------
// Imports
@import "bourbon/bourbon";
@import "neat/neat";
@import "neat/neat-helpers";
$landscape: new-breakpoint(min-width 480px 4);
@andyharris
andyharris / gist:4026709
Created November 6, 2012 18:55
Removal of nth-omega at media sizes
li {
@include span-columns(2 of 4);
@include nth-omega(2n);
@include media($tablet) {
@include span-columns(2 of 8);
@include nth-omega(4n);
// NEED TO REMOVE nth-omega AT 2n HERE, AND AUTO APPLY CORRECT MARGIN-RIGHT
}
@andyharris
andyharris / gist:4193218
Created December 3, 2012 06:52
Pick 5 random from channel
<?php
$randoms = array();
?>
{exp:channel:entries channel="styleguide" disable="categories|category_fields|member_data|pagination|trackbacks" dynamic="no" limit="5" orderby="random"}
<?php
array_push($randoms, '{entry_id}');
?>
{/exp:channel:entries}
<ul>