diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-04-22 09:11:41 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-04-22 09:11:41 +0000 |
commit | 6d1dd2a0f5375c1639bbf02d2e01bb59ea7bb29c (patch) | |
tree | 92ced97bf847efae41c052d9461603f944e07839 /template/yoga | |
parent | 02597251fcc8ff272ed9f4cb595c2ad90bf70eff (diff) |
- improve : template code
tables are horizontaly centered by default
git-svn-id: http://piwigo.org/svn/trunk@1253 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | template/yoga/content.css | 4 | ||||
-rw-r--r-- | template/yoga/default-layout.css | 4 | ||||
-rw-r--r-- | template/yoga/image.css | 3 | ||||
-rw-r--r-- | template/yoga/month_calendar.tpl | 9 | ||||
-rw-r--r-- | template/yoga/search.tpl | 25 |
5 files changed, 11 insertions, 34 deletions
diff --git a/template/yoga/content.css b/template/yoga/content.css index 67019a3ac..f76847f25 100644 --- a/template/yoga/content.css +++ b/template/yoga/content.css @@ -188,10 +188,6 @@ SPAN.filename:after { content: "]"; } -TABLE.thumbnail { - margin-left: auto; - margin-right: auto; -} TD.thumbnail label { position: relative; } diff --git a/template/yoga/default-layout.css b/template/yoga/default-layout.css index c6c8a8fff..413f28181 100644 --- a/template/yoga/default-layout.css +++ b/template/yoga/default-layout.css @@ -53,6 +53,10 @@ HR.separation { /** General defaults **/ INPUT {margin: 0;} ul, dl, li { text-align: left;} +TABLE { /* horizontaly centered */ + margin-left: auto; + margin-right: auto; +} /* for debugging purpose */ pre { text-align:left; } diff --git a/template/yoga/image.css b/template/yoga/image.css index 0d242a1bd..3064ee46a 100644 --- a/template/yoga/image.css +++ b/template/yoga/image.css @@ -91,9 +91,6 @@ de l'image... margin-left: 10px; } -TABLE.infoTable { - margin: auto; -} TABLE.infoTable .value { text-align: left; } diff --git a/template/yoga/month_calendar.tpl b/template/yoga/month_calendar.tpl index cd3586a23..9e1e4fb2f 100644 --- a/template/yoga/month_calendar.tpl +++ b/template/yoga/month_calendar.tpl @@ -1,4 +1,5 @@ <!-- BEGIN calendar --> +<!-- $Id:$ --> <!-- BEGIN thumbnails --> <style type="text/css"> <!-- @@ -13,13 +14,13 @@ DIV.calImg height: {calendar.thumbnails.HEIGHT}px; } //--></style> -<table class="calMonth" align="center" cellpadding="1"> +<table class="calMonth"> <!-- BEGIN head --> - <thead> + <thead><tr> <!-- BEGIN col --> - <td class="calDayHead">{calendar.thumbnails.head.col.LABEL}</td> + <td class="calDayHead">{calendar.thumbnails.head.col.LABEL}</td> <!-- END col --> - </thead> + </tr></thead> <!-- END head --> <!-- BEGIN row --> <tr> diff --git a/template/yoga/search.tpl b/template/yoga/search.tpl index 0531bcb35..b6534a38e 100644 --- a/template/yoga/search.tpl +++ b/template/yoga/search.tpl @@ -1,3 +1,4 @@ +<!-- $Id:$ --> <div id="content"> <div class="titrePage"> @@ -19,7 +20,7 @@ </ul> </div> <!-- END errors --> -<table width="100%" align="center" cellpadding="2"> +<table width="100%" cellpadding="2"> <tr> <td width="50%" colspan="2"><b>{lang:search_keywords} : </b> <td colspan="2" valign="top"> @@ -116,28 +117,6 @@ <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending} </td> </tr> -<!-- <tr> - <td width="25%" nowrap="nowrap"><b>{L_SEARCH_WITHIN} : </b></td> - <td width="25%" nowrap="nowrap"> - <input type="radio" name="search_fields" value="all" checked="checked" />{L_SEARCH_ALL}<br /> - <input type="radio" name="search_fields" value="imgonly" />{L_SEARCH_IMG_ONLY}<br /> - <input type="radio" name="search_fields" value="commentsonly" />{L_SEARCH_COMMENTS_ONLY} - </td> - </tr> - <tr> - <td><b>{lang:search_sort} : </b></td> - <td nowrap="nowrap"> - {S_SELECT_SORT_KEY}<br /> - <input type="radio" name="sd" value="a" />{lang:search_ascending}<br /> - <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending} - </td> - <td nowrap="nowrap"><b>{L_DISPLAY_RESULTS} : </b></td> - <td nowrap="nowrap"> - <input type="radio" name="show_results" value="images" checked="checked" />{L_IMAGES} - <input type="radio" name="show_results" value="comments" /> {L_COMMENTS} - </td> - </tr> - --> <tr> <td align="center" valign="bottom" colspan="4" height="38"> <input type="submit" name="submit" value="{lang:submit}" class="bouton" /> |