2014-05-05 19:19:29 +00:00
|
|
|
/* Tablesorter Custom LESS Theme by Rob Garrison
|
2012-06-21 06:10:02 +00:00
|
|
|
|
|
|
|
To create your own theme, modify the code below and run it through
|
|
|
|
a LESS compiler, like this one: http://leafo.net/lessphp/editor.html
|
|
|
|
or download less.js from http://lesscss.org/
|
|
|
|
|
2014-05-05 19:19:29 +00:00
|
|
|
Test out these custom less files live
|
|
|
|
Basic Theme : http://codepen.io/Mottie/pen/eqBbn
|
|
|
|
Bootstrap : http://codepen.io/Mottie/pen/Ltzpi
|
|
|
|
Metro Style : http://codepen.io/Mottie/pen/gCslk
|
2012-11-12 23:01:04 +00:00
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
*/
|
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/*** theme ***/
|
2013-10-19 18:08:32 +00:00
|
|
|
@theme : tablesorter-custom;
|
2012-10-13 19:40:02 +00:00
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
/*** fonts ***/
|
|
|
|
@tableHeaderFont : 11px 'trebuchet ms', verdana, arial;
|
|
|
|
@tableBodyFont : 11px 'trebuchet ms', verdana, arial;
|
|
|
|
|
|
|
|
/*** color definitions ***/
|
2012-11-12 23:01:04 +00:00
|
|
|
/* for best results, only change the hue (120),
|
|
|
|
leave the saturation (60%) and luminosity (75%) alone
|
|
|
|
pick the color from here: http://hslpicker.com/#99E699 */
|
2012-06-21 06:10:02 +00:00
|
|
|
@headerBackground : hsl(120, 60%, 75%);
|
2012-07-25 19:59:09 +00:00
|
|
|
@borderAndBackground : #cdcdcd;
|
|
|
|
@overallBorder : @borderAndBackground 1px solid;
|
2012-06-21 06:10:02 +00:00
|
|
|
@headerTextColor : #000;
|
|
|
|
|
|
|
|
@bodyBackground : #fff;
|
|
|
|
@bodyTextColor : #000;
|
|
|
|
|
2013-05-07 15:13:50 +00:00
|
|
|
@headerAsc : darken(spin(@headerBackground, 5), 10%); /* darken(@headerBackground, 10%); */
|
|
|
|
@headerDesc : lighten(spin(@headerBackground, -5), 10%); /* desaturate(@headerAsc, 5%); */
|
2012-06-21 06:10:02 +00:00
|
|
|
|
2013-04-01 16:02:48 +00:00
|
|
|
@captionBackground : #fff; /* it might be best to match the document body background color here */
|
2013-05-07 15:13:50 +00:00
|
|
|
@errorBackground : #e6bf99; /* ajax error message (added to thead) */
|
2013-04-01 16:02:48 +00:00
|
|
|
|
2012-07-25 19:59:09 +00:00
|
|
|
@filterCellBackground : #eee;
|
2012-10-13 19:40:02 +00:00
|
|
|
@filterElementTextColor: #333;
|
|
|
|
@filterElementBkgd : #fff;
|
|
|
|
@filterElementBorder : 1px solid #bbb;
|
|
|
|
@filterTransitionTime : 0.1s;
|
|
|
|
@filterRowHiddenHeight : 4px; /* becomes height using padding (so it's divided by 2) */
|
2012-07-25 19:59:09 +00:00
|
|
|
|
|
|
|
@overallPadding : 4px;
|
|
|
|
/* 20px should be slightly wider than the icon width to avoid overlap */
|
|
|
|
@headerPadding : 4px 20px 4px 4px;
|
|
|
|
|
|
|
|
/* url(icons/loading.gif); */
|
|
|
|
@processingIcon : url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=');
|
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
/* zebra striping */
|
|
|
|
.allRows {
|
|
|
|
background: @bodyBackground;
|
|
|
|
color: @bodyTextColor;
|
|
|
|
}
|
|
|
|
.evenRows {
|
|
|
|
background: lighten(@headerBackground, 40%);
|
|
|
|
color: @bodyTextColor;
|
|
|
|
}
|
|
|
|
.oddRows {
|
|
|
|
background: lighten(@headerBackground, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hovered rows */
|
|
|
|
.oddHovered {
|
|
|
|
background: desaturate(@headerBackground, 60%);
|
|
|
|
color: @bodyTextColor;
|
|
|
|
}
|
|
|
|
.evenHovered {
|
|
|
|
background: lighten( desaturate(@headerBackground, 60%), 10% );
|
|
|
|
color: @bodyTextColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Columns widget */
|
2014-05-05 19:19:29 +00:00
|
|
|
@primaryOdd : spin(@headerBackground, 10); /* saturate( darken( desaturate(@headerBackground, 10%), 10% ), 30%); */
|
|
|
|
@primaryEven : lighten( @primaryOdd, 10% );
|
|
|
|
@secondaryOdd : @primaryEven;
|
|
|
|
@secondaryEven : lighten( @primaryEven, 5% );
|
|
|
|
@tertiaryOdd : @secondaryEven;
|
|
|
|
@tertiaryEven : lighten( @secondaryEven, 5% );
|
2012-06-21 06:10:02 +00:00
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* Filter widget transition */
|
|
|
|
.filterWidgetTransition {
|
|
|
|
-webkit-transition: line-height @filterTransitionTime ease;
|
|
|
|
-moz-transition: line-height @filterTransitionTime ease;
|
|
|
|
-o-transition: line-height @filterTransitionTime ease;
|
|
|
|
transition: line-height @filterTransitionTime ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*** Arrows ***/
|
2014-10-09 15:36:33 +00:00
|
|
|
@arrowPosition : right 5px center;
|
2012-10-13 19:40:02 +00:00
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
/* black */
|
2014-05-05 19:19:29 +00:00
|
|
|
@unsortedBlack : url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
|
|
|
@sortAscBlack : url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
|
|
|
@sortDescBlack : url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
2012-07-25 19:59:09 +00:00
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
/* white */
|
2014-05-05 19:19:29 +00:00
|
|
|
@unsortedWhite : url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
|
|
|
@sortAscWhite : url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
|
|
|
@sortDescWhite : url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
2012-07-25 19:59:09 +00:00
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* automatically choose the correct arrow/text color */
|
2014-05-05 19:19:29 +00:00
|
|
|
.headerText (@a) when (lightness(@a) >= 50%) {
|
|
|
|
color: @headerTextColor;
|
|
|
|
}
|
|
|
|
.headerText (@a) when (lightness(@a) < 50%) {
|
|
|
|
color: lighten(@headerTextColor, 90%);
|
|
|
|
}
|
2012-06-21 06:10:02 +00:00
|
|
|
.unsorted (@a) when (lightness(@a) >= 50%) {
|
|
|
|
background-image: @unsortedBlack;
|
|
|
|
}
|
|
|
|
.unsorted (@a) when (lightness(@a) < 50%) {
|
|
|
|
background-image: @unsortedWhite;
|
|
|
|
}
|
2013-05-07 15:13:50 +00:00
|
|
|
.sortAsc (@a) when (lightness(@a) >= 50%) {
|
|
|
|
background-image: @sortAscBlack;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
2013-05-07 15:13:50 +00:00
|
|
|
.sortAsc (@a) when (lightness(@a) < 50%) {
|
|
|
|
background-image: @sortAscWhite;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
2013-05-07 15:13:50 +00:00
|
|
|
.sortDesc (@a) when (lightness(@a) >= 50%) {
|
|
|
|
background-image: @sortDescBlack;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
2013-05-07 15:13:50 +00:00
|
|
|
.sortDesc (@a) when (lightness(@a) < 50%) {
|
|
|
|
background-image: @sortDescWhite;
|
2012-07-25 19:59:09 +00:00
|
|
|
}
|
2012-06-21 06:10:02 +00:00
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* variable theme name - requires less.js 1.3+;
|
2014-05-05 19:19:29 +00:00
|
|
|
or just replace (!".@{theme}") with the contents of @theme
|
2012-10-13 19:40:02 +00:00
|
|
|
*/
|
2013-10-19 18:08:32 +00:00
|
|
|
.@{theme} {
|
2012-06-21 06:10:02 +00:00
|
|
|
font: @tableBodyFont;
|
|
|
|
background-color: @borderAndBackground;
|
|
|
|
margin: 10px 0 15px;
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
border-spacing: 0;
|
2012-10-13 19:40:02 +00:00
|
|
|
border: @overallBorder;
|
|
|
|
border-width: 1px 0 0 1px;
|
2012-06-21 06:10:02 +00:00
|
|
|
|
|
|
|
th, td {
|
|
|
|
border: @overallBorder;
|
2012-10-13 19:40:02 +00:00
|
|
|
border-width: 0 1px 1px 0;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* style th's outside of the thead */
|
2012-07-25 19:59:09 +00:00
|
|
|
th, thead td {
|
2012-06-21 06:10:02 +00:00
|
|
|
font: @tableHeaderFont;
|
|
|
|
font-weight: bold;
|
2012-10-13 19:40:02 +00:00
|
|
|
background-color: @headerBackground;
|
2014-05-05 19:19:29 +00:00
|
|
|
.headerText(@headerBackground);
|
2012-10-13 19:40:02 +00:00
|
|
|
border-collapse: collapse;
|
|
|
|
padding: @overallPadding;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody td, tfoot th, tfoot td {
|
2012-07-25 19:59:09 +00:00
|
|
|
padding: @overallPadding;
|
2012-10-13 19:40:02 +00:00
|
|
|
vertical-align: top;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* style header */
|
|
|
|
.tablesorter-header {
|
|
|
|
.unsorted(@headerBackground);
|
|
|
|
background-repeat: no-repeat;
|
2012-10-13 19:40:02 +00:00
|
|
|
background-position: @arrowPosition;
|
2012-07-25 19:59:09 +00:00
|
|
|
padding: @headerPadding;
|
2012-06-21 06:10:02 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2012-12-14 20:05:29 +00:00
|
|
|
.tablesorter-header.sorter-false {
|
2013-01-07 19:01:57 +00:00
|
|
|
background-image: none;
|
2013-11-23 01:12:17 +00:00
|
|
|
cursor: default;
|
2012-12-19 16:36:44 +00:00
|
|
|
padding: @overallPadding;
|
2012-12-14 20:05:29 +00:00
|
|
|
}
|
|
|
|
|
2013-05-07 15:13:50 +00:00
|
|
|
.tablesorter-headerAsc {
|
|
|
|
background-color: @headerAsc;
|
|
|
|
.sortAsc(@headerBackground);
|
2012-07-25 19:59:09 +00:00
|
|
|
}
|
|
|
|
|
2013-05-07 15:13:50 +00:00
|
|
|
.tablesorter-headerDesc {
|
|
|
|
background-color: @headerDesc;
|
|
|
|
.sortDesc(@headerBackground);
|
2012-07-25 19:59:09 +00:00
|
|
|
}
|
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* tfoot */
|
2013-05-07 15:13:50 +00:00
|
|
|
tfoot .tablesorter-headerAsc,
|
|
|
|
tfoot .tablesorter-headerDesc {
|
2012-10-13 19:40:02 +00:00
|
|
|
/* remove sort arrows from footer */
|
|
|
|
background-image: none;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
|
|
|
|
2014-05-05 19:19:29 +00:00
|
|
|
/* optional disabled input styling */
|
2012-07-25 19:59:09 +00:00
|
|
|
.disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
filter: alpha(opacity=50);
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
/* body */
|
|
|
|
tbody {
|
|
|
|
|
|
|
|
td {
|
|
|
|
.allRows;
|
2012-07-25 19:59:09 +00:00
|
|
|
padding: @overallPadding;
|
2012-06-21 06:10:02 +00:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Zebra Widget - row alternating colors */
|
2014-10-09 15:36:33 +00:00
|
|
|
tr.odd > td {
|
2012-06-21 06:10:02 +00:00
|
|
|
.oddRows;
|
|
|
|
}
|
2014-10-09 15:36:33 +00:00
|
|
|
tr.even > td {
|
2012-06-21 06:10:02 +00:00
|
|
|
.evenRows;
|
|
|
|
}
|
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
}
|
2012-06-21 06:10:02 +00:00
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* hovered row colors
|
2014-05-05 19:19:29 +00:00
|
|
|
you'll need to add additional lines for
|
|
|
|
rows with more than 2 child rows
|
2012-10-13 19:40:02 +00:00
|
|
|
*/
|
|
|
|
tbody > tr:hover td,
|
|
|
|
tbody > tr:hover + tr.tablesorter-childRow > td,
|
|
|
|
tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
|
|
|
tbody > tr.even:hover > td,
|
|
|
|
tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
|
|
|
tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
|
|
|
.evenHovered;
|
|
|
|
}
|
|
|
|
tbody > tr.odd:hover > td,
|
|
|
|
tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
|
|
|
tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
|
|
|
.oddHovered;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
|
|
|
|
2012-07-25 19:59:09 +00:00
|
|
|
/* table processing indicator - indeterminate spinner */
|
|
|
|
.tablesorter-processing {
|
|
|
|
background-image: @processingIcon;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* Column Widget - column sort colors */
|
|
|
|
tr.odd td.primary {
|
|
|
|
background-color: @primaryOdd;
|
|
|
|
}
|
|
|
|
td.primary, tr.even td.primary {
|
|
|
|
background-color: @primaryEven;
|
|
|
|
}
|
|
|
|
tr.odd td.secondary {
|
|
|
|
background-color: @secondaryOdd;
|
|
|
|
}
|
|
|
|
td.secondary, tr.even td.secondary {
|
|
|
|
background-color: @secondaryEven;
|
|
|
|
}
|
|
|
|
tr.odd td.tertiary {
|
|
|
|
background-color: @tertiaryOdd;
|
|
|
|
}
|
|
|
|
td.tertiary, tr.even td.tertiary {
|
|
|
|
background-color: @tertiaryEven;
|
|
|
|
}
|
|
|
|
|
2013-04-01 16:02:48 +00:00
|
|
|
/* caption (non-theme matching) */
|
|
|
|
caption {
|
|
|
|
background: @captionBackground ;
|
|
|
|
}
|
|
|
|
|
2012-10-13 19:40:02 +00:00
|
|
|
/* filter widget */
|
|
|
|
.tablesorter-filter-row input,
|
|
|
|
.tablesorter-filter-row select{
|
|
|
|
width: 98%;
|
2013-04-01 16:02:48 +00:00
|
|
|
height: auto;
|
2012-10-13 19:40:02 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: @overallPadding;
|
|
|
|
color: @filterElementTextColor;
|
|
|
|
background: @filterElementBkgd;
|
|
|
|
border: @filterElementBorder;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.filterWidgetTransition;
|
|
|
|
}
|
|
|
|
.tablesorter-filter-row td {
|
|
|
|
text-align: center;
|
|
|
|
background: @filterCellBackground;
|
|
|
|
line-height: normal;
|
|
|
|
text-align: center; /* center the input */
|
|
|
|
.filterWidgetTransition;
|
|
|
|
}
|
|
|
|
/* hidden filter row */
|
|
|
|
.tablesorter-filter-row.hideme td {
|
|
|
|
padding: @filterRowHiddenHeight / 2;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-11-05 22:53:06 +00:00
|
|
|
.tablesorter-filter-row.hideme * {
|
2012-10-13 19:40:02 +00:00
|
|
|
height: 1px;
|
|
|
|
min-height: 0;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
/* don't use visibility: hidden because it disables tabbing */
|
|
|
|
opacity: 0;
|
|
|
|
filter: alpha(opacity=0);
|
|
|
|
}
|
2014-03-31 10:07:19 +00:00
|
|
|
/* rows hidden by filtering (needed for child rows) */
|
|
|
|
.filtered {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-10-13 19:40:02 +00:00
|
|
|
|
2013-05-07 15:13:50 +00:00
|
|
|
/* ajax error row */
|
|
|
|
.tablesorter-errorRow td {
|
2014-02-05 12:10:55 +00:00
|
|
|
text-align: center;
|
2013-05-07 15:13:50 +00:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: @errorBackground;
|
|
|
|
}
|
|
|
|
|
2012-06-21 06:10:02 +00:00
|
|
|
}
|