Skip to content

Instantly share code, notes, and snippets.

View pstonier's full-sized avatar

Paul Stonier pstonier

View GitHub Profile
/*
Adds the weight of 700 for PT Sans
*/
@import url('https://fonts.googleapis.com/css?family=PT+Sans:700');
/*
Moves the search icon below the rest of the menu
*/
li.fusion-custom-menu-item.fusion-main-menu-search.fusion-last-menu-item {
@pstonier
pstonier / 0_reuse_code.js
Created March 23, 2016 13:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
$column: 90px;
$gutter: 10px;
$grid-columns: 12;
$max-width: 1100px;
$first-breakpoint-value: 400px;
$second-breakpoint-value: 835px;
$third-breakpoint-value: 1100px;
// Covers 0-399px wide screen size. 2 column grid
// 1/4 width on Desktop and adjust appropriately based on device size
@mixin one-quarter {
@include media($small-screen) {
@include span-columns(2);
@include omega(1n);
}
@include media($medium-screen) {
@include span-columns(2);
@include omega(2n);
}
<?php
//CONTENT-BLOCK LAYOUT
if( get_row_layout() == 'content-blocks'): ?>
<section <?php if( get_sub_field( 'section_id') ) { ?> id="
<?php the_sub_field('section_id'); ?>"
<?php } ?> class="row
<?php
<?php
if(get_field(‘field_name’))
{
echo ‘<p>’ . get_field(‘field_name’) . ‘</p>’;
}
?>