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 2, 2012 20:54 — forked from ZeeAgency/dabblet.css
The -Webkit-scrollbar challenge
/**
* The -Webkit-scrollbar challenge
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Make the first div’s scrollbar like the second’s
* without changing the styling of the div (i.e. you
* can only change the ::-webkit-scrollbar-* rules
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
* It doesn't matter if the second div doesn't look the same
* after your changes, it's only there to show you how the
@kizu
kizu / dabblet.css
Created May 5, 2012 22:23 — forked from LeaVerou/dabblet.css
Weird behavior when combining opacity & z-index: -1
/**
* Weird behavior when combining opacity & z-index: -1
*/
div {
position: relative;
display: inline-block;
vertical-align: middle;
width: 200px; height: 200px;
background: yellowgreen;
@kizu
kizu / dabblet.css
Created December 18, 2012 22:24 — forked from shabunc/dabblet.css
Untitled
table {
border: 1px solid red;
height: 200px;
width: 400px;
}
thead td {
height: 10px;
}
tbody {
@kizu
kizu / dabblet.css
Created January 21, 2013 21:40 — forked from Leolik/dabblet.css
Untitled
body {
background: pink
}
.popup {
position: relative;
width: 200px;
height: 150px;
padding: 10px;
background: #fff;
@kizu
kizu / dabblet.css
Created May 20, 2013 18:27 — forked from LeaVerou/dabblet.css
Just for fun™: Flickr spinner in pure CSS
/**
* Just for fun™: Flickr spinner in pure CSS
* Now, with wider browser support!
*/
@keyframes move-right {
to { right: 0; }
}
@keyframes move-padding {
@kizu
kizu / dabblet.css
Created May 27, 2013 13:33 — forked from anonymous/dabblet.css
Untitled
.cont {
width: 100%;
overflow: hidden;
position: relative;
white-space: nowrap;
}
.p1, .p2 {
padding: 20px;
@kizu
kizu / 0_reuse_code.js
Created January 20, 2014 17:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kizu
kizu / dabblet.css
Created April 1, 2014 07:39 — forked from vitkarpov/gist:9908836
Untitled
.image-container
{
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 50%;
background: lightyellow;
overflow: hidden;
text-align: center;
@kizu
kizu / dabblet.css
Created June 11, 2014 09:36 — forked from i2r/dabblet.css
Bordered Arrow
/**
* Bordered Arrow
*/
body {
min-height: 100%;
font-size: 10px;
//background: lime;
}
.arrow {
@kizu
kizu / dabblet.css
Created July 17, 2014 12:01 — forked from alexeyten/dabblet.css
Align
/**
* Align
*/
flex {
display: flex;
align-items: baseline;
}
div {
width: 5em;