Skip to content

Instantly share code, notes, and snippets.

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

Hans Reinl drublic

🌐
Remote by default
View GitHub Profile
@drublic
drublic / dabblet.css
Created October 15, 2012 23:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: red;
}
@supports () {
body {
/**
* Testing @supports
*/
body {
background: red;
}
@supports (box-shadow: 2px 2px 2px black) {
body {
@drublic
drublic / dabblet.css
Created October 14, 2012 19:24
Normalize.css: Audio on Android
/**
* Normalize.css: Audio on Android
*/
/*
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Corrects inability to style clickable `input` types in iOS.
* 3. Improves usability and consistency of cursor style between image-type
@drublic
drublic / dabblet.css
Created October 14, 2012 19:23
Testing -webkit-overflow-scrolling in MQs
/**
* Testing -webkit-overflow-scrolling in MQs
*/
@media screen and (max-width: 1024px) {
body {
-webkit-overflow-scrolling: touch;
}
}
@drublic
drublic / dabblet.css
Created October 9, 2012 17:58
Testing -webkit-overflow-scrolling in MQs
/**
* Testing -webkit-overflow-scrolling in MQs
*/
@media screen and (max-width: 1024px) {
body {
-webkit-overflow-scrolling: touch;
}
}
@drublic
drublic / dabblet.css
Created October 6, 2012 20:14
Testing transitions on pseudo-elements in WebKit
/**
* Testing transitions on pseudo-elements in WebKit
*/
body::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
@drublic
drublic / dabblet.css
Created September 23, 2012 18:45
Mobile Menu w/o JS
/**
* Mobile Menu w/o JS
*/
.navigation {
display: none;
position: absolute;
top: 53px;
left: 10px;
border-radius: 5px;
@drublic
drublic / dabblet.css
Created September 22, 2012 22:05
Mobile Menu w/o JS - with transition-delay
/**
* Mobile Menu w/o JS - with transition-delay
*/
.navigation {
opacity: 0;
-webkit-transition: opacity 0s 999999s;
}
@drublic
drublic / dabblet.css
Created September 22, 2012 20:57
Testing :target
/**
* Testing :target
*/
#content {
background: red;
width: 100%;
height: 200px;
}
@drublic
drublic / dabblet.css
Created September 22, 2012 20:11
Mobile Menu w/o JS
/**
* Mobile Menu w/o JS
*/
.navigation {
display: none;
position: absolute;
top: 50px;
left: 10px;