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;
|
2011-09-09 08:01:28 +02:00
|
|
|
border-collapse: separate;
|
2011-09-08 19:47:05 +02:00
|
|
|
font-size: @basefont;
|
2011-09-09 08:01:28 +02:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(4px);
|
2011-05-04 03:09:25 +02:00
|
|
|
th, td {
|
|
|
|
padding: 10px 10px 9px;
|
2011-09-08 19:47:05 +02:00
|
|
|
line-height: @baseline;
|
2011-08-22 05:07:15 +02:00
|
|
|
text-align: left;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
th {
|
|
|
|
padding-top: 9px;
|
|
|
|
font-weight: bold;
|
2011-09-08 19:47:05 +02:00
|
|
|
vertical-align: middle;
|
2011-09-09 08:01:28 +02:00
|
|
|
border-bottom: 1px solid #ddd;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-09-08 19:47:05 +02:00
|
|
|
td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2011-09-09 08:01:28 +02:00
|
|
|
th + th,
|
|
|
|
td + td {
|
|
|
|
border-left: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
tr + tr td {
|
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
tbody tr:first-child td:first-child {
|
|
|
|
.border-radius(4px 0 0 0);
|
|
|
|
}
|
|
|
|
tbody tr:first-child td:last-child {
|
|
|
|
.border-radius(0 4px 0 0);
|
|
|
|
}
|
|
|
|
tbody tr:last-child td:first-child {
|
|
|
|
.border-radius(0 0 0 4px);
|
|
|
|
}
|
|
|
|
tbody tr:last-child td:last-child {
|
|
|
|
.border-radius(0 0 4px 0);
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
|
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)
|
2011-08-22 05:07:15 +02:00
|
|
|
.zebra-striped {
|
2011-05-04 03:09:25 +02:00
|
|
|
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-22 05:07:15 +02:00
|
|
|
.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-08-22 05:07:15 +02:00
|
|
|
.headerSortUp,
|
|
|
|
.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-08-17 07:58:01 +02:00
|
|
|
// Style the ascending (reverse alphabetical) column header
|
2011-08-22 05:07:15 +02:00
|
|
|
.header:hover {
|
2011-07-02 20:51:05 +02:00
|
|
|
&:after {
|
|
|
|
visibility:visible;
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
// Style the descending (alphabetical) column header
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortDown,
|
|
|
|
.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
|
2011-08-22 05:07:15 +02:00
|
|
|
.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-22 05:07:15 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-08-22 05:07:15 +02:00
|
|
|
table {
|
2011-05-04 03:09:25 +02:00
|
|
|
// Blue Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.blue {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @blue;
|
|
|
|
border-bottom-color: @blue;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.blue,
|
|
|
|
.headerSortDown.blue {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@blue, 40%);
|
|
|
|
}
|
|
|
|
// Green Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.green {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @green;
|
|
|
|
border-bottom-color: @green;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.green,
|
|
|
|
.headerSortDown.green {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@green, 40%);
|
|
|
|
}
|
|
|
|
// Red Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.red {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @red;
|
|
|
|
border-bottom-color: @red;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.red,
|
|
|
|
.headerSortDown.red {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@red, 50%);
|
|
|
|
}
|
|
|
|
// Yellow Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.yellow {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @yellow;
|
|
|
|
border-bottom-color: @yellow;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.yellow,
|
|
|
|
.headerSortDown.yellow {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@yellow, 40%);
|
|
|
|
}
|
|
|
|
// Orange Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.orange {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @orange;
|
|
|
|
border-bottom-color: @orange;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.orange,
|
|
|
|
.headerSortDown.orange {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@orange, 40%);
|
|
|
|
}
|
|
|
|
// Purple Table Headings
|
2011-08-22 05:07:15 +02:00
|
|
|
.purple {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @purple;
|
|
|
|
border-bottom-color: @purple;
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
.headerSortUp.purple,
|
|
|
|
.headerSortDown.purple {
|
2011-05-04 03:09:25 +02:00
|
|
|
background-color: lighten(@purple, 40%);
|
|
|
|
}
|
2011-08-22 05:07:15 +02:00
|
|
|
}
|