Add State U. Theme to Theme Editor

Fixes: CNVS-25765

This is the second of four themes we are going to
add to Theme Editor's default offerings.

Test plan:
- Pull down the patchset, migrate your
  database, and restart Canvas
- Open Theme Editor. Make sure you have delayed
  jobs running in the background:
  script/delayed_job run
- You should now see the State U. theme listed in
  the select input
- If you lose all your styles after doing this, you
  might need to run:
  bundle exec rake brand_configs:generate_and_upload_all
  ... then restart.
- Canvas should now look like this:
  http://screencast.com/t/dOZs5zGVI

Change-Id: Ifbb529f815a82a025020b8c573193e6d370b5ab8
Reviewed-on: https://gerrit.instructure.com/68174
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Chris Hart <chart@instructure.com>
Product-Review: Pam Hiett <phiett@instructure.com>
Tested-by: Jenkins
Product-Review: Colleen Palmer <colleen@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
This commit is contained in:
Chris Hart 2015-12-03 12:13:08 -05:00
parent edcf2f5be1
commit 76b8661e0d
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
class CreateStateTheme < ActiveRecord::Migration
tag :predeploy
NAME = "State U. Theme"
def up
variables = {
"ic-brand-primary"=>"#d12e2e",
"ic-link-color"=>"#b52828",
"ic-brand-global-nav-bgd"=>"#262626",
"ic-brand-global-nav-ic-icon-svg-fill"=>"#d43c3c",
"ic-brand-global-nav-menu-item__text-color--active"=>"#d12e2e",
"ic-brand-global-nav-menu-item__badge-bgd"=>"#128812",
"ic-brand-global-nav-logo-bgd"=>"#d12e2e",
"ic-brand-watermark-opacity"=>"1",
"ic-brand-Login-body-bgd-color"=>"#d12e2e",
"ic-brand-Login-body-bgd-shadow-color"=>"#d12e2e",
"ic-brand-Login-Content-bgd-color"=>"#262626",
"ic-brand-Login-Content-border-color"=>"#262626",
"ic-brand-Login-Content-password-text-color"=>"#dddddd",
"ic-brand-Login-Content-button-bgd"=>"#d12e2e",
"ic-brand-Login-footer-link-color"=>"#dddddd",
"ic-brand-Login-footer-link-color-hover"=>"#cccccc",
"ic-brand-Login-instructure-logo"=>"#cccccc"
}
bc = BrandConfig.new(variables: variables)
bc.name = NAME
bc.share = true
bc.save!
bc.save_scss_file!
end
def down
BrandConfig.where(name: NAME).delete_all
end
end