Skip to content

Instantly share code, notes, and snippets.

View gcyrillus's full-sized avatar

gcyrillus gcyrillus

View GitHub Profile
@gcyrillus
gcyrillus / dabblet.css
Created July 27, 2012 17:24
by gcyrillus, another legend, a mythe
/* by gcyrillus, another legend, a mythe */
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
form {margin:1em ;}
.after legend:after, legend {width:450px;}
legend {text-align:center;line-height:0;}
.bis-justify legend {text-align : justify;}
@gcyrillus
gcyrillus / dabblet.css
Created August 19, 2012 21:28
By gcyrillus : fake flexbox justified
/* By gcyrillus : fake flexbox justified */
#conteneur {text-align:justify;}
h1 {text-align:center;margin:0;}
#colonne1, #colonne2, #clear {display:inline-block;margin:0}
#colonne1, #colonne2 {width:49%;vertical-align:middle;}
#clear {width:100%;}
/* extra - correction */
#conteneur {margin:1em auto;width:70%;background:rgba(0,0,0,0.05);padding:0 0.5em;}
#colonne1, #colonne2 { margin-bottom:-2em}
@gcyrillus
gcyrillus / dabblet.css
Created August 26, 2012 17:55
triangled links , by gcyrillus . transform and perspective could achieve this as well
/* triangled links , by gcyrillus . transform and perspective could achieve this as well */
ul {width:40px;list-style-type:none;padding:0;margin:2em auto;transform:scale(2);transform-origin:top;}
li {overflow:hidden;width:40px;margin:0 0 -40px 0 ; }
li:nth-child(even) { }
a {
float:left;
height:80px;
width:80px;
background:red;
margin:0 0 0 -60px ;
@gcyrillus
gcyrillus / dabblet.css
Created August 31, 2012 20:07
GCYRILLUS : experiment on background & transition over the window
/* GCYRILLUS : experiment on background & transition over the window */
body {
margin:0;
padding:0;
}
#wrapper {
width:100%;
height:100%;
position:absolute;
@gcyrillus
gcyrillus / dabblet.css
Created August 31, 2012 20:18
GCYRILLUS : experiment on background & transition over the window
/* GCYRILLUS : experiment on background & transition over the window */
body {
margin:0;
padding:0;
}
#wrapper {
width:100%;
height:100%;
position:absolute;
@gcyrillus
gcyrillus / dabblet.css
Created August 31, 2012 23:33
by gcyrillus
/**
* by gcyrillus
*/
html {
background: url(http://doc-css.com/img/un.png)
top left no-repeat;
min-height:100%;
animation: bghtml 0.75s infinite ;
}
@keyframes bghtml {
@gcyrillus
gcyrillus / dabblet.css
Created September 1, 2012 11:47
Menu Déroulant sans float CSS3 et centré , GCyrillus
/* Menu Déroulant sans float CSS3 et centré , GCyrillus */
/* Base CSS sans float et centrage du menu */
ul#menu-gc {
display:table; /* contexte de formatage : alternative = inline-block */
margin:auto; /* centrage pour element similaire a block, si inline-block, alors text-align:center; sur le parent */
padding:0; /* reset marge interne */
}
#menu-gc li {
display:inline-block; /* alternative à float avec contexte de formatage */
@gcyrillus
gcyrillus / dabblet.css
Created September 1, 2012 15:17
Menu Déroulant sans float CSS3 et centré , GCyrillus
/* Menu Déroulant sans float CSS3 et centré , GCyrillus */
/* Base CSS sans float et centrage du menu */
ul#menu-gc {
display:table; /* contexte de formatage : alternative = inline-block */
margin:auto; /* centrage pour élément similaire a block, si inline-block, alors text-align:center; sur le parent */
padding:0; /* reset marge interne */
}
#menu-gc li {
display:inline-block; /* alternative à float avec contexte de formatage */
@gcyrillus
gcyrillus / dabblet.css
Created September 4, 2012 17:35
CSS3 Carrousel by Gcyrillus
/* CSS3 Carrousel by Gcyrillus
no typo, no js involved ... usable in modern browsers of course :)
*/
#my-sliding-box {width:506px;margin:0 auto;overflow:hidden;
}
#my-slider {
width:400px;height:208px;border:solid;overflow:hidden;
margin:4em auto 0;white-space:nowrap;text-align:right;
vertical-align:top;border-radius:1em;padding:0 50px 1em;
@gcyrillus
gcyrillus / dabblet.css
Created September 4, 2012 18:13
CSS img rollover gcyrillus . no js involved . It's kind of a mixed of ir an sprites :P
/* CSS img rollover gcyrillus . no js involved . It's kind of a mixed of ir an sprites :P */
.reseau a img {
background-image : url(http://dribbble.s3.amazonaws.com/users/904/screenshots/511628/social-sprite.jpg);
height : 0;
width : 0;
padding:16px;
}
#fb {
background-position : -145px -4px;