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 May 6, 2012 17:44 — 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;
font: 120% sans-serif;
}
@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}
@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;
/* scss */
#nav {
li a {
color: maroon;
body.admin & { border-bottom: dotted 1px maroon; } // <-- Awesome-sauce right there
&:hover {
color: purple;
}
@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
#
@pbroschwitz
pbroschwitz / addFbAppToTab.html
Created March 27, 2012 09:43
Facebook Application to Tab
<html>
<head>
<title>Add Facebook Application to Tab</title>
</head>
<body>
<form action="https://www.facebook.com/dialog/pagetab" method="get">
<p>Fill your application details and press Submit, a dialog will appear to choose which page to add the app to.</p>
<label for="app_id" title="You can find your APP_ID at https://developers.facebook.com/apps/">App ID</label>
<input id="app_id" name="app_id" size="18" type="text" />
@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 / 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 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 / .gitignore_cakephp
Created January 9, 2012 23:59 — forked from kogakure/.gitignore
.gitignore file collection
#
# Cake
#
tmp/*
app/tmp/*
!empty