Skip to content

Instantly share code, notes, and snippets.

@yoksel
yoksel / dabblet.css
Created February 10, 2013 16:32
Untitled
BODY {
background:
-webkit-linear-gradient(0,
transparent 1.7em, rgba(64, 224, 208,.5) 1.7em,
transparent 2em, transparent 2.5em,
rgba(64, 224, 208,.5) 2.5em,
transparent
),
-webkit-linear-gradient(0,
rgba(0, 139, 139,.5) .5em, transparent .5em,
@yoksel
yoksel / jsbin.AZuFAkO.css
Created September 14, 2013 09:45
Css-shapes
DIV {
position: relative;
display: inline-block;
vertical-align: middle;
margin: .7em;
}
DIV:before,
DIV:after {
content: "";
display: block;
BODY {
perspective: 500px;
perspective-origin: center -5em;
}
.side,
.container {
width: 10em;
height: 10em;
}
@yoksel
yoksel / jsbin.aKUZaB.css
Created September 29, 2013 08:28
Flags with CSS
.flags {
white-space: nowrap;
}
.flags:nth-child(2) {
margin-left: -320px;
}
.flags:nth-child(3) {
margin-left: -160px;
}
SPAN {
@yoksel
yoksel / jsbin.aKUZaB.css
Created September 29, 2013 08:34
Arrows
.arrow {
position: relative;
margin: 50px auto;
}
.arrow:before,
.arrow:after {
content: "";
display: block;
position: absolute;
width: 0;
@yoksel
yoksel / jsbin.aKUZaB.css
Created September 29, 2013 08:35
Banner
.ribbon {
position: relative;
width: 80%;
min-width: 300px;
margin: 3em auto;
}
H1 {
margin: 0 1em;
background: orangered;
@yoksel
yoksel / jsbin.IfAzAFO.css
Created September 29, 2013 08:38
Dance of shadow jsbin.com/IfAzAFO/2/edit
DIV {
width: 2em;
height: 2em;
margin-top: 3em;
background: transparent;
border-radius: 50%;
box-shadow:
2em 0 0 crimson,
4em 0 0 red,
6em 0 0 orangered,
BODY {
background: #efefef;
font-size: 1.7em;
}
DIV {
display: inline-block;
position: relative;
vertical-align: middle;
}
DIV:before,
DIV {
width: 1em;
height: 1em;
background: firebrick;
box-shadow:
1em 0 0 crimson,
2em 0 0 red,
3em 0 0 orangered,
4em 0 0 orange,
5em 0 0 gold,
BODY {
text-align: center;
color: #999;
text-shadow: 1px 0 1px rgba(0,0,0,.5);
}
DIV {
display: inline-block;
position: relative;
width: 45%;
height: 15em;