From b69ff722c17a25637c6c95426f6096474fddf10b Mon Sep 17 00:00:00 2001 From: Rob Cresswell Date: Wed, 27 Jan 2016 11:26:29 +0000 Subject: [PATCH] Match python/ angular table styles This patch unifies the Python and Angular table styles (there is no reason for them to look drastically different). - Clean up table header in _data_table.html - Remove page_header styling for default theme, as it causes the angular panels to shift downwards on the page - Removed styling workarounds from default themes - Removed several chunks of angular specific scss code, including the 'modern' class - Removed the "Actions" header in python tables, to match Angular - Removed duplicate 'no items to display' info in footer, when table is empty. - Also fixes the Containers header, which was different to all the others Closes-Bug: 1517081 Co-Authored-By: Diana Whitten Change-Id: Id71aab6e8bbbcd1f7fa4d5575156e4d3c6aa990d --- .../widgets/action-list/split-button.html | 2 +- .../static/framework/widgets/table/table.scss | 107 ++---------------- .../transfer-table.example.html | 2 +- horizon/static/horizon/js/horizon.tables.js | 12 +- .../templates/horizon/common/_data_table.html | 26 ++--- horizon/test/tests/tables.py | 4 +- .../admin/flavors/table/flavors-table.html | 2 +- .../ngusers/templates/ngusers/index.html | 4 + .../static/dashboard/identity/identity.scss | 2 - .../dashboard/identity/projects/projects.scss | 0 .../dashboard/identity/users/table/table.html | 6 +- .../dashboard/identity/users/users.scss | 11 -- .../templates/containers/index.html | 6 - .../dashboards/project/containers/views.py | 1 + .../ngimages/templates/ngimages/index.html | 5 +- .../flavor/select-flavor-table.html | 2 +- .../launch-instance/keypair/keypair.html | 4 +- .../launch-instance/network/network.html | 4 +- .../security-group-details.html | 2 +- .../security-groups/security-groups.html | 4 +- .../launch-instance/source/source.html | 4 +- openstack_dashboard/enabled/_3000_identity.py | 4 - .../static/app/core/images/_images.scss | 4 - .../app/core/images/table/images-table.html | 16 ++- .../static/dashboard/scss/_layout.scss | 10 -- .../static/dashboard/scss/_variables.scss | 2 - .../scss/components/_table_actions.scss | 6 +- .../dashboard/scss/components/_tables.scss | 10 +- .../themes/default/bootstrap/_styles.scss | 3 +- .../default/bootstrap/components/_tables.scss | 25 ---- .../default/bootstrap/components/_type.scss | 4 +- .../default/horizon/components/_tables.scss | 23 ---- 32 files changed, 79 insertions(+), 238 deletions(-) delete mode 100644 openstack_dashboard/dashboards/identity/static/dashboard/identity/identity.scss delete mode 100644 openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/projects.scss delete mode 100644 openstack_dashboard/dashboards/identity/static/dashboard/identity/users/users.scss delete mode 100644 openstack_dashboard/themes/default/bootstrap/components/_tables.scss diff --git a/horizon/static/framework/widgets/action-list/split-button.html b/horizon/static/framework/widgets/action-list/split-button.html index 190a3fa06b..de0cc94eb3 100644 --- a/horizon/static/framework/widgets/action-list/split-button.html +++ b/horizon/static/framework/widgets/action-list/split-button.html @@ -7,7 +7,7 @@