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 29, 2014 20:27
Untitled
color: lime;
@kizu
kizu / dabblet.css
Created January 30, 2014 18:56
Difference between `0` and `none` for `border`
/* Difference between `0` and `none` for `border` */
.a {
border: 0;
}
.a2 {
border-style: solid;
}
.b {
border: none;
}
@kizu
kizu / dabblet.css
Created February 5, 2014 11:06
Rounded arrow button prototype.
/* Rounded arrow button prototype. */
/* Shitty gradient, I know! */
.button {
position: relative;
display: inline-block;
padding: 1em 0 1em 1em;
margin: 100px;
font: 20px/1.5 Helvetica, Arial, sans-serif;
@kizu
kizu / dabblet.css
Created February 6, 2014 09:07
Rounded arrow button prototype.
/* Rounded arrow button prototype. */
/* Shitty gradient, I know! */
body {
background-color: #BBB;
background-image:
repeating-linear-gradient(120deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
repeating-linear-gradient(60deg, rgba(255,255,255,.1), rgba(255,255,255,.1) 1px, transparent 1px, transparent 60px),
linear-gradient(60deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1)),
linear-gradient(120deg, rgba(0,0,0,.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.1));
@kizu
kizu / dabblet.css
Created February 8, 2014 16:15
Demo of Firefox inline-flex bug
/* Demo of Firefox inline-flex bug */
.baseline-wrapper {
overflow: auto;
white-space: nowrap;
}
.baseline-wrapper:before {
content: "";
position: relative;
@kizu
kizu / dabblet.css
Created February 8, 2014 17:32
Demo of another Firefox inline-flex bug
/* Demo of another Firefox inline-flex bug */
.baseline-wrapper {
overflow: auto;
white-space: nowrap;
}
.baseline-wrapper:before {
content: "";
position: relative;
@kizu
kizu / dabblet.css
Created February 10, 2014 06:46
Test for after
/* Test for after */
.a,
.b {
position: absolute;
top: 0;
bottom: 0;
width: 50%;
}
.a {
@kizu
kizu / dabblet.css
Created February 10, 2014 11:43
Flexible baseline test
/* Flexible baseline test */
.button,
.button-translate {
display: -ms-inline-flexbox;
display: -webkit-inline-flex;
display: inline-flex;
flex-direction: column;
vertical-align: baseline;
@kizu
kizu / dabblet.css
Created February 17, 2014 07:40
Webkit white-on-white bug
/* Webkit white-on-white bug */
html {
background: #FFF;
}
.a {
position: absolute;
top: 0;
left: 0;
@kizu
kizu / dabblet.css
Created February 24, 2014 15:59
Flex with fallback
/* Flex with fallback */
.flex {
width: 100%;
display: table;
display: flex;
}
.shrinking-item {
flex-shrink: 0;