Skip to content

Instantly share code, notes, and snippets.

View loai-kanou's full-sized avatar
🎯
Focusing

Loai Kanou loai-kanou

🎯
Focusing
View GitHub Profile
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:47 — forked from LeaVerou/dabblet.css
WebKit bug:
/**
* WebKit bug:
Elements do not get clipped according to border-radius
when parent has a perspective() tranfsorm
*/
.outer {
background: deeppink;
width: 300px;
height: 300px;
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:47 — forked from LeaVerou/dabblet.css
Just for fun™: Flickr spinner in pure CSS
/**
* Just for fun™: Flickr spinner in pure CSS
*/
@keyframes move {
to { left: 50%; }
}
@keyframes cover {
from,49.9% { z-index: 1 }
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:48 — forked from LeaVerou/dabblet.css
SVG inspired by Quine's paradox
/**
* SVG inspired by Quine's paradox
*/
svg {
display: block;
margin: 40px auto;
font: 83px sans-serif;
}
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:48 — forked from LeaVerou/dabblet.css
Counters for Doug
/**
* Counters for Doug
*/
.main-box,
.sub-box {
display: inline-block;
margin: 10px;
padding: 10px;
}
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:48 — forked from LeaVerou/dabblet.css
Firefox nightly bug testcase
/* Firefox nightly bug testcase */
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:48 — forked from LeaVerou/dabblet.css
Transitions (or lack thereof) with height: auto
/**
* Transitions (or lack thereof) with height: auto
*/
div {
width: 10em;
overflow:hidden;
transition: 1s height;
height: 0;
}
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:49 — forked from LeaVerou/dabblet.css
“Body Border, Rounded Inside” without images or extra elements
/**
* “Body Border, Rounded Inside” without images or extra elements
*/
div {
width: 10em;
height: 5em;
padding: 1em;
border-radius: 10px;
margin: 100px;
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:49 — forked from LeaVerou/dabblet.css
Resize on replaced elements?
/**
* Resize on replaced elements?
*/
img {
width: 100px;
height: 100px;
resize: both;
overflow: hidden;
}
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:49 — forked from LeaVerou/dabblet.css
Draw SVG in canvas
/**
* Draw SVG in canvas
*/
@loai-kanou
loai-kanou / dabblet.css
Created August 5, 2013 03:49 — forked from LeaVerou/dabblet.css
Just for fun: Wifi icon with pure CSS
/**
* Just for fun: Wifi icon with pure CSS
*/
.wifi {
padding: 20px;
}
.wifi, .wifi:before {
display: inline-block;