Skip to content

Instantly share code, notes, and snippets.

@cfitz
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfitz/276942a3bba0c2a80462 to your computer and use it in GitHub Desktop.
Save cfitz/276942a3bba0c2a80462 to your computer and use it in GitHub Desktop.
update the css in ASPACE
# plugins/local/frontend/controllers/application_controller.rb
# Obviously, not a application controller, but we just name it this to follow a convention.
class ApplicationController < ActionController::Base
end
module ApplicationHelper
def include_theme_css
css = ""
css += stylesheet_link_tag("themes/#{ArchivesSpace::Application.config.frontend_theme}/bootstrap", :media => "all")
css += stylesheet_link_tag("themes/#{ArchivesSpace::Application.config.frontend_theme}/application", :media => "all")
css += stylesheet_link_tag("/assets/custom.css", :media => "all")
css.html_safe
end
end
/* plugins/local/frontend/assets/custom.css */
body {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment