Skip to content

Instantly share code, notes, and snippets.

View iljamaas's full-sized avatar

Ilja Maas iljamaas

View GitHub Profile
@iljamaas
iljamaas / dabblet.css
Last active August 29, 2015 14:06
Untitled
div{
width: 500px;
height: 200px;
background-color: grey;
position: relative;
border-right: 3px solid #ff0;
border-left: 3px solid #000;
}
.bot-left:after {
@iljamaas
iljamaas / SVG EAN13 creator
Last active August 29, 2015 14:05
Simple code to create a very clean SVG EAN13 code.
class Ean13BarcodeException(Exception):
pass
class Ean13Barcode(object):
"""Generate a SVG for a given EAN13 code with a specified width and height"""
def __init__(self, width, height, colorstring='rgb(0,0,0)'):
self.width = width
self.height = height
@iljamaas
iljamaas / dabblet.css
Created November 13, 2013 20:04 — forked from anonymous/dabblet.css
Untitled
#wrapper {
display: table;
width: 300px;
height: 200px;
border: 1px solid black;
}
#wrapper .col {
display: table-cell;
width: 33.3%;
padding: 10px;
.check{
width: 20px;
height: 20px;
background-image: linear-gradient(-215deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 35%);
background-size: 20px 20px;
overflow: hidden;
border: 1px solid rgba(255,255,255,1);
border-radius: 5px;
box-shadow: 0px 0px 0px 1px
}
@iljamaas
iljamaas / dabblet.css
Created December 6, 2012 15:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.wrapper{
}
.wrapper a{
display: block;
text-decoration: none;
@iljamaas
iljamaas / dabblet.css
Created August 30, 2012 12:03
SEC Buttons
/**
* SEC Buttons
*/
body{
background-color: #e2e2e2;
padding-top: 50px;
}
div#spacing{
/* only for development NOT USED */
height: 100px;
@iljamaas
iljamaas / dabblet.css
Created April 22, 2012 09:32 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html { background: white; }
.scrollbox {
overflow: auto;