Skip to content

Instantly share code, notes, and snippets.

@gerkibo
gerkibo / table-wrapper.js
Last active May 4, 2016 15:38
This function will wrap a div with class table-wrapper around a table
function tableWrap(parentClass){
//parentClass represents a CSS class of the parent content wrapper to make selector specific
$('.' + parentClass + ' table').wrap('<div class="table-wrapper"></div>');
}
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 767 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// Contains:
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout
// Visibility classes for the Mid-Small layout
// Redefined visibility classes for the Extra Small layout