Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
body{
background: #EDECE8 url("http://www.codedevelopr.com/assets/images/bg.png") repeat;
}
#sidebar {
width: 290px;
margin-left: 40px;
font-size: .85em;
body{
background: #EDECE8 url("http://www.codedevelopr.com/assets/images/bg.png") repeat;
}
#sidebar {
width: 290px;
margin-left: 40px;
font-size: .85em;
}
@jasondavis
jasondavis / gist:2570468
Created May 1, 2012 18:53 — forked from zanematthew/gist:2500025
Filters for WordPress Template Redirect with Custom Taxonomies and Custom Post Types
<?php
/**
* An "easier" interface for interacting with WordPress' template_redirect function.
*
* @package zm-wordpress-helpers
* @uses is_admin()
* @uses get_query_var()
*/
function bmx_race_schedule_redirect( $params=array() ) {
@jasondavis
jasondavis / gist:2570472
Created May 1, 2012 18:54 — forked from zanematthew/gist:2500075
Custom action for WordPress Template Redirect
<?php
/**
* Determine if given templates exists if they do loads them
* based on the type of page being displayed.
*
* @uses is_single()
*/
if ( ! function_exists( '_zm_template_redirect' ) ) :
function _zm_template_redirect( $params=array()){
h2 {
padding: 4px 30px 4px 10px;
background: #FF2F2F;
color: white;
display: inline-block;
margin-bottom: 20px;
text-transform: uppercase;
}
body, ul, li {
font-size:14px;
font-family:Arial, Helvetica, sans-serif;
line-height:21px;
text-align:left;
}
@jasondavis
jasondavis / toc.php
Created June 24, 2012 01:50 — forked from livingstonef/toc.php
Adds a table of Content to Wordpress posts
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* video.php
*
* Requires PHP version 5.0 or more
*
* LICENSE: This source file is subject to version 3.01 of the GNU/GPL License
@jasondavis
jasondavis / dabblet.css
Created July 12, 2012 04:53
Nice Button
/**
* Nice Button
*/
.ml-button:active {
box-shadow: rgba(0, 0, 0, .15) 0 .05882352941176em .17647058823529em inset;
-webkit-box-shadow: rgba(0, 0, 0, .15) 0 .05882352941176em .17647058823529em inset;
-moz-box-shadow: rgba(0,0,0,.15) 0 .05882352941176em .17647058823529em inset;
transition-duration: 0s;
-webkit-transition-duration: 0s;
@jasondavis
jasondavis / dabblet.css
Created July 17, 2012 16:48
Nice Button
/**
* Nice Button
*/
.ml-button:active {
box-shadow: rgba(0, 0, 0, .15) 0 .05882352941176em .17647058823529em inset;
-webkit-box-shadow: rgba(0, 0, 0, .15) 0 .05882352941176em .17647058823529em inset;
-moz-box-shadow: rgba(0,0,0,.15) 0 .05882352941176em .17647058823529em inset;
transition-duration: 0s;
-webkit-transition-duration: 0s;

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables