Sha256: 9c1653355546cadb6ecd54257a3d8b4fe9b848caf81706d3a40ecd931acb1f2e

Contents?: true

Size: 296 Bytes

Versions: 11

Compression:

Stored size: 296 Bytes

Contents

module Trestle
  module GridHelper
    def row
      content_tag(:div, class: "row") { yield }
    end

    def col(columns)
      content_tag(:div, class: columns.map { |breakpoint, span| "col-#{breakpoint}-#{span}" }) { yield }
    end

    def divider
      content_tag(:hr)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trestle-0.8.13 app/helpers/trestle/grid_helper.rb
trestle-0.8.12 app/helpers/trestle/grid_helper.rb
trestle-0.8.11 app/helpers/trestle/grid_helper.rb
trestle-0.8.10 app/helpers/trestle/grid_helper.rb
trestle-0.8.9 app/helpers/trestle/grid_helper.rb
trestle-0.8.8 app/helpers/trestle/grid_helper.rb
trestle-0.8.7 app/helpers/trestle/grid_helper.rb
trestle-0.8.6 app/helpers/trestle/grid_helper.rb
trestle-0.8.5 app/helpers/trestle/grid_helper.rb
trestle-0.8.4 app/helpers/trestle/grid_helper.rb
trestle-0.8.3 app/helpers/trestle/grid_helper.rb