From e5e90fa4e2d931c340105b2757a0d4237fb27a0c Mon Sep 17 00:00:00 2001 From: flack Date: Thu, 18 Jul 2024 21:29:32 +0200 Subject: [PATCH] Only highlight sortable column headers on hover --- static/midcom.grid/jqGrid.custom.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/static/midcom.grid/jqGrid.custom.css b/static/midcom.grid/jqGrid.custom.css index 277f22da8..3208244c1 100644 --- a/static/midcom.grid/jqGrid.custom.css +++ b/static/midcom.grid/jqGrid.custom.css @@ -40,17 +40,20 @@ a.ui-jqgrid-titlebar-maximize span border-right-color: rgba(0, 0, 0, .07); } -.ui-jqgrid .ui-jqgrid-view th.ui-state-hover +.ui-jqgrid .ui-jqgrid-view th.ui-state-hover div.ui-jqgrid-sortable { background: -ms-linear-gradient(top, rgba(255, 255, 240, .35) 0%, rgba(255, 255, 230, .3) 6%, rgba(255, 255, 240, .25) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(255, 255, 240, .35) 0%, rgba(255, 255, 230, .3) 6%, rgba(255, 255, 240, .25) 100%); /* W3C */ } -.ui-jqgrid .ui-jqgrid-htable th div +.ui-jqgrid .ui-jqgrid-htable th.ui-th-column div { font-weight: normal; - position: relative + position: relative; + margin: 0; + padding: 2px; } + .ui-jqgrid .ui-jqgrid-htable th input { margin: 0; @@ -58,8 +61,8 @@ a.ui-jqgrid-titlebar-maximize span .ui-jqgrid .ui-jqgrid-htable th .s-ico { position: absolute; - right: 0; - top: 1px; + right: 2px; + top: 3px; font-size: 90% }