Module: Card::Set::All::RichHtml::HtmlViews::Size::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod021-standard/all/rich_html/html_views/size.rb

Constant Summary collapse

SIZE_IN_PX =
{ icon: 16, small: 75, medium: 200, large: 500 }.freeze

Instance Method Summary collapse

Instance Method Details

#max_size(w, h) ⇒ Object



21
22
23
# File 'tmpsets/set/mod021-standard/all/rich_html/html_views/size.rb', line 21

def max_size w, h
  "max-width: #{w}px; max-height: #{h}px"
end