canvas-lms/db/migrate/20151203162845_create_state...

36 lines
1.2 KiB
Ruby

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