From 15c25d85ece4fa53d5b3ec35e3e564133a328648 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sat, 10 Jan 2009 21:50:35 +0000 Subject: Switch the pager to use themeroller's icon sprites. I applied jquery ui css classes to newly added span classes in the pager templates directly, will likely move these out and apply through ui.init.js later. --- themes/admin_default/views/pager.html.php | 28 ++++----- themes/default/css/screen.css | 65 +++------------------ themes/default/images/ico-pg-first.png | Bin 336 -> 0 bytes themes/default/images/ico-pg-first_inactive.png | Bin 327 -> 0 bytes themes/default/images/ico-pg-last.png | Bin 339 -> 0 bytes themes/default/images/ico-pg-last_inactive.png | Bin 329 -> 0 bytes themes/default/images/ico-pg-next.png | Bin 310 -> 0 bytes themes/default/images/ico-pg-next_inactive.png | Bin 306 -> 0 bytes themes/default/images/ico-pg-previous.png | Bin 310 -> 0 bytes themes/default/images/ico-pg-previous_inactive.png | Bin 306 -> 0 bytes themes/default/views/pager.html.php | 16 ++--- themes/default/views/photo.html.php | 4 +- 12 files changed, 33 insertions(+), 80 deletions(-) delete mode 100644 themes/default/images/ico-pg-first.png delete mode 100644 themes/default/images/ico-pg-first_inactive.png delete mode 100644 themes/default/images/ico-pg-last.png delete mode 100644 themes/default/images/ico-pg-last_inactive.png delete mode 100644 themes/default/images/ico-pg-next.png delete mode 100644 themes/default/images/ico-pg-next_inactive.png delete mode 100644 themes/default/images/ico-pg-previous.png delete mode 100644 themes/default/images/ico-pg-previous_inactive.png diff --git a/themes/admin_default/views/pager.html.php b/themes/admin_default/views/pager.html.php index 5c7c5396..e14cf857 100644 --- a/themes/admin_default/views/pager.html.php +++ b/themes/admin_default/views/pager.html.php @@ -1,30 +1,30 @@ diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index fabc35ac..8007a318 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -241,7 +241,9 @@ li.gError select { * 2) Reusable generic classes *********************************************************************/ -/* Not used, yet */ +.inactive { + color: #ccc; +} /** ******************************************************************* * 3) Reusable content blocks @@ -445,9 +447,6 @@ li.gError select { #gContent #gItem { } -#gContent #gItem #gPager { -} - #gContent #gComments { margin-top: 2em; } @@ -648,64 +647,18 @@ li.gError select { #gPager { clear: both; + padding: 5px; } #gPager li { - background-repeat: no-repeat; float: left; - padding: 5px; -} - -#gPager .first { - background-image: url('../images/ico-pg-first.png'); - background-position: left; - padding-left: 20px; -} - -#gPager .first_inactive { - background-image: url('../images/ico-pg-first_inactive.png'); - background-position: left; - color: #ccc; - padding-left: 20px; -} - -#gPager .previous { - background-image: url('../images/ico-pg-previous.png'); - background-position: left; - padding-left: 17px; -} - -#gPager .previous_inactive { - background-image: url('../images/ico-pg-previous_inactive.png'); - background-position: left; - color: #ccc; - padding-left: 17px; -} - -#gPager .next { - background-image: url('../images/ico-pg-next.png'); - background-position: right; - padding-right: 17px; -} - -#gPager .next_inactive { - background-image: url('../images/ico-pg-next_inactive.png'); - background-position: right; - color: #ccc; - padding-right: 17px; -} - -#gPager .last { - background-image: url('../images/ico-pg-last.png'); - background-position: right; - padding-right: 20px; + margin-right: 1em; } -#gPager .last_inactive { - background-image: url('../images/ico-pg-last_inactive.png'); - background-position: right; - color: #ccc; - padding-right: 20px; +#gPager li span { + display: inline-block; + height: 1em; + width: 16px; } /** ******************************************************************* diff --git a/themes/default/images/ico-pg-first.png b/themes/default/images/ico-pg-first.png deleted file mode 100644 index 2091a2ed..00000000 Binary files a/themes/default/images/ico-pg-first.png and /dev/null differ diff --git a/themes/default/images/ico-pg-first_inactive.png b/themes/default/images/ico-pg-first_inactive.png deleted file mode 100644 index 23cab473..00000000 Binary files a/themes/default/images/ico-pg-first_inactive.png and /dev/null differ diff --git a/themes/default/images/ico-pg-last.png b/themes/default/images/ico-pg-last.png deleted file mode 100644 index 3f147da4..00000000 Binary files a/themes/default/images/ico-pg-last.png and /dev/null differ diff --git a/themes/default/images/ico-pg-last_inactive.png b/themes/default/images/ico-pg-last_inactive.png deleted file mode 100644 index 3e6ca59a..00000000 Binary files a/themes/default/images/ico-pg-last_inactive.png and /dev/null differ diff --git a/themes/default/images/ico-pg-next.png b/themes/default/images/ico-pg-next.png deleted file mode 100644 index 4d82e93c..00000000 Binary files a/themes/default/images/ico-pg-next.png and /dev/null differ diff --git a/themes/default/images/ico-pg-next_inactive.png b/themes/default/images/ico-pg-next_inactive.png deleted file mode 100644 index decbb845..00000000 Binary files a/themes/default/images/ico-pg-next_inactive.png and /dev/null differ diff --git a/themes/default/images/ico-pg-previous.png b/themes/default/images/ico-pg-previous.png deleted file mode 100644 index d4e02ae3..00000000 Binary files a/themes/default/images/ico-pg-previous.png and /dev/null differ diff --git a/themes/default/images/ico-pg-previous_inactive.png b/themes/default/images/ico-pg-previous_inactive.png deleted file mode 100644 index 15257800..00000000 Binary files a/themes/default/images/ico-pg-previous_inactive.png and /dev/null differ diff --git a/themes/default/views/pager.html.php b/themes/default/views/pager.html.php index 00185711..892fe21b 100644 --- a/themes/default/views/pager.html.php +++ b/themes/default/views/pager.html.php @@ -8,23 +8,23 @@ "total" => $total_items)) ?>
  • -
  • +
  • -
  • +
  • - +
  • -
  • +
  • - +
  • -
  • +
  • -
  • +
  • -
  • +
  • diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index d374d4f8..a2ae5a8b 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -5,10 +5,10 @@ -- cgit v1.2.3