Skip to content

Instantly share code, notes, and snippets.

View drublic's full-sized avatar
🌐
Remote by default

Hans Christian Reinl drublic

🌐
Remote by default
View GitHub Profile
@drublic
drublic / vunits.js
Created November 19, 2011 23:03 — forked from LeaVerou/vunits.js
Static polyfill for vw, vh, vm units
/**
* Polyfill for the vw, vh, vm units including StyleFix
* @author Lea Verou
*/
(function(){
if(!window.addEventListener) {
return;
}
@drublic
drublic / orientation-android
Created December 1, 2011 21:36
Some further tests for orientation-size - compare to https://gist.github.com/1410787
Samsung Galaxy S9000 Android 2.3 (handheald):
Webbrowser (Webkit):
meta-none: p 800x1130 - l 800x357
meta-width: p 320x452 - l 533x239
meta-width-initial: p 320x452 - l 320x452 (533x239 on load/refresh)
meta-width-initial-maximum: p 320x452 - l 533x239
Opera Mobile:
meta-none: p 981x1232 - l 980x347
@drublic
drublic / dabblet.css
Created December 16, 2011 14:33
Testing CSS3 Filters
/**
* Testing CSS3 Filters
*/
img {
-webkit-transition: all .5s ease;
-webkit-filter: blur(0);
}
img:hover {
@drublic
drublic / dabblet.css
Created December 16, 2011 14:57
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
img {
-webkit-transition: all .5s ease;
-webkit-filter: blur(0);
-webkit-transform: translate3d(0,0,0);
}
@drublic
drublic / dabblet.css
Created December 18, 2011 21:46 — forked from LeaVerou/dabblet.css
Previewer test
/**
* Previewer test
*/
background: #f06;
background: linear-gradient(left bottom,
hsla(340, 100%, 50%,.7), yellow);
min-width: 100px;
width: 2in;
transition-duration: 6s;
@drublic
drublic / dabblet.css
Created December 26, 2011 14:07
Testing Opera's input[type="color"]
/* Testing Opera's input[type="color"] */
input[type='color'] {
display: block;
width: 200px;
height: 200px;
background: orange;
border-radius: 50%;
}
@drublic
drublic / dabblet.css
Created December 28, 2011 18:08
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
p {
background: attr(data-color);
}
@drublic
drublic / dabblet.css
Created December 28, 2011 18:16 — forked from anonymous/dabblet.css
Testing Nicolas Gallagher's method for responsive images
/**
* Testing Nicolas Gallagher's method for responsive images
*/
p {
content: attr(data-title);
}
@drublic
drublic / dabblet.css
Created January 21, 2012 16:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
@drublic
drublic / dabblet.css
Created January 25, 2012 16:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;