Sha256: 56d77621a93578f487ea5cad2bc8ad0fa0045dc81ea022f9e63d2064b4ca2986
Contents?: true
Size: 727 Bytes
Versions: 11
Compression:
Stored size: 727 Bytes
Contents
(function() { "use strict"; // Used with the `has-grid` and `has-cards` Sass mixins, // it appends an extra span element for each missing column // based on the number of columns defined in the CSS. App.register('component').enter(function() { var columns, children, container, missingColumns; $('body *').each(function() { container = $(this); columns = container.css('column-count'); // Ignore elements without column-count if (columns === 'auto') { return; } children = container.children().length; missingColumns = columns - (children % columns); for (var i = 0; i < missingColumns; i++) { container.append('<div></div>'); } }); }); })();
Version data entries
11 entries across 11 versions & 2 rubygems