updated styling of sortable columns on hover.

pull/3113/head
kay.one 11 years ago
parent c519195ce3
commit d958e95c59

@ -6,7 +6,7 @@ define(
], function (Backgrid) { ], function (Backgrid) {
return Backgrid.Cell.extend({ return Backgrid.Cell.extend({
className: 'toggle-cell clickable', className: 'toggle-cell',
events: { events: {
'click': '_onClick' 'click': '_onClick'

@ -27,6 +27,10 @@
.clickable(); .clickable();
} }
.toggle-cell{
.clickable();
}
.approval-status-cell { .approval-status-cell {
widows : 10px; widows : 10px;
.popover { .popover {

@ -62,7 +62,6 @@
padding : 30px; padding : 30px;
} }
.page-toolbar { .page-toolbar {
margin-top : 10px; margin-top : 10px;
margin-bottom : 30px; margin-bottom : 30px;
@ -93,3 +92,13 @@
padding : 4px 6px; padding : 4px 6px;
font-size : 16px; font-size : 16px;
} }
th {
&.sortable {
&:hover {
background: @tableBackgroundHover;
}
.clickable();
}
}

@ -1,4 +1,4 @@
'use strict'; 'use strict';
define( define(
[ [

@ -1,4 +1,4 @@
'use strict'; 'use strict';
define( define(
[ [

@ -15,7 +15,7 @@ define(
this.$el.append(this.column.get('label')); this.$el.append(this.column.get('label'));
if (this.column.get('sortable')) { if (this.column.get('sortable')) {
this.$el.addClass('clickable'); this.$el.addClass('sortable');
this.$el.append(' <i class="pull-right"></i>'); this.$el.append(' <i class="pull-right"></i>');
if (this.collection.state) { if (this.collection.state) {

Loading…
Cancel
Save