Skip to content

Instantly share code, notes, and snippets.

* {
box-sizing: border-box;
}
button {
border:1px solid ;
position: relative;
height: 2em;
background: white;
z-index:1;
@Lamecarlate
Lamecarlate / dabblet.css
Created May 28, 2014 07:09
min-content and max-width: 100%
/* min-content and max-width: 100% */
img {
max-width: 100%;
height: auto;
}
.post-figure {
width: -webkit-min-content;
width: -moz-min-content;
.video-wrapper {
width: 850px;
margin:0 auto;
}
.video {
width:420px;
display:inline-block;
}
@Lamecarlate
Lamecarlate / dabblet.css
Created May 1, 2014 14:57
Exemple de galerie aux miniatures de taille différente
/* Exemple de galerie aux miniatures de taille différente */
div {
float: left;
padding: 10px;
height: 150px;
width: 150px;
text-align: center;
background: lavender;
margin: 10px;
.actu-bloc {
width: 174px;
height: 174px;
padding: 21px;
background-color: #E4E4E4;
}
.actu-bloc h4 {
overflow: hidden;
text-overflow: ellipsis;
figure {
background: lavender;
border-radius: 200px;
width: 300px;
height: 300px;
overflow: hidden;
position: relative;
}
@Lamecarlate
Lamecarlate / dabblet.css
Created February 13, 2014 12:34
Untitled
body {
display: table;
width: 100%;
caption-side: bottom;
width: 900px;
margin: 0 auto;
}
aside {
background: lavender;
display: table-caption;
@Lamecarlate
Lamecarlate / dabblet.css
Created January 19, 2014 12:37
Imbrication
/* Imbrication */
.communautes {
width: 500px;
}
.communautes,
.communautes div {
border : 1px solid #000;
padding : 20px;
margin: 5px;
@Lamecarlate
Lamecarlate / dabblet.css
Created December 19, 2013 15:55
"faux" input
/* "faux" input */
form {
background: white;
border: 1px solid #000;
width: 300px;
overflow: hidden;
padding: 2px;
}
@Lamecarlate
Lamecarlate / dabblet.css
Created June 25, 2013 19:12
1 line overlay, by Lea Verou
/*
1 line overlay, by Lea Verou
https://twitter.com/LeaVerou/status/251469590377418753
*/
#box {
width: 200px;
height: 150px;
background: white;
padding: 20px;