Skip to content

Instantly share code, notes, and snippets.

@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;}
@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
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
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
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 / agnoster-oli.zsh-theme
Last active February 27, 2019 07:40
Adding extra Git repo sugar to the ZSH agnoster theme (with Solarized)
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
@oli
oli / Horizontal rule style
Created October 10, 2013 06:59
A minimal horizontal rule style for printing, despite browsers being incapable of printing a hairline
/* Based on Glyph, by Harry Roberts */
/* http://css-tricks.com/simple-styles-for-horizontal-rules/ */
hr {
height: 0;
margin: 3em 0;
padding: 0;
border: none;
border-top: 1px solid #999;
text-align: center;
@oli
oli / dabblet.css
Created May 4, 2013 14: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
Created May 4, 2013 14:25
Is visible transitionable?
/* Is visible transitionable?
Despite the spec it appears so
http://dev.w3.org/csswg/css-box/#the-visibility-property */
.box {
visibility: visible;
transition: all 0.5s ease-out;
width: 18em;
min-height: 4em;
padding: 0.75em 0;
@oli
oli / dabblet.css
Created April 21, 2013 14:06
Is visible transitionable?
/* Is visible transitionable?
Despite the spec it appears so
http://dev.w3.org/csswg/css-box/#the-visibility-property */
.box {
visibility: visible;
transition: all 0.5s ease-out;
width: 18em;
min-height: 4em;
padding: 0.75em 0;