module Blot::Helpers::Visibility
Public Instance Methods
hide_for_small() { || ... }
click to toggle source
# File lib/blot/helpers/visibility.rb, line 16 def hide_for_small content_tag :table, class: 'hide-for-small' do content_tag :tr do content_tag :td do yield if block_given? end end end end
show_for_small() { || ... }
click to toggle source
# File lib/blot/helpers/visibility.rb, line 4 def show_for_small ('<!--[if !mso]><!-- -->' + content_tag(:table, class: 'show-for-small') do content_tag :tr do content_tag :td do yield if block_given? end end end + '<!--<![endif]-->').html_safe end