Skip to content

Instantly share code, notes, and snippets.

View pbroschwitz's full-sized avatar

Peter Broschwitz pbroschwitz

View GitHub Profile
@pbroschwitz
pbroschwitz / dabblet.css
Created January 4, 2012 17:48 — forked from LeaVerou/dabblet.css
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines
@pbroschwitz
pbroschwitz / dabblet.css
Created January 5, 2012 00:49 — forked from LeaVerou/dabblet.css
box-shadow vs drop-shadow
/**
* box-shadow vs drop-shadow
* Webkit-only at the moment (Chrome Canary or Webkit nightlies)
*/
div {
position: relative;
width: 150px;
padding: 20px;
border: 5px dotted;
@pbroschwitz
pbroschwitz / .gitignore_cakephp
Created January 9, 2012 23:59 — forked from kogakure/.gitignore
.gitignore file collection
#
# Cake
#
tmp/*
app/tmp/*
!empty
@pbroschwitz
pbroschwitz / dabblet.css
Created February 15, 2012 17:31 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@pbroschwitz
pbroschwitz / dabblet.css
Created March 16, 2012 23:15 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@pbroschwitz
pbroschwitz / dabblet.css
Created March 20, 2012 16:28 — forked from JoelBesada/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@pbroschwitz
pbroschwitz / hack.sh
Created March 31, 2012 09:58 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
/* scss */
#nav {
li a {
color: maroon;
body.admin & { border-bottom: dotted 1px maroon; } // <-- Awesome-sauce right there
&:hover {
color: purple;
}
@pbroschwitz
pbroschwitz / dabblet.css
Created April 17, 2012 20:26 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
@pbroschwitz
pbroschwitz / dabblet.css
Created April 18, 2012 12:34 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.teaser {
overflow: hidden;
height: 250px;
display: inline-block;
position: relative;
outline:0 none}