Skip to content

Instantly share code, notes, and snippets.

@titox
titox / dabblet.css
Created July 12, 2015 17:54
Polka dot
/**
* Polka dot
*/
background: #655;
background-image: radial-gradient(yellow 20%, transparent 0),
radial-gradient(blue 20%, transparent 0),
radial-gradient(red 20%, transparent 0);
background-size: 30px 30px;
background-position: 0 0, 15px 15px, 30px 30px;
@titox
titox / dabblet.css
Created April 23, 2015 06:57 — forked from csssecrets/dabblet.css
Inner rounding
/**
* Inner rounding
*/
div {
outline: .6em solid #655;
box-shadow: 0 0 0 .1em red; /* todo calculate max of this */
max-width: 10em;
border-radius: .8em;
@titox
titox / dabblet.css
Created April 21, 2015 07:03
Multiple borders
/**
* Multiple borders
*/
body {
padding: 20%;
text-align: center;
}
div {
margin: 0 auto;
@titox
titox / dabblet.css
Last active August 29, 2015 14:19 — forked from csssecrets/dabblet.css
Multiple borders
/**
* Multiple borders
*/
body {
text-align :center;
}
div {
width: 200px;
height: 200px;
@titox
titox / dabblet.css
Created April 21, 2015 06:28 — forked from csssecrets/dabblet.css
Translucent borders
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);
@titox
titox / dabblet.css
Created January 23, 2012 15:35
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background-color: red;
background-image: linear-gradient(-90deg, #000 25%, #FFF 25%);
background-size: 130px;
@titox
titox / dabblet.css
Created January 23, 2012 15:20
list with 1px solid left gradient border
/**
* list with 1px solid left gradient border
*/
.item {
font-family: Helvetica, 'sans-serif';
background-repeat: repeat-y;
background-image: linear-gradient(45deg,#CCCCCC 50%,transparent 50%);
@titox
titox / dabblet.css
Created January 21, 2012 19:53
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: linear-gradient( red 25%,#8b0 25%);
background-size:100px 100px;
@titox
titox / dabblet.css
Created January 21, 2012 19:46
1 stripe
/**
* 1 stripe
*/
background: linear-gradient(bottom, white 60%, #8b0 60%) repeat-x;
background-size: 800px 900px;
@titox
titox / dabblet.css
Created January 21, 2012 19:40
basic lines
/**
* basic lines
*/
background: linear-gradient(left, white 50%, #8b0 50%);
background-size: 2px;