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 / unit status
Last active March 11, 2020 14:47
jQuery for Drupal
<!-- Fake data. -->
<div class="view-content">
<div class="unit">
<div class="unit-shortname">
SQN-01
</div>
@startinggravity
startinggravity / lando-emulsify.md
Last active October 29, 2019 01:50
Using Lando with Emulsify

I have had a few requests for more information about using Lando with Drupal 8, the Emulsify theme and Gulp. In order to put what I've learned in one place, I'm adding my notes here.

My initial problem was reported here, but since then I have discovered a few additional things worth noting.

Once you have a working site on Lando and are ready to install Emulsify use the following directions instead of what has provided by the Emulsify developers. These instructions assume you have used Composer to install Drupal and that the root Drupal files are in the /web directory.


NOTE: To follow these instructions, you will need to run NPM commands from your host machine, which means you must have Node and NPM installed. Fortunately, they are installed together in one installation. If you wish to confirm you have them installed, run node -v and npm -v. To install, visit nodejs.org and follow the i

### Keybase proof
I hereby claim:
* I am startinggravity on github.
* I am jimsmith (https://keybase.io/jimsmith) on keybase.
* I have a public key ASAtKPq1mptWJfmmxKOdlz131Finbe5m7p7SNYHyfmg8qAo
To claim this, I am signing this object:
# 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...
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
-
@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(
@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.
@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>