Skip to content

Instantly share code, notes, and snippets.

@robinadr
robinadr / category-cloud.php
Last active August 29, 2015 14:02
Category Clouds with WordPress
<?php
wp_tag_cloud( array(
'unit' => 'em', 'largest' => 1.5, 'smallest' => 0.8,
'taxonomy' => 'category',
'topic_count_text_callback' => function ( $count ) {
return ( $count == 1 ) ? '1 post' : $count . ' posts';
}
) );
@robinadr
robinadr / grid-example.html
Created June 12, 2014 21:24
Example of using the grid system
<div class="container">
<div class="row">
<div class="third column">1/3</div>
<div class="two-thirds column">2/3</div>
</div>
<div class="row">
<div class="half column pull-right">1/2, pulled right</div>
<div class="half column">1/2 column</div>
</div>
</div>
@robinadr
robinadr / grid.scss
Last active August 29, 2015 14:02
A simple grid system, can be put at the top of any CSS layout
/** Grid system **/
// Small screens (default)
html { font-size: 100%; }
.container { margin: 0 auto; max-width: 1000px; width: 90%; }
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
.row { *zoom: 1; }
.row:before, .row:after { content: " "; display: table; }
.row:after { clear: both; }
@robinadr
robinadr / st3-prefs.json
Last active August 29, 2015 13:57
My Sublime Text 3 preferences file
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"font_face": "Menlo",
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],