Sha256: 74c2989d599f517dab1c82a6a2f57021f2b41ad0f146b90f1f9d1cd7d946b547

Contents?: true

Size: 1016 Bytes

Versions: 15

Compression:

Stored size: 1016 Bytes

Contents

=begin
== Inlining Styles

=== Basic Inlining

Old docomo handsets {don't support external stylesheets}[http://www.keitai-dev.net/CSS]. Additionally, only very limited CSS is supported. galakei/docomo_css automatically inlines CSS and manipulates markup to overcome these limitations.

 # css file
 h1 { color: red; background-color: blue}

 # source html
 <h1>Foo</h1>

 # outputted html
 <div style="background-color: blue;"><h1><span style="color:red;">Foo</span></h1>/div>

=== Borders

Furthermore, the css border property is supported through the "spacer.gif" technique.

 # css file
 div { border-bottom: 5px solid #000000; }

 # source html
 <div>Foo</div>

 # outputted html
 <div>Foo</div>
 <img src="/galakei/spacer/000000" width="100%" height="5">

This will generate a 1px by 1px image, emulating the effect of borders on old docomo handsets.
=end
module Galakei::DocomoCss
  autoload :Stylesheet, "galakei/docomo_css/stylesheet"
  autoload :InlineStylesheet, "galakei/docomo_css/inline_stylesheet"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
galakei-0.15.2 lib/galakei/docomo_css.rb
galakei-0.15.1 lib/galakei/docomo_css.rb
galakei-0.15.0 lib/galakei/docomo_css.rb
galakei-0.14.4 lib/galakei/docomo_css.rb
galakei-0.14.3 lib/galakei/docomo_css.rb
galakei-0.14.2 lib/galakei/docomo_css.rb
galakei-0.14.1 lib/galakei/docomo_css.rb
galakei-0.14.0 lib/galakei/docomo_css.rb
galakei-0.13.7 lib/galakei/docomo_css.rb
galakei-0.13.6 lib/galakei/docomo_css.rb
galakei-0.13.5 lib/galakei/docomo_css.rb
galakei-0.13.4 lib/galakei/docomo_css.rb
galakei-0.13.3 lib/galakei/docomo_css.rb
galakei-0.13.2 lib/galakei/docomo_css.rb
galakei-0.13.1 lib/galakei/docomo_css.rb