Skip to content

Instantly share code, notes, and snippets.

View 1stevengrant's full-sized avatar
🏠
Working from home

Steven Grant 1stevengrant

🏠
Working from home
View GitHub Profile
@1stevengrant
1stevengrant / config.php
Created April 29, 2016 08:57
fieldframe settings
/* Fieldframe settings
--------------------------------------------------------------------*/
$conf['ft_path'] = $conf['server_path']."/".$conf['system_folder']."/extensions/fieldtypes/";
$conf['ft_url'] = $conf['cp_url']."/extensions/fieldtypes/";
@1stevengrant
1stevengrant / _helper.sass
Created March 9, 2016 12:01
I wanted a way to generate helper classes for paddings and margins without having to add them all individually. The result is a Sass list containing my values and then looping over these to give me ```.M-T--0 .M-T--1``` etc.
$margin-sides : ("A": "margin", "T": "margin-top", "R": "margin-right", "B": "margin-bottom", "L": "margin-left")
$padding-sides : ("A": "padding", "T": "padding-top", "R": "padding-right", "B": "padding-bottom", "L": "padding-left")
$sizes : (0: 0, 1: 1em, 2: 2em, 3: 3em, 4: 4em)
@each $side, $property in $margin-sides
@each $key, $value in $sizes
.M-#{$side}--#{$key}
#{$property}: $value
@each $side, $property in $padding-sides
title: Kitchen Sink
fields:
replicator:
type: replicator
display: Replicator
instructions: This is a `replicator` field.
sets:
quote:
display: Quote
instructions: Something someone said.
@1stevengrant
1stevengrant / general.php
Created February 5, 2016 10:36
local config
<?php
/**
* Local Config Override
*
* Overrides added here will get appended to the end of the
* custom config array for all environments: '*'
*/
return array(
<?php
// Local database info
return array(
'server' => 'localhost',
'user' => 'root',
'password' => 'root',
'database' => 'scotchbox'
);
@1stevengrant
1stevengrant / _colours.scss
Created October 19, 2015 21:27
Harvest Bible Chapel Glasgow colour scheme
// SASS style sheet */
// Palette color codes */
// Palette URL: http://paletton.com/#uid=30i0u0krCufhdDCmgvUu-oLyPjB */
// Feel free to copy&paste color codes to your application */
// As hex codes */
$color-primary-0: #F16421; // Main Primary color */
// the config file for Gulp tasks
// the majority of settings for inidividual tasks resides here
// there are a couple of tasks where settings are declared right
// inside their resepctive task.js file for one reason or another
// if you're adding a new task, create a new task.js file and set
// the appropriate module export settings appropriately
var dest = './data/drupal7/sites/all/themes/';
var drupalThemeName = 'cignaGlobal';
var drupalThemePath = dest + drupalThemeName;
var browserSync = require('browser-sync');
var gulp = require('gulp');
var config = require('../config').browserSync;
gulp.task('browserSync', function() {
browserSync(config);
});
var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var handleErrors = require('../util/handleErrors');
var config = require('../config').sass;
var autoprefixer = require('gulp-autoprefixer');
gulp.task('sass', function () {
return gulp.src(config.src)
<header class="header">
<div class="container relative">
<a href="/" class="header__logo svg-logo svg-logo-dims"></a>
<h1 class="header__sitename svg-sitename svg-sitename-dims"></h1>
<ul class="lang-switch inline-list">
<li class="lang-switch__item"><a href="/" class="lang-switch__link eng">English</a></li>
<li class="lang-switch__item"><a href="/evangile21" class="lang-switch__link fra">Francais</a></li>
<li class="lang-switch__item"><a href="/coalicion" class="lang-switch__link esp">Español</a></li>
<li class="lang-switch__item"><a href="//australia.thegospelcoalition.org" class="lang-switch__link aus">Australian</a></li>
<li class="lang-switch__item"><a href="/about/donate" class="lang-switch__link">Donate</a></li>