Skip to content

Instantly share code, notes, and snippets.

View michaeltroy's full-sized avatar

Michael michaeltroy

  • Newcastle, Australia
View GitHub Profile
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
/**
* grab your components.
*/
sass = require('gulp-ruby-sass'),
component = require('gulp-component');
/**
* Set your paths.
*/
var paths = {
@michaeltroy
michaeltroy / gist:7b21401a9b951fbcf793
Created September 11, 2014 22:54
Red payment amounts
var list = document.body.querySelectorAll('span[data-html="Amount"]');
for (i = 0; i < list.length; i++) {
var item = list[i];
var content = item.innerHTML;
var amount = content.match(/^-[$]?/);
// var done = amount.className += " red"
console.log(content);
/*
Using the current pattern library as a guide:
http://nib-pattern-library-staging.azurewebsites.net/pages/buttons.html
*/
.v2-button, .v2-button-secondary {color: White;}
.v2-button-tertiary {color: grey;}
.v2-button-supplementary {color: green;}
/* Modifiers */
@michaeltroy
michaeltroy / _.md
Last active November 20, 2015 13:44
test