Skip to content

Instantly share code, notes, and snippets.

View startinggravity's full-sized avatar

Jim Smith startinggravity

View GitHub Profile
.logo {
display: block;
height: 50px;
width: 150px;
}
.svg .logo {
background: transparent url(../images/logo.svg) no-repeat;
background-size: 150px 50px;
}
%hideText {
position: absolute;
width: 1px; /* Setting this to 0 make it invisible for VoiceOver */
height: 1px; /* Setting this to 0 make it invisible for VoiceOver */
padding: 0;
margin: -1px;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
@startinggravity
startinggravity / social_icons
Last active December 24, 2015 02:39
Social Icons snippet
<?php
$social_links = array(
'twitter-icon' => array(
'#prefix' => '<div class="genericon">',
'#suffix' => '</div>',
'twitter' => array(
'#type' => 'link',
'#title' => t('Twitter'),
'#href' => 'https://www.twitter.com/#',
'#options' => array(