Skip to content

Instantly share code, notes, and snippets.

View alanmoo's full-sized avatar

Alan Mooiman alanmoo

View GitHub Profile
@alanmoo
alanmoo / SassMeister-input.scss
Created January 28, 2014 20:17
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$etfgreen: #99CC00;
$etfpurple: #6633CC;
h1{
color: $etfgreen;
@alanmoo
alanmoo / SassMeister-input.scss
Created January 28, 2014 17:18
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@mixin et-gray-dient{
background: #a8a7a5;
background: linear-gradient(to bottom, #a8a7a5 0%,#8f8e8c 100%);
}
@alanmoo
alanmoo / focusActiveDirective.js
Last active December 20, 2015 06:59
When repeating radio inputs, use this AngularJS directive to make the browser focus on the active input.
angular.module('myApp', [])
.directive('focusActive', function(){
return {
restrict: "A",
link: function(scope, element, attrs) {
attrs.$observe('checked', function(){
if (element[0].checked){
element.focus();
}
})