From ab3a7e4e21ca23ec84a47ed10b46b2d45ef95404 Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Thu, 13 Aug 2015 12:13:35 -0400 Subject: [PATCH] Only style sort handles when it's actually sortable. --- assets/css/admin.scss | 48 ++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/assets/css/admin.scss b/assets/css/admin.scss index 9891a0dea10..60eed1f9807 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -1895,33 +1895,35 @@ table.wc_input_table { } } - th.sort { - width: 17px; - padding: 0; - } - - td.sort { - padding: 0 4px; - cursor: move; - background: #f9f9f9; - text-align: center; - vertical-align: middle; - - &:before { - content: "\e032"; - font-family: 'WooCommerce'; - text-align: center; - line-height: 1; - color: #999; - display: block; + .ui-sortable:not(.ui-sortable-disabled) { + th.sort { width: 17px; - float: left; - height: 100%; + padding: 0; } - &:hover { + td.sort { + padding: 0 4px; + cursor: move; + background: #f9f9f9; + text-align: center; + vertical-align: middle; + &:before { - color: #333; + content: "\e032"; + font-family: 'WooCommerce'; + text-align: center; + line-height: 1; + color: #999; + display: block; + width: 17px; + float: left; + height: 100%; + } + + &:hover { + &:before { + color: #333; + } } } }