]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
get rid of assets/img in favor of css arrows
authorJacob Thornton <jacobthornton@gmail.com>
Sat, 2 Jul 2011 18:51:05 +0000 (11:51 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sat, 2 Jul 2011 18:51:05 +0000 (11:51 -0700)
.DS_Store
assets/img/dropdown-arrow.gif [deleted file]
assets/img/grid-20px.png [deleted file]
assets/img/tablesorter-indicators.png [deleted file]
bootstrap-1.0.0.css
bootstrap-1.0.0.min.css
lib/patterns.less
lib/tables.less

index d44b41a70fc7be2b54e636391ffe47ec77367c02..4372a5b7179def391197a851263017df76436d11 100644 (file)
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/assets/img/dropdown-arrow.gif b/assets/img/dropdown-arrow.gif
deleted file mode 100644 (file)
index 2da9c1d..0000000
Binary files a/assets/img/dropdown-arrow.gif and /dev/null differ
diff --git a/assets/img/grid-20px.png b/assets/img/grid-20px.png
deleted file mode 100644 (file)
index 91b8bf3..0000000
Binary files a/assets/img/grid-20px.png and /dev/null differ
diff --git a/assets/img/tablesorter-indicators.png b/assets/img/tablesorter-indicators.png
deleted file mode 100644 (file)
index af3c405..0000000
Binary files a/assets/img/tablesorter-indicators.png and /dev/null differ
index d5a118fe2d5ba1b655b88179b3743d8a173cb016..6500280b62debc39780b73f69be044ff743ef337 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Sat Jul  2 10:47:32 PDT 2011
+ * Date: Sat Jul  2 11:50:18 PDT 2011
  */
 /*
  * Reset.less
@@ -1013,31 +1013,61 @@ table.zebra-striped tbody tr:hover td {
 }
 table.zebra-striped th.header {
   cursor: pointer;
-  padding-right: 20px;
+}
+table.zebra-striped th.header:after {
+  width: 0px;
+  height: 0px;
+  display: inline-block;
+  float: right;
+  margin-top: 7px;
+  content: "&darr;";
+  text-indent: -99999px;
+  vertical-align: top;
+  border-left: 4px solid transparent;
+  border-right: 4px solid transparent;
+  border-bottom: 4px solid #000;
+  visibility: hidden;
+  -webkit-box-shadow: 0 1px 0 #ffffff;
+  -moz-box-shadow: 0 1px 0 #ffffff;
+  box-shadow: 0 1px 0 #ffffff;
+  filter: alpha(opacity=30);
+  -khtml-opacity: 0.3;
+  -moz-opacity: 0.3;
+  opacity: 0.3;
 }
 table.zebra-striped th.headerSortUp, table.zebra-striped th.headerSortDown {
-  background-image: url(assets/img/tablesorter-indicators.png);
-  background-position: right -23px;
-  background-repeat: no-repeat;
   background-color: rgba(141, 192, 219, 0.25);
   text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
   -webkit-border-radius: 3px 3px 0 0;
   -moz-border-radius: 3px 3px 0 0;
   border-radius: 3px 3px 0 0;
 }
-table.zebra-striped th.header:hover {
-  background-image: url(assets/img/tablesorter-indicators.png);
-  background-position: right 15px;
-  background-repeat: no-repeat;
+table.zebra-striped th.header:hover:after {
+  visibility: visible;
 }
 table.zebra-striped th.actions:hover {
   background-image: none;
 }
-table.zebra-striped th.headerSortDown, table.zebra-striped th.headerSortDown:hover {
-  background-position: right -25px;
-}
-table.zebra-striped th.headerSortUp, table.zebra-striped th.headerSortUp:hover {
-  background-position: right -65px;
+table.zebra-striped th.headerSortDown:after, table.zebra-striped th.headerSortDown:hover:after {
+  visibility: visible;
+  filter: alpha(opacity=60);
+  -khtml-opacity: 0.6;
+  -moz-opacity: 0.6;
+  opacity: 0.6;
+}
+table.zebra-striped th.headerSortUp:after {
+  border-bottom: none;
+  border-left: 4px solid transparent;
+  border-right: 4px solid transparent;
+  border-top: 4px solid #000;
+  visibility: visible;
+  -webkit-box-shadow: none;
+  -moz-box-shadow: none;
+  box-shadow: none;
+  filter: alpha(opacity=60);
+  -khtml-opacity: 0.6;
+  -moz-opacity: 0.6;
+  opacity: 0.6;
 }
 table.zebra-striped th.blue {
   color: #049cdb;
@@ -1225,15 +1255,17 @@ div.topbar ul li.menu {
   position: relative;
 }
 div.topbar ul li.menu a.menu:after {
-  width: 7px;
-  height: 7px;
+  width: 0px;
+  height: 0px;
   display: inline-block;
-  background: transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;
   content: "&darr;";
   text-indent: -99999px;
   vertical-align: top;
   margin-top: 8px;
   margin-left: 4px;
+  border-left: 4px solid transparent;
+  border-right: 4px solid transparent;
+  border-top: 4px solid #fff;
   filter: alpha(opacity=50);
   -khtml-opacity: 0.5;
   -moz-opacity: 0.5;
index 16075968fea3933d4d965a42866e4be7f8e0db0c..fbc24a8e00691e77d5766db9d71ee5fa6e68b249 100644 (file)
@@ -131,12 +131,12 @@ table{width:100%;margin-bottom:18px;padding:0;text-align:left;border-collapse:se
 table th{padding-top:9px;font-weight:bold;border-bottom-width:2px;}
 table.zebra-striped tbody tr:nth-child(odd) td{background-color:#f9f9f9;}
 table.zebra-striped tbody tr:hover td{background-color:#f5f5f5;}
-table.zebra-striped th.header{cursor:pointer;padding-right:20px;}
-table.zebra-striped th.headerSortUp,table.zebra-striped th.headerSortDown{background-image:url(assets/img/tablesorter-indicators.png);background-position:right -23px;background-repeat:no-repeat;background-color:rgba(141, 192, 219, 0.25);text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}
-table.zebra-striped th.header:hover{background-image:url(assets/img/tablesorter-indicators.png);background-position:right 15px;background-repeat:no-repeat;}
+table.zebra-striped th.header{cursor:pointer;}table.zebra-striped th.header:after{width:0px;height:0px;display:inline-block;float:right;margin-top:7px;content:"&darr;";text-indent:-99999px;vertical-align:top;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid #000;visibility:hidden;-webkit-box-shadow:0 1px 0 #ffffff;-moz-box-shadow:0 1px 0 #ffffff;box-shadow:0 1px 0 #ffffff;filter:alpha(opacity=30);-khtml-opacity:0.3;-moz-opacity:0.3;opacity:0.3;}
+table.zebra-striped th.headerSortUp,table.zebra-striped th.headerSortDown{background-color:rgba(141, 192, 219, 0.25);text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}
+table.zebra-striped th.header:hover:after{visibility:visible;}
 table.zebra-striped th.actions:hover{background-image:none;}
-table.zebra-striped th.headerSortDown,table.zebra-striped th.headerSortDown:hover{background-position:right -25px;}
-table.zebra-striped th.headerSortUp,table.zebra-striped th.headerSortUp:hover{background-position:right -65px;}
+table.zebra-striped th.headerSortDown:after,table.zebra-striped th.headerSortDown:hover:after{visibility:visible;filter:alpha(opacity=60);-khtml-opacity:0.6;-moz-opacity:0.6;opacity:0.6;}
+table.zebra-striped th.headerSortUp:after{border-bottom:none;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #000;visibility:visible;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;filter:alpha(opacity=60);-khtml-opacity:0.6;-moz-opacity:0.6;opacity:0.6;}
 table.zebra-striped th.blue{color:#049cdb;border-bottom-color:#049cdb;}
 table.zebra-striped th.headerSortUp.blue,table.zebra-striped th.headerSortDown.blue{background-color:#ade6fe;}
 table.zebra-striped th.green{color:#46a546;border-bottom-color:#46a546;}
@@ -161,7 +161,7 @@ div.topbar ul li{display:block;float:left;font-size:13px;}div.topbar ul li a{dis
 div.topbar ul li.active a{background-color:#222;background-color:rgba(0, 0, 0, 0.5);}
 div.topbar ul.primary-nav li ul{left:0;}
 div.topbar ul.secondary-nav li ul{right:0;}
-div.topbar ul li.menu{position:relative;}div.topbar ul li.menu a.menu:after{width:7px;height:7px;display:inline-block;background:transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;content:"&darr;";text-indent:-99999px;vertical-align:top;margin-top:8px;margin-left:4px;filter:alpha(opacity=50);-khtml-opacity:0.5;-moz-opacity:0.5;opacity:0.5;}
+div.topbar ul li.menu{position:relative;}div.topbar ul li.menu a.menu:after{width:0px;height:0px;display:inline-block;content:"&darr;";text-indent:-99999px;vertical-align:top;margin-top:8px;margin-left:4px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #fff;filter:alpha(opacity=50);-khtml-opacity:0.5;-moz-opacity:0.5;opacity:0.5;}
 div.topbar ul li.menu.open a.menu,div.topbar ul li.menu.open a:hover{background-color:#00b4eb;background-color:rgba(255, 255, 255, 0.1);color:#fff;}
 div.topbar ul li.menu.open ul{display:block;}div.topbar ul li.menu.open ul li a{background-color:transparent;font-weight:normal;}div.topbar ul li.menu.open ul li a:hover{background-color:rgba(255, 255, 255, 0.1);color:#fff;}
 div.topbar ul li.menu.open ul li.active a{background-color:rgba(255, 255, 255, 0.1);font-weight:bold;}
index 3ce02ea10d37225d0bad255bbc39dd843054a599..a3a949244da920f487fdc9c61c240635de427881 100644 (file)
@@ -131,15 +131,17 @@ div.topbar {
       position: relative;
       a.menu {
         &:after {
-          width: 7px;
-          height: 7px;
+          width: 0px;
+          height: 0px;
           display: inline-block;
-          background: transparent url(assets/img/dropdown-arrow.gif) no-repeat top center;
           content: "&darr;";
           text-indent: -99999px;
           vertical-align: top;
           margin-top: 8px;
           margin-left: 4px;
+          border-left: 4px solid transparent;
+          border-right: 4px solid transparent;
+          border-top: 4px solid #fff;
           .opacity(50);
         }
       }
index 5cde1b5cee2ee77430b1b1a8a9e44857cfcc8ab2..7c315ff35ecf266f75d57bebaccac36ffc849ae7 100644 (file)
@@ -44,32 +44,54 @@ table.zebra-striped {
   // Tablesorting styles w/ jQuery plugin
   th.header { // For tablesorter tables, make THs have a pointer on hover
     cursor: pointer;
-    padding-right: 20px;
+    &:after {
+      width: 0px;
+      height: 0px;
+      display: inline-block;
+      float: right;
+      margin-top:7px;
+      content: "&darr;";
+      text-indent: -99999px;
+      vertical-align: top;
+      border-left: 4px solid transparent;
+      border-right: 4px solid transparent;
+      border-bottom: 4px solid #000;
+      visibility:hidden;
+      .box-shadow(0 1px 0 #fff);
+      .opacity(30);
+    }
   }
   th.headerSortUp,
   th.headerSortDown { // Style the sorted column headers (THs)
-    background-image: url(assets/img/tablesorter-indicators.png);
-    background-position: right -23px;
-    background-repeat: no-repeat;
     background-color: rgba(141,192,219,.25);
     text-shadow: 0 1px 1px rgba(255,255,255,.75);
     .border-radius(3px 3px 0 0);
   }
   th.header:hover { // Style the ascending (reverse alphabetical) column header
-    background-image: url(assets/img/tablesorter-indicators.png);
-    background-position: right 15px;
-    background-repeat: no-repeat;
+    &:after {
+      visibility:visible;
+    }
   }
   th.actions:hover {
     background-image: none;
   }
   th.headerSortDown,
   th.headerSortDown:hover { // Style the descending (alphabetical) column header
-    background-position: right -25px;
+    &:after {
+      visibility:visible;
+      .opacity(60);
+    }
   }
-  th.headerSortUp,
-  th.headerSortUp:hover { // Style the ascending (reverse alphabetical) column header
-    background-position: right -65px;
+  th.headerSortUp { // Style the ascending (reverse alphabetical) column header
+    &: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);
+    }
   }
   // Blue Table Headings
   th.blue {