Skip to content

Instantly share code, notes, and snippets.

View danielthall's full-sized avatar

Daniel T. Hall danielthall

View GitHub Profile
@danielthall
danielthall / Smart Buttons
Last active December 22, 2015 18:39
Button mixin that sets text and text-shadow colors based on the button color. Needs Compass.
@mixin button ($color) {
@include filter-gradient (lighten($color,7%),$color);
@include background-image (linear-gradient(lighten($color,7%),$color));
@include box-shadow (0 .1em 0 lighten($color,20%) inset);
@include border-radius(5px);
@include text_color ($color);
font-size: 1em;
padding: .7em 1em;
border: 1px solid darken($color,3%);
cursor:pointer;
@danielthall
danielthall / gist:7236037
Created October 30, 2013 16:50
Simple Preloader
<!-- Preloader -->
<div id="preloader">
<div id="status">&nbsp;</div>
</div>
<!-- Preloader -->
<script type="text/javascript">
//<![CDATA[
$(window).load(function() { // makes sure the whole site is loaded
$window = $(window);
$('section[data-type="background"]').each(function() {
var $scroll = $(this);
$(window).scroll(function() {
var xPos = -($window.scrollTop() / $scroll.data('speed'));
var coords = xPos + 'px ' + 'bottom';
$scroll.css({ backgroundPosition: coords });
});
});
@danielthall
danielthall / vehicle-y-m-m.txt
Created May 13, 2016 16:00
Vehicle Year Make Model list for Craft Type plugin for Sketch
1997 Acura 1.6EL
1998 Acura 1.6EL
1999 Acura 1.6EL
2000 Acura 1.6EL
2001 Acura 1.7EL
2002 Acura 1.7EL
2003 Acura 1.7EL
2004 Acura 1.7EL
2005 Acura 1.7EL
1997 Acura 2.2CL
@danielthall
danielthall / vehicle-makes.txt
Created May 13, 2016 16:04
Vehicle Makes list for Craft Type plugin for Sketch
Acura
Audi
BMW
Buick
Cadillac
Chevrolet
Chrysler
Daewoo
Dodge
Eagle
@danielthall
danielthall / vehicle-models.txt
Created May 13, 2016 16:06
Vehicle Model list for Craft Type plugin for Sketch
1.6EL
1.7EL
2.2CL
2.3CL
2.5TL
3.0CL
3.2CL
3.2TL
CSX
ILX
@danielthall
danielthall / uuid.txt
Created May 13, 2016 16:11
UUID list for Craft Type plugin for Sketch
3a1e9f8a-e564-4ca4-9e28-6f925524f655
c21317bc-118b-4907-b1e9-a4a5380d3052
bf03823c-2dc6-445a-bf11-16d489b12b18
1b4e74b6-8ab4-42b9-a45d-4674d9916ad7
428eb59c-e032-4876-af14-d3c63a5ef544
6ebb6f07-991d-419f-bc9d-99a18e68be71
5e4bb004-24f1-489a-8302-91d1d473282a
e5e8f1f7-6422-42b1-8d7c-cbdc386fdd2f
72b1f8e0-08ed-4f48-a4cf-87f26cdcd12f
f1c2e347-7fdb-4d23-9b1e-80da89273203
@danielthall
danielthall / time-ago.txt
Created May 13, 2016 16:12
Time Ago list for Craft Type plugin for Sketch
A few sec ago
7 sec ago
10 sec ago
12 sec ago
17 sec ago
21 sec ago
23 sec ago
27 sec ago
34 sec ago
36 sec ago
@danielthall
danielthall / 0-50.txt
Created May 13, 2016 16:26
Small Number (0-50) list for Craft Type plugin for Sketch
0
1
2
3
4
5
6
7
8
9
@danielthall
danielthall / 0-1000.txt
Created May 13, 2016 16:31
Number (0-1000) list for Craft Type plugin for Sketch
0
1
2
3
4
5
6
7
8
9