Skip to content

Instantly share code, notes, and snippets.

View charliewilco's full-sized avatar
🦕
...

Charlie ⚡️ charliewilco

🦕
...
View GitHub Profile
@charliewilco
charliewilco / Gulpfile.js
Last active August 29, 2015 14:04
Current Working Gulpfile
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
sass = require('gulp-sass'),
plumber = require('gulp-plumber'),
autoprefixer = require('gulp-autoprefixer'),
connect = require('gulp-connect');
gulp.task('scripts', function(){
gulp.src('js/*.js')
.pipe(plumber())
@charliewilco
charliewilco / arsenal--tabs.js
Last active August 29, 2015 14:04
jQuery Tabs
$('ul.tabs').each(function(){
// For each set of tabs, we want to keep track of
// which tab is active and it's associated content
var $active, $content, $links = $(this).find('a');
// If the location.hash matches one of the links, use that as the active tab.
// If no match is found, use the first link as the initial active tab.
$active = $($links.filter('[href="'+location.hash+'"]')[0] || $links[0]);
$active.addClass('tabs--active');
@charliewilco
charliewilco / twelve.scss
Last active August 29, 2015 14:04
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.0)
// ----
$ends: 3,4,6,8,12;
$gutterSize: 2%;
@each $end in $ends {
@for $i from 1 through $end {
$single--column: (100 - (($end - 1)*$gutterSize )) / $end;
<div class="block">
<div class="block--element">
<h3>Headline Level 3</h3>
<div class="block--element_modifier">
<p>Other stuff you might need to know</p>
</div>
</div>
<div class="block--element">
<h3>Headline Level 3</h3>
<div class="block--element_modifier">
@charliewilco
charliewilco / app.scss
Created October 10, 2014 21:05
each directive to print out color values and variable names
.color {
&--fill {
border-radius: .5rem;
width: 8.5rem;
height: 3rem;
position: relative;
&::after {
content: "";
position: absolute;
width: 0;
@charliewilco
charliewilco / SassMeister-input.scss
Created January 9, 2015 20:26
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
$dirs: left, right, center;
@each $dir in $dirs {
.#{$dir} { text-align: #{$dir}; }
}
@charliewilco
charliewilco / _typography-util.scss
Last active August 29, 2015 14:16
Typographic Utilities
.caps { text-transform: uppercase; }
.lower { text-transform: lowercase; }
.tt-none { text-transform: none; }
$dirs: left, right, center;
@each $dir in $dirs {
.align-#{$dir} { text-align: #{$dir}; }
}
$ws: 300, 400, 700;
@charliewilco
charliewilco / _columns.scss
Last active August 29, 2015 14:16
Floats Based Column Grid
// ----
// libsass (v3.1.0)
// ----
$ends: 4, 6, 8, 12;
$gutterSize: 2%;
@each $end in $ends {
@for $i from 1 through $end {
$single--column: (100 - (($end - 1)*$gutterSize )) / $end;
.col-#{$i}-#{$end} {
@charliewilco
charliewilco / error.css
Created August 4, 2015 07:08
PostCSS Variables Custom Selectors
@use cssnext;
:root {
--gotham: 'Gotham', 'Proxima Nova', 'Avenir Next', sans-serif;
--break__sm: 32rem;
}
@custom-media --vp-sm (width >= var(--break__sm));