Commit c705521e authored by Mark Otto's avatar Mark Otto

rebuild and updated tables to remove tags from selectors

parent 80e0e9c4
This diff is collapsed.
This diff is collapsed.
...@@ -11,12 +11,12 @@ table { ...@@ -11,12 +11,12 @@ table {
width: 100%; width: 100%;
margin-bottom: @baseline; margin-bottom: @baseline;
padding: 0; padding: 0;
text-align: left;
border-collapse: separate; border-collapse: separate;
font-size: 13px; font-size: 13px;
th, td { th, td {
padding: 10px 10px 9px; padding: 10px 10px 9px;
line-height: @baseline * .75; line-height: @baseline * .75;
text-align: left;
vertical-align: middle; vertical-align: middle;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
...@@ -32,7 +32,7 @@ table { ...@@ -32,7 +32,7 @@ table {
// -------------- // --------------
// Default zebra-stripe styles (alternating gray and transparent backgrounds) // Default zebra-stripe styles (alternating gray and transparent backgrounds)
table.zebra-striped { .zebra-striped {
tbody { tbody {
tr:nth-child(odd) td { tr:nth-child(odd) td {
background-color: #f9f9f9; background-color: #f9f9f9;
...@@ -43,7 +43,7 @@ table.zebra-striped { ...@@ -43,7 +43,7 @@ table.zebra-striped {
} }
// Tablesorting styles w/ jQuery plugin // Tablesorting styles w/ jQuery plugin
th.header { .header {
cursor: pointer; cursor: pointer;
&:after { &:after {
content: ""; content: "";
...@@ -55,36 +55,29 @@ table.zebra-striped { ...@@ -55,36 +55,29 @@ table.zebra-striped {
visibility: hidden; visibility: hidden;
} }
} }
// Style the sorted column headers (THs) // Style the sorted column headers (THs)
th.headerSortUp, .headerSortUp,
th.headerSortDown { .headerSortDown {
background-color: rgba(141,192,219,.25); background-color: rgba(141,192,219,.25);
text-shadow: 0 1px 1px rgba(255,255,255,.75); text-shadow: 0 1px 1px rgba(255,255,255,.75);
.border-radius(3px 3px 0 0); .border-radius(3px 3px 0 0);
} }
// Style the ascending (reverse alphabetical) column header // Style the ascending (reverse alphabetical) column header
th.header:hover { .header:hover {
&:after { &:after {
visibility:visible; visibility:visible;
} }
} }
th.actions:hover {
background-image: none;
}
// Style the descending (alphabetical) column header // Style the descending (alphabetical) column header
th.headerSortDown, .headerSortDown,
th.headerSortDown:hover { .headerSortDown:hover {
&:after { &:after {
visibility:visible; visibility:visible;
.opacity(60); .opacity(60);
} }
} }
// Style the ascending (reverse alphabetical) column header // Style the ascending (reverse alphabetical) column header
th.headerSortUp { .headerSortUp {
&:after { &:after {
border-bottom: none; border-bottom: none;
border-left: 4px solid transparent; border-left: 4px solid transparent;
...@@ -95,58 +88,61 @@ table.zebra-striped { ...@@ -95,58 +88,61 @@ table.zebra-striped {
.opacity(60); .opacity(60);
} }
} }
}
table {
// Blue Table Headings // Blue Table Headings
th.blue { .blue {
color: @blue; color: @blue;
border-bottom-color: @blue; border-bottom-color: @blue;
} }
th.headerSortUp.blue, th.headerSortDown.blue { .headerSortUp.blue,
.headerSortDown.blue {
background-color: lighten(@blue, 40%); background-color: lighten(@blue, 40%);
} }
// Green Table Headings // Green Table Headings
th.green { .green {
color: @green; color: @green;
border-bottom-color: @green; border-bottom-color: @green;
} }
th.headerSortUp.green, th.headerSortDown.green { // backround color is 20% of border color .headerSortUp.green,
.headerSortDown.green {
background-color: lighten(@green, 40%); background-color: lighten(@green, 40%);
} }
// Red Table Headings // Red Table Headings
th.red { .red {
color: @red; color: @red;
border-bottom-color: @red; border-bottom-color: @red;
} }
th.headerSortUp.red, th.headerSortDown.red { .headerSortUp.red,
.headerSortDown.red {
background-color: lighten(@red, 50%); background-color: lighten(@red, 50%);
} }
// Yellow Table Headings // Yellow Table Headings
th.yellow { .yellow {
color: @yellow; color: @yellow;
border-bottom-color: @yellow; border-bottom-color: @yellow;
} }
th.headerSortUp.yellow, th.headerSortDown.yellow { .headerSortUp.yellow,
.headerSortDown.yellow {
background-color: lighten(@yellow, 40%); background-color: lighten(@yellow, 40%);
} }
// Orange Table Headings // Orange Table Headings
th.orange { .orange {
color: @orange; color: @orange;
border-bottom-color: @orange; border-bottom-color: @orange;
} }
th.headerSortUp.orange, th.headerSortDown.orange { .headerSortUp.orange,
.headerSortDown.orange {
background-color: lighten(@orange, 40%); background-color: lighten(@orange, 40%);
} }
// Purple Table Headings // Purple Table Headings
th.purple { .purple {
color: @purple; color: @purple;
border-bottom-color: @purple; border-bottom-color: @purple;
} }
th.headerSortUp.purple, th.headerSortDown.purple { .headerSortUp.purple,
.headerSortDown.purple {
background-color: lighten(@purple, 40%); background-color: lighten(@purple, 40%);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment