Skip to content

Instantly share code, notes, and snippets.

View dziudek's full-sized avatar

Tomasz Dziuda dziudek

View GitHub Profile
@dziudek
dziudek / dabblet.css
Created August 3, 2012 22:06
CSS arrow
/**
* CSS arrow
*/
body {
background: #4546da;
}
.arrow {
background: #fff;
@dziudek
dziudek / dabblet.css
Created August 3, 2012 21:41
Simple animated CSS3 switcher
/**
* Simple animated CSS3 switcher
*/
label {
display: inline-block;
line-height: 24px;
}
.switcher {
display: inline-block;
@dziudek
dziudek / dabblet.css
Created June 16, 2012 00:29
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.circle {
background: #fff;
margin: 50px 25px;
width: 24px;
height: 24px;
border: 12px solid #f55;
@dziudek
dziudek / dabblet.css
Created June 13, 2012 13:50
Image :hover effect
/**
* Image :hover effect
*/
figure {
background: #eee;
border: 3px solid #aaa;
display: block;
float:left;
overflow: hidden;
@dziudek
dziudek / dabblet.css
Created June 4, 2012 18:00
Image :hover effect
/**
* Image :hover effect
*/
figure {
background: #eee;
border: 3px solid #aaa;
display: block;
float:left;
overflow: hidden;
@dziudek
dziudek / dabblet.css
Created June 3, 2012 13:55
Fast CSS tooltips without any JavaScript and with semantic dfn element use ;)
/**
* Fast CSS tooltips without any JavaScript and with semantic dfn element use ;)
*/
a.tooltip {
position: relative;
}
a.tooltip dfn {
position: absolute;
@dziudek
dziudek / dabblet.css
Created May 27, 2012 08:08
Scalable photo scroll
/**
* Scalable photo scroll
*/
section {
border: 1px solid #aaa;
width: 600px;
max-width: 100%;
}
@dziudek
dziudek / dabblet.css
Created May 27, 2012 08:04
Image always centered vertically and horizontally
/**
* Image always centered vertically and horizontally
*/
div#main {
border: 2px solid #aaa;
display: table;
width: 100%;
height: 300px;
}
@dziudek
dziudek / dabblet.css
Created May 24, 2012 07:59
Image always centered vertically and horizontally
/**
* Image always centered vertically and horizontally
*/
div#main {
border: 2px solid #aaa;
display: table;
width: 100%;
height: 300px;
}
@dziudek
dziudek / dabblet.css
Created May 24, 2012 07:53
Button double border styling without any additional containers.
/**
* Button double border styling without any additional containers.
*/
.btn {
display: inline-block;
background: #aaa;
background-clip: content-box;
border: 2px solid #aaa;
border-radius: 3px;