Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Got custom css working.

  • Loading branch information...
commit 3aac7b3382a99332ea67b46a86117d71c84bc930 1 parent 51f61a2
Alan Johnson authored
View
3  generators/control_center/templates/control_center.html.erb
@@ -12,6 +12,9 @@
#header { background: <%= ControlCenter::Config.theme_color %>; }
#sub_tabs li {background-color: <%= ControlCenter::Config.theme_color %>; }
</style>
+ <% ControlCenter::Config.custom_css.each do |key, value| %>
+ <%= stylesheet_link_tag key, value %>
+ <% end %>
</head>
<body>
<div id="header">
View
1  lib/control_center.rb
@@ -2,5 +2,6 @@ module ControlCenter
class Config
cattr_accessor :app_title
cattr_accessor :theme_color
+ cattr_accessor :custom_css
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.