From 54b9506ed5f51ea1f13a1df1a105d5d7e6452289 Mon Sep 17 00:00:00 2001 From: Diana Whitten Date: Sun, 6 Mar 2016 12:21:00 -0700 Subject: [PATCH] Branding: Create Network should inherit from theme Create network is different than all other workflows, and it has a lot of unnecessary style associated with it. This inhibits themability. It should just use standard nav-pills. partial-bug: #1551492 Closes-bug: #1553781 Change-Id: I6896df03b86ae0c4388ac15246739aeea5365a95 --- horizon/static/horizon/js/horizon.forms.js | 2 +- .../templates/horizon/common/_workflow.html | 2 +- .../static/dashboard/scss/_variables.scss | 17 ---- .../dashboard/scss/components/_modals.scss | 4 + .../dashboard/scss/components/_workflow.scss | 89 ------------------- .../static/dashboard/scss/horizon.scss | 1 - .../test/integration_tests/regions/menus.py | 2 +- 7 files changed, 7 insertions(+), 110 deletions(-) delete mode 100644 openstack_dashboard/static/dashboard/scss/components/_workflow.scss diff --git a/horizon/static/horizon/js/horizon.forms.js b/horizon/static/horizon/js/horizon.forms.js index caba00b969..35bdadaea5 100644 --- a/horizon/static/horizon/js/horizon.forms.js +++ b/horizon/static/horizon/js/horizon.forms.js @@ -314,7 +314,7 @@ horizon.addInitFunction(horizon.forms.init = function () { $switchables.each(function (index, switchable) { var $switchable = $(switchable), - visible = $switchable.is(':visible'), + visible = $switchable.parent().hasClass('themable-checkbox') ? $switchable.siblings('label').is(':visible') : $switchable.is(':visible'), slug = $switchable.data('slug'), checked = $switchable.prop('checked'), hide_tab = String($switchable.data('hide-tab')).split(','), diff --git a/horizon/templates/horizon/common/_workflow.html b/horizon/templates/horizon/common/_workflow.html index 22797d5f7b..53190c88ee 100644 --- a/horizon/templates/horizon/common/_workflow.html +++ b/horizon/templates/horizon/common/_workflow.html @@ -19,7 +19,7 @@