From 799fd6add0d82c203be5484ea92d139f9c2ea35e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 2 Jul 2011 11:51:05 -0700 Subject: [PATCH] get rid of assets/img in favor of css arrows --- .DS_Store | Bin 6148 -> 6148 bytes assets/img/dropdown-arrow.gif | Bin 49 -> 0 bytes assets/img/grid-20px.png | Bin 324 -> 0 bytes assets/img/tablesorter-indicators.png | Bin 451 -> 0 bytes bootstrap-1.0.0.css | 66 +++++++++++++++++++------- bootstrap-1.0.0.min.css | 12 ++--- lib/patterns.less | 8 ++-- lib/tables.less | 44 ++++++++++++----- 8 files changed, 93 insertions(+), 37 deletions(-) delete mode 100644 assets/img/dropdown-arrow.gif delete mode 100644 assets/img/grid-20px.png delete mode 100644 assets/img/tablesorter-indicators.png diff --git a/.DS_Store b/.DS_Store index d44b41a70fc7be2b54e636391ffe47ec77367c02..4372a5b7179def391197a851263017df76436d11 100644 GIT binary patch delta 73 zc-m_*Xfc@JFUrioz`)4BAi%&-!cd%2oSc)CpPw`NBja)@kPI6`B116{rXtHSPUc~} PvH2q-7u#lbj=%f>m>3h< delta 55 zc-m_*Xfc@JFUrKgz`)4BAiz*ukd%|31mtZ9%MSo-%MIKB diff --git a/assets/img/dropdown-arrow.gif b/assets/img/dropdown-arrow.gif deleted file mode 100644 index 2da9c1d54e89d6fe32ee04c1ee122ddd0243a8a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 49 xc-nLKbhEHbWM^PuXkcXc4+e@qSr{1@7#VaJfB+=Jz{JtQ-zb^I8>zuy4FF%O3-AB{ diff --git a/assets/img/grid-20px.png b/assets/img/grid-20px.png deleted file mode 100644 index 91b8bf38d549f84977a76baf033087651a440622..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 324 zc-rd>@N?(olHy`uVBq!ia0vp^DImpfcYBk$3j}$`Lyqw{&oKoZ$a% zC$L+)W|GMDs`s~-%$WA^p8cGi_s(bD+nx45CCs6LgF}FkQAxppg{1?|{*s;h<_iCO zrN!yX^VsE#&QE;GCn%u6#N+}|4rhBjeRJjTreOZr&rcM!V>5_lNm1FW#G5PI&lacb zbOy;VKsCeJL6+8EHvo-!X1VE(BHRj~W;lE09n}L2vQu^Tck5ek2l|-7)78&qol`;+ E0CoatS^xk5 diff --git a/assets/img/tablesorter-indicators.png b/assets/img/tablesorter-indicators.png deleted file mode 100644 index af3c40522f7dee8241f923f0501a5fc350ff51c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 451 zc-jHO0X+VRP)>d^U}zN#K19&QMXMI#Mo1KKrt^mrgX!eeHo-aYa}WPHeq3~O z4vNiYqqRc_afXv>@0w!B4%m@x+p{MBAZVrn)LXCv&+`^VQD_iyc%y*ypzgZvB1w{O z4>>&4l!1=poTq7e*lvJ_n({l$vh0$MtDe3k>2(NDbbaM1p=*B}3}he!8OT5eGLV4` zWZ#nYA9YPLo?4BYCa9@_?@zz5Q4>e_= zl=7MYvvvbK)Rf<0RaNUfee0n>-cuOJKn609fed6I0~z?gfO2POzonyZH+iB-_d)4~ zd7g_P2!1rcLv8RCF=IE9aU6%f@2|-I5^{K`?ey(c+c=G)=+QLI6@(n#P*@ibnulTd t3?Wy6L49k*_P@$f^(*t9GCe*87yw#S1y^?F61)Ha002ovPDHLkV1nhe!%6@E diff --git a/bootstrap-1.0.0.css b/bootstrap-1.0.0.css index d5a118fe2d..6500280b62 100644 --- a/bootstrap-1.0.0.css +++ b/bootstrap-1.0.0.css @@ -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: "↓"; + 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: "↓"; 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; diff --git a/bootstrap-1.0.0.min.css b/bootstrap-1.0.0.min.css index 16075968fe..fbc24a8e00 100644 --- a/bootstrap-1.0.0.min.css +++ b/bootstrap-1.0.0.min.css @@ -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:"↓";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:"↓";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:"↓";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;} diff --git a/lib/patterns.less b/lib/patterns.less index 3ce02ea10d..a3a949244d 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -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: "↓"; 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); } } diff --git a/lib/tables.less b/lib/tables.less index 5cde1b5cee..7c315ff35e 100644 --- a/lib/tables.less +++ b/lib/tables.less @@ -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: "↓"; + 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 { -- 2.47.2