- 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// Just Another Sassy Grid | |
// --------------------------------------------- | |
$pad: 2rem; | |
$base-container-width: 100rem; | |
$gridpad: ( $pad / $base-container-width ) * 100%; | |
.row { | |
// margin-bottom: $gridpad; // Optional row padding |
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
// Body Classes | |
// ---------------------------------------- | |
.home {} // if it's the homepage | |
.page {} // if it's any page | |
.postid-XX {} // if it's a post - XX is the post's ID | |
.rtl {} // when dealing with right-to-left content | |
.blog {} // if it's the custom blog listing | |
.archive {} // if it's any sort of archive page | |
.category {} // if it's a categories listing page | |
.tag {} // if it's a tags listing 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
// Show ACF menu for user_ID 1 only | |
function remove_acf_menu() { | |
$current_user = wp_get_current_user(); | |
if ( $current_user->ID != 1 ) { | |
remove_menu_page( 'edit.php?post_type=acf' ); | |
} | |
} | |
add_action( 'admin_menu', 'remove_acf_menu', 100 ); |
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
UPDATE wp_posts SET ping_status="closed"; |
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
/** | |
* Color Scheme | |
* Add color theme class to <body> | |
* Requires custom field 'color_scheme' | |
*/ | |
// add_filter('body_class', 'genesass_color_scheme'); | |
function genesass_color_scheme($classes) { | |
$color_scheme = get_field('color_scheme'); |
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
<section id="intro"> | |
<p class="intro">This is the style guide for your website. This document sets the styles and standards to be used when updating or contributing to your site. In this guide you will find examples of what your site is supposed to look like and the many HTML elements that you can use in your posts and pages.</p> | |
<p class="intro">Not only can you view how the elements will appear on your site, but you can also see how these elements are implemented by viewing the <q>Your Website Style Guide</q> post within the WordPress post editor.</p> | |
</section><!-- END #intro --> | |
<section id="branding"> | |
<h2 class="font-script callout">Branding</h2> | |
<h3>Colors & Textures</h3> | |
<ul class="colors"> | |
<li class="color-light"><var>#F5F5F5</var></li> |
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
// COLOR WHEEL | |
@mixin colorwheel($color: $colorBrand,$colors: 6,$spectrum: 180deg,$offset: 30deg) { | |
@for $i from 0 to $colors { | |
&:nth-child(#{$i}) { | |
background: adjust-hue($color, $offset + $spectrum / $colors * $i); | |
} | |
} | |
} |