How can I use two css frameworks in one rails app? (Using foundation and bourbon neat on same app) -


i have rails app built using foundation 3 (not using gem. located in vendor/assets/stylesheets/foundation.min.css).

and want gradually convert styling code bourbon/neat.

one thing have have in mind not break previous layouts while i'm not done recoding.

is possible this?

rails version: 3.2.13 ruby: 1.9.3

for given page in app, can include whatever styling want including stylesheets on page.

so pages have foundation styling, make sure have link stylesheet, , pages have bourbon/neat styling, have link stylesheet.

you typically see stylesheets included in layout file, adding like:

<%= stylesheet_link_tag "application", media: "all" %> 

this points index file (assets/stylesheets/application.css), in turn lists other stylesheets should included on page.

if want, either include stylesheets pages one-by-one, or use 2 different layouts: 1 foundation , 1 bourbon/neat. within each of layouts have different stylesheet sets:

# points assets/stylesheets/foundation.css <%= stylesheet_link_tag "foundation", media: "all" %>  # points assets/stylesheets/bourbon.css <%= stylesheet_link_tag "bourbon", media: "all" %> 

then transition 1 other, can change controller actions 1 @ time use bourbon/neat stylesheet set using bourbon/neat layout.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -