diff --git a/layouts/articles.html b/layouts/articles.html index 721ff9a..b6f6ec4 100644 --- a/layouts/articles.html +++ b/layouts/articles.html @@ -27,13 +27,16 @@ %>
  • ><%= label %> (<%= count %>)
  • <% end %> + - - diff --git a/output/css/style.css b/output/css/style.css index 084bde9..6b95df2 100644 --- a/output/css/style.css +++ b/output/css/style.css @@ -227,3 +227,52 @@ ul.menu li:first-child { #flickr li img:hover { top: -75px; } + +/* Search Form //----------------------------------------------------------*/ +/* Via http://www.brandspankingnew.net/archive/2005/08/adding_an_os_x.html */ +#search { + margin: 0; + padding: 0; + display: block; + float: left; + margin-right: 20px; + background: #fff url(/images/srch_l.gif) 0 0 no-repeat; + padding-left: 19px; +} +#search fieldset { + margin: 0; + padding: 0; + border: 0; +} +#search label { + color: #999; + display: none; +} +#search input { + /* Reset (for Safari) */ + border: 0; + margin: 0; + outline: 0; + vertical-align: middle; + height: 19px; + width: 180px; + width: 132px; + padding: 3px; + + background: #fff url(/images/srch_bg.gif) 0 0 repeat-x; + float: left; + font: 11px/13px "Lucida Grande", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif; + color: #000; +} +#search .sbox_r { + background: #fff url(/images/srch_r.gif) 0 0 no-repeat; + float: left; + width: 19px; + height: 19px; +} +#search .sbox_r_f2 { + background: #fff url(/images/srch_r.gif) 0 -19px no-repeat; + float: left; + width: 19px; + height: 19px; +} diff --git a/output/images/srch_bg.gif b/output/images/srch_bg.gif new file mode 100755 index 0000000..6a523ba Binary files /dev/null and b/output/images/srch_bg.gif differ diff --git a/output/images/srch_l.gif b/output/images/srch_l.gif new file mode 100755 index 0000000..6d95bf3 Binary files /dev/null and b/output/images/srch_l.gif differ diff --git a/output/images/srch_r.gif b/output/images/srch_r.gif new file mode 100644 index 0000000..7a6d1c4 Binary files /dev/null and b/output/images/srch_r.gif differ diff --git a/output/js/articles.js b/output/js/articles.js index 5b62a40..8234837 100644 --- a/output/js/articles.js +++ b/output/js/articles.js @@ -78,6 +78,11 @@ // the event now, to handle the hash the page may have loaded with. $(window).trigger('hashchange', true); $('.pagination').slideDown('fast'); + + if(navigator.userAgent.toLowerCase().indexOf('webkit') >= 0) { + // WebKit browser + $('#search input').css('paddingTop', 0); + } }); };