Skip to content

Instantly share code, notes, and snippets.

View kizu's full-sized avatar
🍵
Enjoying some tea

Roman Komarov kizu

🍵
Enjoying some tea
View GitHub Profile
@kizu
kizu / dabblet.css
Created January 12, 2012 13:29
Light button
/* Light button */
.button {
font: 13px/1.2 "Helvetica Neue", Arial, sans-serif;
display: inline-block;
overflow: visible; /* IE padding fix */
vertical-align: middle; /* Is there a better value? */
padding: 1px 8px;
@kizu
kizu / dabblet.css
Created March 19, 2012 18:39
Multi-directional hover by @kizmarh
/* Multi-directional hover by @kizmarh */
.b-block {
position: relative;
display: inline-block;
overflow: hidden;
width: 10em;
height: 10em;
@kizu
kizu / dabblet.css
Created April 27, 2012 13:38
SVG testing
/* SVG testing */
.test {
position: relative;
width: 100px;
height: 100px;
margin: 50px;
padding: .5em;
}
.test:before {
content: "";
@kizu
kizu / dabblet.css
Created April 27, 2012 18:35
SVG testing
/* SVG testing */
.button {
position: relative;
display: inline-block;
width: auto;
height: 19px;
padding: 0 10px;
margin: 50px;
@kizu
kizu / dabblet.css
Created May 5, 2012 22:34
Stacking context fun
/* Stacking context fun */
.floater {
float: left;
background: red;
color: #FFF;
padding: .5em .5em;
margin: 0 -2.5em 0 0;
}
@kizu
kizu / dabblet.css
Created July 13, 2012 00:24
Possible highlighting of invisible characters
/* Possible highlighting of invisible characters */
body {
background-color: hsl(24, 20%, 95%);
}
pre {
font: 16px/1.5 Monaco, Consolas, Inconsolata, 'Deja Vu Sans Mono', 'Droid Sans Mono', 'Andale Mono', 'Lucida Console', monospace;
tab-size: 4;
counter-reset: code;
@kizu
kizu / dabblet.css
Created April 19, 2013 22:08
Circular path CSS lol
/* Circular path CSS lol */
.circular {
display: block;
margin: 40px auto;
font: 63px sans-serif;
padding-top: 0;
padding-left: 4.2em;
width: 3.4em;
height: 8em;
@kizu
kizu / dabblet.css
Created May 5, 2013 21:59
liquid sidebar with centered content prototype
/* liquid sidebar with centered content prototype */
body {
font: 24px Arial, sans-serif;
}
.a {
margin: 3em auto 0;
max-width: 22em;
box-shadow: 0 0 0 1px lime;
@kizu
kizu / dabblet.css
Created May 7, 2013 21:23
Fake previous item selector
/* Fake previous item selector */
/* Fix for +/~ selectors in webkit */
@-webkit-keyframes bugfix { from { margin: 0; } to { margin: 0; } }
label {
-webkit-animation: bugfix infinite 1s;
}
input {
position: absolute;
/* ololo */
.board {
position: relative;
font-size: 27px;
width: 19em;
margin: 3em auto;
background: linear-gradient(transparent 0.46em,#aaa 0.5em,transparent 0.5em), linear-gradient(90deg, transparent 0.46em,#aaa 0.5em,transparent 0.5em);