Skip to content

Instantly share code, notes, and snippets.

View cdharrison's full-sized avatar
🎯
Focusing

@cdharrison cdharrison

🎯
Focusing
View GitHub Profile
@cdharrison
cdharrison / css-preprocessor-libraries.md
Created October 17, 2013 11:40
CSS Preprocessor Frameworks + Mixin Libraries

Frameworks/Mixin Libraries

@cdharrison
cdharrison / preprocessor-apps.md
Created October 17, 2013 11:31
CSS Preprocessor GUIs
@cdharrison
cdharrison / css-preprocessors.md
Last active December 25, 2015 16:09
CSS Preprocessors
@cdharrison
cdharrison / SassMeister-input.scss
Created October 16, 2013 05:55
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
/* Nesting */
nav{
ul{
margin: 0;
padding: 0;
@cdharrison
cdharrison / table-generated-content.html
Created August 22, 2013 20:20
A way to get generated content to appear after* a specific table row. (*Note: it actually puts it before the row proceeding the one... but whatevs.)
<!doctype html>
<html>
<head>
<title>
Test
</title>
<meta charset="utf-8" />
<style>
table{
border: 1px solid #000;
@cdharrison
cdharrison / css-scan.js
Created August 3, 2013 04:15
How to get list of all of the CSS classes used in an HTML file. Source: http://stackoverflow.com/a/7540783
var used = [];
var elements = null;
//get all elements
if (typeof document.getElementsByTagName != 'undefined') {
elements = document.getElementsByTagName('*');
}
if (!elements || !elements.length) {
elements = document.all; // ie5
@cdharrison
cdharrison / _buddypress.scss
Created August 3, 2013 03:48
A SCSS version of buddypress.css that comes with bp-default. Converted using http://css2sass.heroku.com/
/*--------------------------------------------------------------
Hello, this is the BuddyPress Legacy stylesheet.
----------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Navigation
1.1 - Pagination
2.0 - WordPress
2.1 - Images
@cdharrison
cdharrison / _mixins.scss
Created July 30, 2013 20:04
My base mixins
// Mixins
@mixin clearfix-overflow{
overflow: hidden;
_overflow: visible;
zoom: 1;
}
@mixin boxEmboss($opacity, $opacity2){
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0;
body{
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
@cdharrison
cdharrison / new_gist_file
Created July 30, 2013 13:39
Set WordPress WP_HOME and WP_SITEURL so that it matches wildcard (www or no-www)
define('WP_HOME','http://'. $_SERVER['SERVER_NAME']);
define('WP_SITEURL','http://'. $_SERVER['SERVER_NAME']);