2011-06-30 09:15:37 +02:00
|
|
|
/*
|
|
|
|
* Tables.less
|
2011-06-28 23:24:02 +02:00
|
|
|
* Tables for, you guessed it, tabular data
|
2011-08-17 07:58:01 +02:00
|
|
|
* ---------------------------------------- */
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-06-30 09:15:37 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
// BASELINE STYLES
|
|
|
|
// ---------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: @baseline;
|
|
|
|
padding: 0;
|
|
|
|
text-align: left;
|
|
|
|
border-collapse: separate;
|
2011-06-29 00:11:41 +02:00
|
|
|
font-size: 13px;
|
2011-05-04 03:09:25 +02:00
|
|
|
th, td {
|
|
|
|
padding: 10px 10px 9px;
|
2011-06-29 00:11:41 +02:00
|
|
|
line-height: @baseline * .75;
|
2011-05-04 03:09:25 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
padding-top: 9px;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom-width: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-06-30 09:15:37 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
// ZEBRA-STRIPING
|
|
|
|
// --------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
|
|
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
|
|
table.zebra-striped {
|
|
|
|
tbody {
|
|
|
|
tr:nth-child(odd) td {
|
2011-07-01 00:56:25 +02:00
|
|
|
background-color: #f9f9f9;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
tr:hover td {
|
2011-07-01 00:56:25 +02:00
|
|
|
background-color: #f5f5f5;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Tablesorting styles w/ jQuery plugin
|
2011-08-17 07:58:01 +02:00
|
|
|
th.header {
|
2011-05-04 03:09:25 +02:00
|
|
|
cursor: pointer;
|
2011-07-02 20:51:05 +02:00
|
|
|
&:after {
|
2011-08-20 04:52:07 +02:00
|
|
|
content: "";
|
2011-07-02 20:51:05 +02:00
|
|
|
float: right;
|
2011-08-20 04:52:07 +02:00
|
|
|
margin-top: 7px;
|
|
|
|
border-width: 0 4px 4px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #000 transparent;
|
|
|
|
visibility: hidden;
|
2011-07-02 20:51:05 +02:00
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
|
|
|
// Style the sorted column headers (THs)
|
2011-05-04 03:09:25 +02:00
|
|
|
th.headerSortUp,
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortDown {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: rgba(141,192,219,.25);
|
|
|
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
2011-06-28 01:47:12 +02:00
|
|
|
.border-radius(3px 3px 0 0);
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
|
|
|
// Style the ascending (reverse alphabetical) column header
|
|
|
|
th.header:hover {
|
2011-07-02 20:51:05 +02:00
|
|
|
&:after {
|
|
|
|
visibility:visible;
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
th.actions:hover {
|
2011-06-29 16:40:14 +02:00
|
|
|
background-image: none;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
|
|
|
// Style the descending (alphabetical) column header
|
2011-05-04 03:09:25 +02:00
|
|
|
th.headerSortDown,
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortDown:hover {
|
2011-07-02 20:51:05 +02:00
|
|
|
&:after {
|
|
|
|
visibility:visible;
|
|
|
|
.opacity(60);
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
|
|
|
// Style the ascending (reverse alphabetical) column header
|
|
|
|
th.headerSortUp {
|
2011-07-02 20:51:05 +02:00
|
|
|
&:after {
|
|
|
|
border-bottom: none;
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-top: 4px solid #000;
|
|
|
|
visibility:visible;
|
|
|
|
.box-shadow(none); //can't add boxshadow to downward facing arrow :(
|
|
|
|
.opacity(60);
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Blue Table Headings
|
|
|
|
th.blue {
|
|
|
|
color: @blue;
|
|
|
|
border-bottom-color: @blue;
|
|
|
|
}
|
|
|
|
th.headerSortUp.blue, th.headerSortDown.blue {
|
|
|
|
background-color: lighten(@blue, 40%);
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Green Table Headings
|
|
|
|
th.green {
|
|
|
|
color: @green;
|
|
|
|
border-bottom-color: @green;
|
|
|
|
}
|
|
|
|
th.headerSortUp.green, th.headerSortDown.green { // backround color is 20% of border color
|
|
|
|
background-color: lighten(@green, 40%);
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Red Table Headings
|
|
|
|
th.red {
|
|
|
|
color: @red;
|
|
|
|
border-bottom-color: @red;
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortUp.red, th.headerSortDown.red {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@red, 50%);
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Yellow Table Headings
|
|
|
|
th.yellow {
|
|
|
|
color: @yellow;
|
|
|
|
border-bottom-color: @yellow;
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortUp.yellow, th.headerSortDown.yellow {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@yellow, 40%);
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Orange Table Headings
|
|
|
|
th.orange {
|
|
|
|
color: @orange;
|
|
|
|
border-bottom-color: @orange;
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortUp.orange, th.headerSortDown.orange {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@orange, 40%);
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
// Purple Table Headings
|
|
|
|
th.purple {
|
|
|
|
color: @purple;
|
|
|
|
border-bottom-color: @purple;
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
th.headerSortUp.purple, th.headerSortDown.purple {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@purple, 40%);
|
|
|
|
}
|
|
|
|
}
|