Skip to content

Instantly share code, notes, and snippets.

View yukulele's full-sized avatar

Clément P yukulele

  • France
View GitHub Profile
@yukulele
yukulele / dabblet.css
Created October 24, 2012 14:23
Untitled
/**
* fill box-shadow
*/
div{
width:400px;
height:150px;
color:white;
margin:100px;
border-radius:0 0 100px;
}
@yukulele
yukulele / dabblet.css
Created November 8, 2012 14:03 — forked from LeaVerou/dabblet.css
Testing mailto forms
/**
* Testing mailto forms
*/
@yukulele
yukulele / dabblet.css
Created November 19, 2012 16:36
ex unit
/**
* ex unit
*/
p{
font-size:40px;
color:DarkBlue
}
p span{
font-size:1ex;
@yukulele
yukulele / dabblet.css
Last active October 9, 2018 13:36
css transform make text-ugly (depending os/browser)
/**
* css transform make text-ugly (depending os/browser)
*/
div{
border:1px solid red;
padding:15px;
margin:50px;
font-size:17px;
transform-origin:0 0;
transform:rotate(10.4deg);
@yukulele
yukulele / dabblet.css
Created December 18, 2012 08:56
transition elastic
/* transition elastic */
div{
width:50px;
height:50px;
background-color:#777;
position:absolute;
left:50px;
margin-left:50px;
transition:
@yukulele
yukulele / dabblet.css
Created December 18, 2012 09:12
transition bounce
/* transition bounce */
div{
width:50px;
height:50px;
background-color:#777;
position:absolute;
left:50px;
margin-left:50px;
transition:
@yukulele
yukulele / dabblet.css
Created December 20, 2012 17:11
repeating-linear-gradient bug on chrome
/**
repeating-linear-gradient bug on chrome
*/
html {
height: 100%;
background-image:repeating-linear-gradient(45deg, rgb(231, 209, 156), rgb(231, 209, 156) 2px, transparent 2px, transparent 4px);
/* background-size: 4px 4px; */
}
@yukulele
yukulele / dabblet.css
Created February 21, 2013 09:00
motion blur
/*
motion blur
*/
html{
text-align:center;
}
div{
background:rgba(255,0,0,.1);
display:inline-block;
margin:20px;
@yukulele
yukulele / dabblet.css
Created March 5, 2013 09:08
rgba with 0 alpha component
/**
* rgba with 0 alpha component
*/
ul>li{
height:30px;
line-height:30px;
border:1px dotted grey;
margin:10px;
font-family:sans-serif;
}
@yukulele
yukulele / dabblet.css
Created March 5, 2013 14:31 — forked from LeaVerou/dabblet.css
gracefully degrading switch-style checkboxes
/**
* gracefully degrading switch-style checkboxes
* need <label> wrapper and <span> immediatly after checkbox.
*/
input[type="checkbox"]+span{display:none}
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
display:none;
}
input[type="checkbox"]:not(:checked)+span,