Skip to content

Instantly share code, notes, and snippets.

View giuseppeg's full-sized avatar
🌊
All is well.

Giuseppe giuseppeg

🌊
All is well.
View GitHub Profile
@giuseppeg
giuseppeg / dabblet.css
Created December 30, 2012 10:54
tabindex fiddling
/**
* tabindex fiddling
*/
*:focus { border: 3px solid red }
body > a:first-child {
position: absolute;
top: auto;
left: -999%
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 14:47
Drop Shadows - Web Platform Docs Examples
/**
* Drop Shadows - Web Platform Docs Examples
* An example of a basic Drop Shadow
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
article {
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 15:05
Inner Drop Shadows - Web Platform Docs Examples
/**
* Inner Drop Shadows - Web Platform Docs Examples
* An example of inner drop shadows
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
article {
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 15:20
Negative spread distance - Drop Shadows - Web Platform Docs Examples
/**
* Negative spread distance - Drop Shadows - Web Platform Docs Examples
*
* An example of how a negative spread distance length value affects the drop shadow
* "Negative values cause the shadow shape to contract."
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 15:37
The spread distance - Drop Shadows - Web Platform Docs Examples
/**
* The spread distance - Drop Shadows - Web Platform Docs Examples
*
* An example of how a positive spread distance length value affects the drop shadow
* "Positive values cause the shadow shape to expand in all directions by the specified radius."
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 15:46
0 Blur! - Drop Shadows - Web Platform Docs Examples
/**
* 0 Blur! - Drop Shadows - Web Platform Docs Examples
*
* An example of drop shadow with a blur value of 0
* "If the blur value is zero, the shadow's edge is sharp."
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
@giuseppeg
giuseppeg / dabblet.css
Created February 8, 2013 16:54
Drop Shadows and round corners - Web Platform Docs Examples
/**
* Drop Shadows and round corners - Web Platform Docs Examples
*
* An example of drop shadow and round corners
* "If the box has a nonzero ‘border-radius’, the shadow shape is rounded in the same way."
*
* @css-for Android 2.1+, Chrome, Firefox 4+, IE 9+, iOS 4+, Opera 10.50+, Safari 5+
* @author Giuseppe Gurgone
* @see http://docs.webplatform.org/wiki/css/properties/box-shadow
*/
@giuseppeg
giuseppeg / dabblet.css
Created February 16, 2013 18:27
CSS2.1 menu separator - no last-child or your best friend .last class :)
/**
* CSS2.1 menu separator - no last-child or your best friend .last class :)
*
* @author Giuseppe Gurgone <http://twitter.com/giuseppegurgone>
*/
ul li {
display: inline-block;
padding: 0 5%;
}
@giuseppeg
giuseppeg / dabblet.css
Created February 18, 2013 18:59
CSS2.1 menu separator - no last-child or your best friend .last class :)
/**
* CSS2.1 menu separator - no last-child or your best friend .last class :)
*
* @author Giuseppe Gurgone <http://twitter.com/giuseppegurgone>
*/
ul li {
display: inline-block;
padding: 0 5%;
}
@giuseppeg
giuseppeg / dabblet.css
Created February 21, 2013 17:58
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
/* Layout */
.menu,
.menu ul { padding: 0; list-style-type: none; }
.menu > li {