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
@mixin rem($property, $values, $use-px-fallback: $rem-with-px-fallback) { | |
// Create a couple of empty lists as output buffers. | |
$font-size: $base-font-size; | |
$px-values: (); | |
$rem-values: (); | |
// Loop through the $values list | |
@each $value in $values { | |
// For each property value, if it's in rem or px, derive both rem and px values for it and add those to the end of the appropriate buffer. | |
// Ensure all pixel values are rounded to the nearest pixel. |
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
/* ================================ | |
WordPress WYSIWYG Editor Styles | |
================================ */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
max-width: 100%; | |
height: auto; | |
} | |
.alignleft, img.alignleft { |
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
<?php | |
/** | |
* Flex Content Loop for Modules | |
*/ | |
if (have_rows('layout_modules')): | |
while (have_rows('layout_modules')): | |
the_row(); | |
switch (get_row_layout()) { |
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
/** | |
* Based off of image ID. | |
* | |
* You can use this method to pull in several different crops for responsive. | |
* The crop can be custom, or one of WP default ones, or leave empty. | |
* | |
* wp_get_attachment_image_src( $attachment_id, $size, $icon ) | |
* http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src | |
*/ |
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
$brand_colors: ( | |
purple $color-purple, | |
maroon $color-maroon, | |
orange $color-orange, | |
yellow $color-yellow, | |
); | |
.brand-color-bg { | |
@each $color in $brand_colors { | |
&.#{nth($color, 1)} { |
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
module.exports = function() { | |
var $nav = $('.nav-global'), | |
$toggle = $('.menu-trigger'), | |
$active_class = 'nav-active', | |
prevent_default = function(e) { | |
e = e || window.event; | |
if (e.preventDefault) | |
e.preventDefault(); | |
e.returnValue = false; |
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
<aside> | |
<nav class="page-sub-navigation"> | |
<?php | |
// get child pages from post parent, otherwise | |
// get child pages from the current page being viewed, in most cases the parent | |
if ($post->post_parent) { | |
$page_list = wp_list_pages( 'title_li=&display=0&child_of='.$post->post_parent.'&echo=0' ); | |
} else { |
OlderNewer