Sha256: d0ac46bf0a83c1218a2ca8ce33e15789eb0b9557cccbbd2da693d5fa03059b5d
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
# Application template recipe for the rails_apps_composer. Check for a newer version here: # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/css_setup.rb after_bundler do say_wizard "CssSetup recipe running 'after bundler'" # Add a stylesheet with styles for a horizontal menu and flash messages css = <<-CSS ul.hmenu { list-style: none; margin: 0 0 2em; padding: 0; } ul.hmenu li { display: inline; } #flash_notice, #flash_alert { padding: 5px 8px; margin: 10px 0; } #flash_notice { background-color: #CFC; border: solid 1px #6C6; } #flash_alert { background-color: #FCC; border: solid 1px #C66; } CSS # Add a stylesheet for use with HTML5 Boilerplate css_boilerplate = <<-CSS header nav ul { list-style: none; margin: 0 0 2em; padding: 0; } header nav ul li { display: inline; } #flash_notice, #flash_alert { padding: 5px 8px; margin: 10px 0; } #flash_notice { background-color: #CFC; border: solid 1px #6C6; } #flash_alert { background-color: #FCC; border: solid 1px #C66; } CSS if recipes.include? 'rails 3.0' create_file 'public/stylesheets/application.css', css else if recipes.include? 'boilerplate' append_file 'app/assets/stylesheets/application.css', css_boilerplate else append_file 'app/assets/stylesheets/application.css', css end end end __END__ name: CssSetup description: "Add a stylesheet with styles for a horizontal menu and flash messages." author: RailsApps category: other tags: [utilities, configuration]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_apps_composer-1.0.10 | recipes/css_setup.rb |