aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-07 12:22:51 -0800
committerMark Otto <[email protected]>2012-01-07 12:22:51 -0800
commita339f0051b21f9e51d47c3eb1fd7d37f126e87a0 (patch)
tree628a7cbac880fbc4a98ff9e5819b43d4432bfe4d /lib
parent95c88a2953d6493050192f9c99c8e5597e591ac3 (diff)
downloadbootstrap-a339f0051b21f9e51d47c3eb1fd7d37f126e87a0.tar.xz
bootstrap-a339f0051b21f9e51d47c3eb1fd7d37f126e87a0.zip
fixing tablesorter styles by adding the jquery plugin back to the lib, fixing the docs examples
Diffstat (limited to 'lib')
-rw-r--r--lib/tables.less54
-rw-r--r--lib/tabs-pills.less6
2 files changed, 59 insertions, 1 deletions
diff --git a/lib/tables.less b/lib/tables.less
index d1a690a3f..92ac57c39 100644
--- a/lib/tables.less
+++ b/lib/tables.less
@@ -116,3 +116,57 @@ table {
.span11 { .tableColumns(11); }
.span12 { .tableColumns(12); }
}
+
+
+
+// TABLESORTER
+// -----------
+// Support for the tablesorter jQuerdy plugin
+
+table {
+ // Tablesorting styles w/ jQuery plugin
+ .header {
+ cursor: pointer;
+ &:after {
+ content: "";
+ float: right;
+ margin-top: 7px;
+ border-width: 0 4px 4px;
+ border-style: solid;
+ border-color: #000 transparent;
+ visibility: hidden;
+ }
+ }
+ // Style the sorted column headers (THs)
+ .headerSortUp,
+ .headerSortDown {
+ background-color: rgba(141,192,219,.25);
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
+ }
+ // Style the ascending (reverse alphabetical) column header
+ .header:hover {
+ &:after {
+ visibility:visible;
+ }
+ }
+ // Style the descending (alphabetical) column header
+ .headerSortDown,
+ .headerSortDown:hover {
+ &:after {
+ visibility:visible;
+ .opacity(60);
+ }
+ }
+ // Style the ascending (reverse alphabetical) column header
+ .headerSortUp {
+ &: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);
+ }
+ }
+}
diff --git a/lib/tabs-pills.less b/lib/tabs-pills.less
index 8e8856a56..4a94266a3 100644
--- a/lib/tabs-pills.less
+++ b/lib/tabs-pills.less
@@ -155,7 +155,7 @@
// Dropdowns in tabs
.tabs {
.dropdown-menu {
- top: 36px;
+ top: 37px;
border-width: 1px;
}
.dropdown-toggle .caret {
@@ -165,6 +165,10 @@
.open .dropdown-toggle {
border-color: #999;
}
+ .open .dropdown-toggle .caret {
+ border-top-color: #fff;
+ .opacity(100);
+ }
}
// Pills