Skip to content

Instantly share code, notes, and snippets.

View startinggravity's full-sized avatar

Jim Smith startinggravity

View GitHub Profile
@startinggravity
startinggravity / Border Radius
Last active November 30, 2022 15:12
Sass Mixins
@mixin border-radius ( $value: 5px ) {
-webkit-border-radius: $value;
-moz-border-radius: $value;
border-radius: $value;
}
// Usage:
div {
@include border-radius(10px);
@startinggravity
startinggravity / Hover mixin
Created November 25, 2014 15:31
Hover transition
@mixin hover($time) {
-webkit-transition: all $time ease-in-out;
-o-transition: all $time ease-in-out;
-moz-transition: all $time ease-in-out;
transition: all $time ease-in-out;
}
// Use as:
@include hover(.3s);
@startinggravity
startinggravity / _layers.scss
Created March 24, 2015 15:55
Sassmap - Layers
/* Set x-index key value pairs */
$layers: (
modal: 8,
logo: 7,
header: 6,
footer: 5,
sidebar: 4,
caption: 3,
image: 2,
@startinggravity
startinggravity / _animation.scss
Created March 24, 2015 16:01
Sass Map - Animation
/* Set up the Sass Map */
$animations: (
'fade-in': (
0%: (
opacity: 0
),
100%: (
opacity: 1
)
@startinggravity
startinggravity / link.scss
Created May 6, 2015 16:57
Link underline with rollover
@startinggravity
startinggravity / SassMeister-input-HTML.html
Created September 14, 2015 15:44
Generated by SassMeister.com.
<ul class="primary-nav">
<li class="primary-nav__item">
<a href="/" class="primary-nav__link is-active">Menu Item 1</a>
</li>
<li class="primary-nav__item">
<a href="/node/2" class="primary-nav__link">Menu Item 2</a>
</li>
<li class="primary-nav__item">
<a href="/node/3" class="primary-nav__link">Menu Item 3</a>
</li>
@startinggravity
startinggravity / menu--social-media.html.twig
Created October 30, 2015 15:37
Use a Drupal menu as a social media links block
{#
/**
* @file
* Theme override to display a social media links from a menu.
*
* Available variables:
* - menu_name: The machine name of the menu.
* - items: A nested list of menu items. Each menu item contains:
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
Task starts processing: Verify: Starting Gravity 2016-05-20 D7.43
-
Returned from hook drush_hosting_task_validate
-
Calling hook drush_hosting_alias_pre_hosting_task
-
Returned from hook drush_hosting_alias_pre_hosting_task
-
Calling hook drush_hosting_clone_pre_hosting_task
-
# boa info more
Aegir on Debian/jessie x86_64
VPS Linux KVM guest
CPU 2
RAM 3948
XTR _XTRAS_LIST="ADM CSF FTP"
MFX _MODULES_FIX=YES
PFX _PERMISSIONS_FIX=YES
DBS _DB_SERIES=10.1
BOA [20:27:35] ==> Skynet Agent v.BOA-3.1.0 welcomes you aboard!
BOA [20:27:38] ==> INFO: UPGRADE
BOA [20:27:47] ==> Aegir on aegir.startinggravity.hosting Debian/jessie x86_64 PHP 5.6
BOA [20:27:48] ==> INFO: Updating packages sources list...
BOA [20:27:48] ==> INFO: We will use Debian mirror httpredir.debian.org
BOA [20:27:53] ==> INFO: Checking BARRACUDA version...