How do I create dynamic CSS in Rails?

后端 未结 6 1973
Happy的楠姐
Happy的楠姐 2020-12-13 16:21

what is the best/most efficient way of creating dynamic CSS with Rails. I am developing an admin area on a site, where I would like a user to be able to customize the style

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 16:45

    This solution defines some constants in config/site_settings.rb, which can then be used throughout the Rails application, as well as for automatically generating the CSS files whenever the Rails app starts and the CSS input files have been modified..

    http://unixgods.org/~tilo/Ruby/Using_Variables_in_CSS_Files_with_Ruby_on_Rails.html

提交回复
热议问题