From 57a52c36084e21d0c0009b2b400fdb2cb6b07348 Mon Sep 17 00:00:00 2001 From: Diana Whitten Date: Tue, 22 Dec 2015 10:02:27 -0700 Subject: [PATCH] Clean up horizon.scss - _util.scss A major part of the css reorg is a better organization of the css styles themselves. horizon.scss should be a global import level file. Move remaining util classes out of horizon.scss Change-Id: Ib98e20b42dd9996a018e7be6e66b3f4e2ff3cffc Partially-Implements: blueprint horizon-theme-css-reorg --- .../static/dashboard/scss/_util.scss | 26 +++++++++++++++ .../static/dashboard/scss/horizon.scss | 33 ------------------- 2 files changed, 26 insertions(+), 33 deletions(-) diff --git a/openstack_dashboard/static/dashboard/scss/_util.scss b/openstack_dashboard/static/dashboard/scss/_util.scss index c8233a053e..80ad63ef8b 100644 --- a/openstack_dashboard/static/dashboard/scss/_util.scss +++ b/openstack_dashboard/static/dashboard/scss/_util.scss @@ -6,6 +6,32 @@ margin: 0 auto; } +/* new clearfix */ +.clearfix:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} + +.clear { + clear: both; + width: 0; + height: 0; + padding: 0; + margin: 0; +} + +.header_rule { + margin-top: 0; +} + +input::-ms-clear, input::-ms-reveal { + display: none; +} + // Used to x-scroll to Pre-formatted text. .pre_scrollable { display: table; diff --git a/openstack_dashboard/static/dashboard/scss/horizon.scss b/openstack_dashboard/static/dashboard/scss/horizon.scss index 77bd6db3ad..454bdeeb5c 100644 --- a/openstack_dashboard/static/dashboard/scss/horizon.scss +++ b/openstack_dashboard/static/dashboard/scss/horizon.scss @@ -45,23 +45,6 @@ // Debt @import "debt"; -/* new clearfix */ -.clearfix:after { - visibility: hidden; - display: block; - font-size: 0; - content: " "; - clear: both; - height: 0; -} -* html .clearfix { - zoom: 1; -} // IE6 -*:first-child+html .clearfix { - zoom: 1; -} // IE7 - - small { font-size: 11px; } @@ -160,14 +143,6 @@ a.current_item:hover h4 { margin-bottom: 0; } -.clear { - clear: both; - width: 0; - height: 0; - padding: 0; - margin: 0; -} - .modal-footer { input { width: auto; @@ -249,10 +224,6 @@ div .flavor_table { width: 160px; } -.header_rule { - margin: 0 0 8px; -} - .item_detail .detail_section { margin-bottom: 25px; float: left; @@ -732,10 +703,6 @@ a.link-popover { cursor: default; } a:hover.link-popover { text-decoration: none; } -input::-ms-clear, input::-ms-reveal { - display: none; -} - /**** Form Horizontal Override ****/ .form-horizontal { .form-group {