Sha256: 87e6ced36d7672878d4da8858e200dcca9eea88d6e5bf1375381bbad061d711d
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
require_relative '../helpers/indented_grid' Voom::Presenters.define(:layouts) do helpers Demo::Helpers::IndentedGrid attach :top_nav attach :component_drawer page_title 'Layouts' indented_grid do headline 'Grid' grid do (1..12).each do |size| column 1, color: :lightgray do body '1' end end end grid do (1..3).each do |size| column 4, color: :lightgray do body '4' end end end grid do column 6, color: :lightgray do body '6 wide with sub-grid of 12' grid do (1..12).each do |size| column 1, color: :white do body '1' end end end end column 4, color: :lightgray do body '4' end column 2, color: :lightgray do body '2' end end headline 'Grid Padding' body 'You can control the grid padding with the `padding` attribute.', 'By default a top most grid has padding on all four sides.', 'A nested grid has top and bottom padding only. (No right and left padding.)', 'Vaid values are `:all`, `:none` and an array that specifies sides to pad: `[:top, :right, :bottom, :left]`. (Same as `:none`)', 'You can also pad columns. Column padding is half as wide as grid padding. ' grid padding: :top do column 6, color: :lightgray do body '6 wide with sub-grid of 12' grid padding: :none do (1..12).each do |size| column 1, color: :white do body '1' end end end end column 4, color: :lightgray, padding: [:top, :left, :bottom] do body '4' end column 2, color: :lightgray do body '2' end end attach :code, file: __FILE__ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voom-presenters-0.2.0 | app/demo/components/layouts.pom |