From 549b6e0507cce14192670645ec1f4be43aa205a7 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 14 Dec 2010 06:45:52 +0000 Subject: css sprites - almost done - still to implement nice colors and hover effect for clear and sylvia git-svn-id: http://piwigo.org/svn/trunk@8119 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/icon/category_children.png | Bin 1554 -> 0 bytes .../default/icon/category_representant_random.png | Bin 3171 -> 0 bytes themes/default/iconset.css | 8 +- themes/default/template/picture.tpl | 83 ++++++------ themes/default/template/picture_nav_buttons.tpl | 117 ++++++++++------- themes/default/template/picture_toolbar.tpl | 144 --------------------- themes/default/template/slideshow.tpl | 2 - themes/default/theme.css | 24 +--- 8 files changed, 124 insertions(+), 254 deletions(-) delete mode 100644 themes/default/icon/category_children.png delete mode 100644 themes/default/icon/category_representant_random.png delete mode 100644 themes/default/template/picture_toolbar.tpl (limited to 'themes/default') diff --git a/themes/default/icon/category_children.png b/themes/default/icon/category_children.png deleted file mode 100644 index 7205c3f61..000000000 Binary files a/themes/default/icon/category_children.png and /dev/null differ diff --git a/themes/default/icon/category_representant_random.png b/themes/default/icon/category_representant_random.png deleted file mode 100644 index dfa69846f..000000000 Binary files a/themes/default/icon/category_representant_random.png and /dev/null differ diff --git a/themes/default/iconset.css b/themes/default/iconset.css index 5be7cbde4..3f03d0a48 100644 --- a/themes/default/iconset.css +++ b/themes/default/iconset.css @@ -65,11 +65,9 @@ A.pwg-state-default, A.pwg-state-default:visited, A.pwg-state-default:hover { .pwg-icon-repeat-play {background-position: -156px -130px} .pwg-icon-repeat-stop {background-position: -182px -130px} +.pwg-icon-map {background-position: 0 -156px} -A.pwg-button { - border: 1px solid blue; -} -.pwg-state-default:hover { - border-color: green; +A.pwg-state-default:hover { + border: 0 !important; /*don't add bottom border on hover*/ } diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 4739b88b3..9afef3d5a 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -1,4 +1,3 @@ - {* Example of resizeable *} {* {include file='include/autosize.inc.tpl'} @@ -38,51 +37,63 @@
-
- {if isset($U_SLIDESHOW_START) } - {'slideshow'|@translate} - {/if} - {if isset($U_METADATA) } - metadata - {/if} - {if isset($current.U_DOWNLOAD) } - {'download'|@translate} - {/if} - {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} - {if isset($favorite) } - favorite - {/if} - {if !empty($U_SET_AS_REPRESENTATIVE) } - {'representative'|@translate} - {/if} - {if isset($U_ADMIN) } - {'edit'|@translate} - {/if} - {if isset($U_CADDIE) }{*caddie management BEGIN*} -{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} +
+{if isset($U_SLIDESHOW_START)} + +  {'slideshow'|@translate} + +{/if} +{if isset($U_METADATA)} + +  {'Show file metadata'|@translate} + +{/if} +{if isset($current.U_DOWNLOAD)} + +  {'download'|@translate} + +{/if} +{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} +{if isset($favorite)} + +  {'Favorites'|@translate} + +{/if} +{if isset($U_SET_AS_REPRESENTATIVE)} + +  {'representative'|@translate} + +{/if} +{if isset($U_ADMIN)} + +  {'edit'|@translate} + +{/if} +{if isset($U_CADDIE)}{*caddie management BEGIN*} - {'caddie'|@translate} - {/if}{*caddie management END*} -
- {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} -
+ +  {'caddie'|@translate} + +{/if}{*caddie management END*} +
-{include file='picture_toolbar.tpl'} + {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} +
{$ELEMENT_CONTENT} diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl index 0bb50bd8f..03000676b 100644 --- a/themes/default/template/picture_nav_buttons.tpl +++ b/themes/default/template/picture_nav_buttons.tpl @@ -1,67 +1,88 @@ - - -  {'caddie'|@translate} - -{/if}{*caddie management END*} -
- - - - \ No newline at end of file diff --git a/themes/default/template/slideshow.tpl b/themes/default/template/slideshow.tpl index 03e5225bf..a310935a2 100644 --- a/themes/default/template/slideshow.tpl +++ b/themes/default/template/slideshow.tpl @@ -14,8 +14,6 @@ {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} -{include file='picture_toolbar.tpl'} -
{$ELEMENT_CONTENT} {if isset($COMMENT_IMG)} diff --git a/themes/default/theme.css b/themes/default/theme.css index ee84b150a..10d3834a1 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -136,11 +136,6 @@ UL.categoryActions LI { display: inline; } -UL.categoryActions A IMG, UL.categoryActions A { - border: 0; - margin-bottom: -5px; -} - /* begin chronology/calendar elements*/ .content .calendarViews { display: block; @@ -343,22 +338,16 @@ UL.thumbnails IMG { #imageToolBar { text-align: center; - position: relative; clear: both; margin-bottom: 4px; padding: 0; height: 28px; } -#imageToolBar A, #imageToolBar IMG { - display: block; - border: 0; - margin: 0; padding: 0; -} -#imageToolBar A { width: 48px; } -#imageToolBar IMG { margin: 2px auto; } -#imageToolBar .randomButtons A { float: left; } -#imageToolBar .navButtons A { float: right; } +#imageToolBar .actionButtons { float: left; } +#imageToolBar .navigationButtons { float: right; } +#imageToolBar .pwg-button {width:42px;} + #theImage { clear: left; @@ -728,11 +717,8 @@ UL.thumbnails SPAN.thumbLegend { /** * Default colors */ -#imageToolBar * { - background: inherit; -} -/* So that non-links are slightly greyed out */ + /* So that non-links are slightly greyed out */ .content .navigationBar, .calItemEmpty, TD.calDayCellEmpty { color: #b0b0b0; } -- cgit v1.2.3