Skip to content

Instantly share code, notes, and snippets.

View ipetepete's full-sized avatar

Peter Peterson ipetepete

  • NOIRLab
  • Tucson, AZ
View GitHub Profile
@ipetepete
ipetepete / dabblet.css
Created December 29, 2011 17:24
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body{
background: #000;
color: rgb(247, 203, 5);
font-family: helvetica, sans-serif;
line-height:1.5em
}
.stage{
@ipetepete
ipetepete / dabblet.css
Created January 4, 2012 16:08
Star Wars Episode Cliff Notes
/**
* Star Wars Episode Cliff Notes
*/
body{
background: #000;
color: rgb(247, 203, 5);
font-family: helvetica, sans-serif;
line-height:1.5em
}
.stage{
@ipetepete
ipetepete / dabblet.css
Created January 4, 2012 16:52
Tree List
/**
* Tree List
*/
nav{ font: 120%/1.5 sans-serif; }
nav ul { -webkit-padding-start: 15px; list-style:none; }
nav li { line-height: 1.5em; -webkit-padding-start: 0.8em; display:list-item; }
nav li:before { content: "» "; color: lightblue; font-size: 1.1em; margin-top: -5px; margin-right: 5px; vertical-align: middle; display: inline-block;}
@ipetepete
ipetepete / index.html
Created August 29, 2012 16:38
I wanted to make form controls a little more finger friendly using the latest/greatest tricks. All while maintaining accessibility. Some solutions I found involved using images, and display: none. Unacceptable. This uses plain 'ol CSS to get the job done
<h3>The Check-BIOX!</h3>
<input type="checkbox" id="howudoin"/> <label for="howudoin"> Sup?</label>
<h3>The ham radio group</h3>
<div>
<input type="radio" name="ham" value="1" id="brkrbrkr"/> <label for="brkrbrkr">Breaker breaker</label>
</div><div>
<input type="radio" name="ham" value="2" id="tenfour"/>
<label for="tenfour">10-4</label>
</div>
@ipetepete
ipetepete / dabblet.css
Created August 31, 2012 20:40
Untitled
h2{ font-size: 0.3em;}
h2:after{
display: block;
content: "sup";
font-size: 24px;
}
@ipetepete
ipetepete / jquery.sparkli.js
Created September 14, 2012 22:46
Sparkli sprite animator plugin for jQuery
(function($){
$.fn.sparkli = function( opts ){
options = {
spriteWidth: null,
spriteHeight: null,
spritePadding: 0,
rows : 1,
cols : 10,
totalSprites : 0,
framesPerSecond: 20,
@ipetepete
ipetepete / flexgrid.less
Created November 7, 2012 03:43
Less Flex grid system
/**
* This flexible grid system is based on percentage of columns
* e.g. fgu3 (3 grid units) is 3/columns percent in a 800px wide container thats 800*.03 = 24px
*
* So its always known that fguX is X percent of the container.
* Nested units get a bit more complicated.
*
* Up to 100 columns is possible
*/
@ipetepete
ipetepete / dabblet.css
Created December 28, 2012 23:52 — forked from anonymous/dabblet.css
Button styles
/**
* Button styles
*/
body{
background: #fc6;
font-size: 16px;
font-family: sans-serif;
min-height: 100%;
}
@ipetepete
ipetepete / dabblet.css
Created January 19, 2013 05:17
Button styles
/**
* Button styles
*/
body{
background: #fc6;
font-size: 16px;
font-family: sans-serif;
min-height: 100%;
}
@ipetepete
ipetepete / dabblet.css
Created January 21, 2013 21:29
Keep calm and carry on
/**
* Keep calm and carry on
*/