Skip to content

Instantly share code, notes, and snippets.

@oli
oli / dabblet.css
Created January 22, 2015 02:30
Does anyone transition Flexbox order yet?
/* Does anyone transition Flexbox order yet?
http://dev.w3.org/csswg/css-flexbox/#order-property */
/* ✘ Chrome 28
✘ Safari 6.0.3
✘ Firefox 20
✓ Aurora 22
? IE 10
*/
@oli
oli / dabblet.css
Last active August 29, 2015 14:19
Responsive table with th full-width but 2x td still tabular
/**
* Responsive table with th full-width but 2x td still tabular
*/
table {
width: 100%;
display: table;}
th, td {background: #eee;}
tr, th {
display: block;
@oli
oli / dabblet.css
Last active August 29, 2015 14:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
ul {
display: flex;
width: 100%;
overflow: hidden;
border: 1px solid #eee;
white-space: nowrap;
overflow: hidden;
@oli
oli / dabblet.css
Created September 2, 2015 02:25
Flexbox and ellipsis
/**
* Flexbox and ellipsis
*/
ul {
display: flex
list-style: none;
white-space: nowrap; /* Stops line wrapping */
}
li {
overflow: hidden; /* Prevents overflow from expanding container */
@oli
oli / dabblet.css
Created September 2, 2015 02:35
@font-face and serif for Japanese
/**
* @font-face and serif for Japanese
*/
body {font-face: serif;}
.test {font-face: "test", serif;}
# Site structure:
/ - homepage (normal)
/2008 - 2008 articles (normal)
/2008/article1 [was draft, now published]
/2009 - 2009 articles (normal)
/2009/article1 [was draft, now published]
/2009/article2
/2009/article3
@oli
oli / Small Flowers CSS gradient pattern (cleaned up)
Created April 16, 2011 17:19
Neub attempt at a CSS gradient pattern
/*
Small flower patterns, inspired by http://leaverou.me/css3patterns
(see http://jsfiddle.net/boblet/hdagX/ for prefixed ver
Colors from http://nipponcolors.com/ Kurotobi #554236, Suoh #8e354a, Kohbai #e16b8c
*/
background:
/* circle pattern */
radial-gradient(#e16b8c 4%, transparent 4%) 0 0,
radial-gradient(#8e354a 7%, transparent 7%) -15px 0,
radial-gradient(#8e354a 7%, transparent 7%) 15px 0,
@oli
oli / gist:952995
Created May 3, 2011 08:19
Example of aligning browser-prefixed properties to the value
/* Example of aligning browser-prefixed properties to the value */
.star {
display: inline-block;
-webkit-transform: rotate(18deg);
-moz-transform: rotate(18deg);
-ms-transform: rotate(18deg);
-o-transform: rotate(18deg);
transform: rotate(18deg);
}
@oli
oli / Titlebar-only Twitter
Created May 7, 2011 07:57
HTML source for titlebar-only display of new Twitter (very infrequent) http://twitter.com/boblet
<!DOCTYPE html>
<html >
<head>
<title>Twitter</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8" />
<script type="text/javascript" charset="utf-8">
@oli
oli / dabblet.css
Created December 10, 2011 02:54
Testing testing
/**
* Testing testing
*/