- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_blog () { | |
global $post; | |
$posttype = get_post_type($post ); | |
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ; | |
} | |
Usage: | |
<?php if (is_blog()) { echo 'You are on a blog page'; } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Duke Admissions Example - Part 1 */ | |
.hwr-features-1 .hwr-feature-title span{ | |
display: block; | |
width: 64px; | |
height: 64px; | |
margin: 0 auto 10px auto; | |
} | |
.hwr-features-1 li.color1 h2 span { | |
background: #0D2E62; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Azure Standard, Frontier Wholesale and Bountiful Baskets are some of our sources of organic or non-GMO foods.</p> | |
<p>We have been ordering bulk spices, herbs and tea from the Frontier co-op for several years.</p> | |
<h3>Azure Standard</h3> | |
<p>We recently started to pick up the monthly Azure Standard order for Lake Mead City / Meadview/ Dolan Springs.</p> | |
<p>Azure is located in Oregon and once a month they deliver via truck to Kingman (among many other stops). To see the prices you have to open a free account at https://www.azurestandard.com</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
butler_add_action( 'init', 'canva_do_remove_page_comments_support' ); | |
function canva_do_remove_page_comments_support() { | |
remove_post_type_support( 'page', 'comments' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Raleway:700,800); | |
html, body { margin: 0; } | |
:focus { outline: none; } | |
::-webkit-input-placeholder { color: #DEDFDF; } | |
::-moz-placeholder { color: #DEDFDF; } | |
:-moz-placeholder { color: #DEDFDF; } | |
::-ms-input-placeholder { color: #DEDFDF; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input name="search" | |
id="search" | |
type="text" | |
placeholder="Search by grape or wine name" | |
on="input-throttled:AMP.setState({ | |
prefs: { | |
searchTerm: event.value, | |
view: 'list' | |
} | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[icon type="beer"] |
OlderNewer