Skip to content

Instantly share code, notes, and snippets.

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

Jake Rayson growdigital

🏠
Working from home
View GitHub Profile
@growdigital
growdigital / gist:4353846
Created December 21, 2012 16:30
LESS basic drop shadow & inset shadow
// Drop shadow
///////////////
// Parameters are:
// 1. Horizontal offset
// 2. Vertical offset
// 3. Blur radius (optional)
// 4. Spread radius
// 5. Alpha transparency
// * Color set to BLACK
@growdigital
growdigital / gist:4353855
Created December 21, 2012 16:31
LESS basic vertical gradient
// Vertical gradient
/////////////////////
.vert_grad (@start-color, @end-color) {
background-color: @end-color;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(@start-color), to(@end-color)); /* Konqueror */
background-image: -moz-linear-gradient(@start-color, @end-color); /* FF 3.6+ */
background-image: -ms-linear-gradient(@start-color, @end-color); /* IE10 */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @start-color), color-stop(100%, @end-color)); /* Safari 4+, Chrome 2+ */
@growdigital
growdigital / gist:4633355
Created January 25, 2013 10:28
adamstac's rem mixin
// Baseline, measured in pixels
// The value should be the same as the font-size value for the html element
// If the html element's font-size is set to 62.5% (of the browser's default font-size of 16px),
// then the variable below would be 10px.
$baseline-px: 10px;
@mixin rem($property, $px-values) {
// Convert the baseline into rems
$baseline-rem: $baseline-px / 1rem;
// Print the first line in pixel values
@growdigital
growdigital / gist:39e79fdce6918f09c559
Created May 27, 2014 10:49
WebAIM's WCAG 2.0 Checklist
@growdigital
growdigital / gist:a98d3fb9efe575159151
Last active August 29, 2015 14:02
Setting WordPress permissions
@growdigital
growdigital / .editorconfig
Last active August 29, 2015 14:05
Grow Digital default .editorconfig
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@growdigital
growdigital / .gitignore
Last active August 29, 2015 14:05
Grow Digital default .gitignore
# Don't version the node_modules, make sure to install with `npm install`
node_modules
# Don't version bower_components, install with `bower install`
src/bower_components
# Use empty .gitkeep files to keep directory structure
# Normally, don't version `dist` directory. Unless you need it for
# GitHub Pages or similar
@growdigital
growdigital / HTML5 minimal template
Last active August 29, 2015 14:05
HTML5 minimal template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
<script src=""></script>
@growdigital
growdigital / package.json
Created August 13, 2014 11:36
Grow Digital default package.json
{
"name": "default",
"version": "0.1.0",
"description": "",
"main": "index.html",
"devDependencies": {
"bower": "~1.3.8",
"gulp": "~3.8.6"
},
"scripts": {
@growdigital
growdigital / bower.json
Created August 13, 2014 11:40
Grow Digital default bower.json
{
"name": "default",
"version": "0.1.0",
"homepage": "https://github.com/growdigital/default",
"authors": [
"web@growdigital.org"
],
"description": "Description",
"private": false,
"license": "GPLv2",