Skip to content

Instantly share code, notes, and snippets.

@cfarm
cfarm / wp-plugins-bryn-mawr-college.md
Created September 24, 2012 16:38
WordPress plugins for Bryn Mawr Blogs
@cfarm
cfarm / resp-helpers.scss
Created January 31, 2013 16:39
Responsive Breakpoints
// ==========================================================================
// responsive breakpoints
// 320 - 480 - 768 - 1024
// ==========================================================================
@media screen and (max-width: 30em) {
// helper to display 320px width on desktop
// comment this out if you need to look @ 480px width
.wl-appwrapper {
width: 320px;
@cfarm
cfarm / sass mixins.scss
Created February 15, 2013 00:15
sass mixins
// ==========================================================================
// cf
// ==========================================================================
@mixin cf {
*zoom: 1;
&:before,
&:after {
content: "";
display: table;
@cfarm
cfarm / sass mixins.scss
Created February 28, 2013 19:31
sass mix-ins for utilities stylesheet
// ==========================================================================
// cf
// ==========================================================================
@mixin cf {
*zoom: 1;
&:before,
&:after {
content: "";
display: table;
@cfarm
cfarm / config.rb
Created March 28, 2013 17:45
config file for Sass Compass setup
# Require any additional compass plugins here.
require 'susy'
require 'modular-scale'
require 'sassy-buttons'
require 'breakpoint'
require 'compass-css-arrow'
require 'rgbapng'
# Set this to the root of your project when deployed:
http_path = "/"
@cfarm
cfarm / No-Media-Queries-Fallback.markdown
Created October 28, 2013 14:47
A Pen by Catherine Farman.
@cfarm
cfarm / clearfix-mixin.scss
Created November 11, 2013 23:50
Sass Clearfix Mixin
@mixin clearfix {
*zoom: 1;
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
@cfarm
cfarm / clearfix-mixin-include.scss
Created November 11, 2013 23:54
Using a Mixin
div.column {
background: white;
@include clearfix;
}
@cfarm
cfarm / breakpoint-mixin-basic.scss
Created November 11, 2013 23:54
Basic Mixin for Media Queries
@mixin breakpoint($screenWidth: 400px) {
// output the mixin content inside of a media query
@media screen and (min-width: $screenWidth) { @content; }
}
@cfarm
cfarm / breakpoint-mixin-variables.scss
Created November 11, 2013 23:55
Breakpoint Mixin for Media Queries, with Variables
$smallScreen: 400px;
$mediumScreen: 700px;
div.column {
width: 100%;
// column width changes to be half the viewport
@include breakpoint($smallScreen) {
width: 50%;
float: left;
}