Sha256: 40daf5db4db094cb34e08d3a0106448c8196fc2d7039b26797b08f39ee5c773b
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
module PostRunner module ViewWidgets def view_widgets_style(doc) doc.style(<<EOT .widget_frame { box-sizing: border-box; width: 600px; padding: 10px 15px 15px 15px; margin: 15px auto 15px auto; border: 1px solid #ddd; background: #fff; background: linear-gradient(#f6f6f6 0, #fff 50px); background: -o-linear-gradient(#f6f6f6 0, #fff 50px); background: -ms-linear-gradient(#f6f6f6 0, #fff 50px); background: -moz-linear-gradient(#f6f6f6 0, #fff 50px); background: -webkit-linear-gradient(#f6f6f6 0, #fff 50px); box-shadow: 0 3px 10px rgba(0,0,0,0.15); -o-box-shadow: 0 3px 10px rgba(0,0,0,0.1); -ms-box-shadow: 0 3px 10px rgba(0,0,0,0.1); -moz-box-shadow: 0 3px 10px rgba(0,0,0,0.1); -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1); } .widget_frame_title { padding-bottom: 5px; } EOT ) end def frame(doc, title) doc.div({ 'class' => 'widget_frame' }) { doc.div({ 'class' => 'widget_frame_title' }) { doc.b(title) } doc.div { yield if block_given? } } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postrunner-0.0.4 | lib/postrunner/ViewWidgets.rb |
postrunner-0.0.3 | lib/postrunner/ViewWidgets.rb |