Skip to content

Instantly share code, notes, and snippets.

View lelandf's full-sized avatar

Leland Fiegel lelandf

View GitHub Profile
.social-links a[href*='snapchat.com']:before {
background-image: url('snapchat-ghost.svg'); /* SVG fill color of #0054a6 */
background-position: center center; /* Center it vertically/horizontally like other icons */
background-repeat: no-repeat; /* Don't repeat it, like other icons */
background-size: 16px; /* Should match the font size of other icon font */
content: ''; /* To make sure icon font fallback isn't displayed */
height: 48px; /* 48px height to match other icons */
width: 100%; /* 48px width to match other icons */
filter: brightness(0%); /* Make initial color black */
}
@lelandf
lelandf / adaline-snapchat.css
Created May 23, 2016 14:07
Add Snapchat support to the Adaline social menu.
.social-links ul a[href*='snapchat.com']:before {
content: '\f2ac'; /* http://fontawesome.io/icon/snapchat-ghost/ */
}
@lelandf
lelandf / main.js
Last active July 22, 2016 14:50
Milan Masonry Fix
jQuery( document ).ready( function() {
/* Primary menu subpages */
var expand_link = jQuery( '<button class="menu-expand"><span class="screen-reader-text">' + js_i18n.next + '</span></button>' );
var back_link = jQuery( '<li><button class="menu-back">'+ js_i18n.back +'</button></li>' );
jQuery('#slide-menu .nav-menu').data('depth', 0);
jQuery('#slide-menu .menu-item-has-children > a, #slide-menu .page_item_has_children > a').after(expand_link);
jQuery('#slide-menu .sub-menu, #slide-menu .children').prepend(back_link);
@lelandf
lelandf / footer.php
Last active July 29, 2016 00:57
Owari Footer
@lelandf
lelandf / style.css
Created July 30, 2016 00:12
Owari Child Theme CSS Header
/*
Theme Name: Owari Custom Footer Text
Theme URI: https://themetry.com/remove-footer-credits/
Description: This is a child theme of Themetry's Owari theme which demonstrates how to customize the footer text
Author: Themetry
Author URI: https://themetry.com
Template: owari
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@lelandf
lelandf / functions.php
Last active July 30, 2016 00:14
Owari Child Theme Functions
<?php
/**
* Owari Custom Footer Text functions
*
* @package Owari Custom Footer Text
*/
/**
* Enqueue styles.
*/
@lelandf
lelandf / footer.php
Created July 30, 2016 00:25
Owari Custom Footer