Skip to content

Instantly share code, notes, and snippets.

Avatar

Craig Waton atcraigwatson

  • RokkitPress
  • United Kingdom
View GitHub Profile
@atcraigwatson
atcraigwatson / SassMeister-input.scss
Last active Aug 31, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
// Root Font Size Applies To HTML Element
$root-font-size : 14px;
// Body Font Size Is Refering to That Set On The HTML Element
$body-font-size : 1rem;
View SassMeister-input-HTML.html
<button class="primary">hello</button>
<button class="success">hello</button>
<button class="warning">hello</button>
<button class="alert">hello</button>
View SassMeister-input-HTML.html
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
View prf-objectives-section
.home section#text-10,
.home section#text-11,
.home section#text-12,
.home section#text-13 {
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
background: #8f1538;
color: #fff;
@atcraigwatson
atcraigwatson / code-structure-key-bindings-pc.md
Created Feb 28, 2017
Code Structure Key Bindings for PC
View code-structure-key-bindings-pc.md

ALT-195├

ALT-192 └

ALT-196 ─

ALT-179 │

View shortlist.js
// Only load this script when the document is ready as it needs to run after.
$( document ).ready( function() {
// Check browser supports localStorage
if ( localStorage ) {
// Add link for shortlist page to bottom of 'New Memorials' dropdown
var navbarDropdownShortlistItem = '<a class="dropdown-item" id="dropdownMyShortlist" href="../my-shortlist.html">My Shortlist</a>';
@atcraigwatson
atcraigwatson / wp-job-manager-quick-search.php
Created Aug 30, 2017
A function to drop a quick job search section into the genesis layout
View wp-job-manager-quick-search.php
<?php
add_action( 'genesis_after_header', 'hiringsauce_add_quick_search_under_nav' );
function hiringsauce_add_quick_search_under_nav() {
?>
<div id="homepage-quick-search">
<form method="GET" action="https://hiringsauce.com/jobs">
<span>Quick Search</span>
@atcraigwatson
atcraigwatson / contact.html
Created Apr 23, 2017
Bootstrap Ajax Contact Form
View contact.html
<form id="contact-form" method="post" action="mailer.php" role="form">
<div class="messages"></div>
<div class="controls">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="form_name">Firstname *</label>