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 April 11, 2013 12:49
Untitled
/*matrix transform experiments*/
div{
width:200px;
height:200px;
margin:50px;
background:grey;
transition:transform 1s ease;
border-top-right-radius:100px;
transform:matrix(1,0,0,1,0,0);
@yukulele
yukulele / dabblet.css
Last active October 9, 2018 13:31
Untitled
h1 {color: #345; text-shadow: 1px 1px 2px #aaa; font-size:1.8em}
h2 {color: #567; text-shadow: 1px 1px 2px #aaa; font-size:1.1em}
h3 {margin-bottom: 0; color: #678; text-shadow: 1px 1px 2px #aaa; font-size:1em}
#sizer{
resize:horizontal;
max-width:800px;
background:#ccc;
padding:40px;
border-radius:20px;
overflow:hidden;
@yukulele
yukulele / dabblet.css
Created March 13, 2013 16:23 — forked from LeaVerou/dabblet.css
Hexagon kitty - By @LeaVerou
/* Hexagon kitty - By @LeaVerou
Disappointingly inflexible, but still interesting methinks.
*/
.hexagon {
display: inline-block;
position: relative;
width: 200px;
height: 200px;
transform: scale(1.25,.707) rotate(-45deg);
@yukulele
yukulele / dabblet.css
Created March 8, 2013 09:37
height of higher child
/* height of higher child */
nav{
font-size:3em;
position:absolute;
z-index:2;
}
a{
text-decoration:none;
display:inline-block;
@yukulele
yukulele / dabblet.css
Created March 8, 2013 09:01
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%;
@yukulele
yukulele / dabblet.css
Created March 7, 2013 13:15
Negative animation-delay to start mid-animation
/**
* Negative animation-delay to start mid-animation
*/
@keyframes test {
to { background: black }
}
html {
background: white;
@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,
@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 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 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; */
}