Changeset 1253 for trunk/template


Ignore:
Timestamp:
Apr 22, 2006, 11:11:41 AM (19 years ago)
Author:
chrisaga
Message:
  • improve : template code

tables are horizontaly centered by default

Location:
trunk/template/yoga
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/content.css

    r1251 r1253  
    189189}
    190190
    191 TABLE.thumbnail {
    192   margin-left: auto;
    193   margin-right: auto;
    194 }
    195191TD.thumbnail label {
    196192  position: relative;
  • trunk/template/yoga/default-layout.css

    r1205 r1253  
    5454INPUT {margin: 0;}
    5555ul, dl, li { text-align: left;}
     56TABLE {                 /* horizontaly centered */
     57  margin-left: auto;
     58  margin-right: auto;
     59}
    5660/* for debugging purpose */
    5761pre { text-align:left; }
  • trunk/template/yoga/image.css

    r1176 r1253  
    9292}
    9393
    94 TABLE.infoTable {
    95     margin: auto;
    96 }
    9794TABLE.infoTable .value {
    9895    text-align: left;
  • trunk/template/yoga/month_calendar.tpl

    r1061 r1253  
    11<!-- BEGIN calendar -->
     2<!-- $Id:$ -->
    23<!-- BEGIN thumbnails -->
    34<style type="text/css">
     
    1415}
    1516//--></style>
    16 <table class="calMonth" align="center" cellpadding="1">
     17<table class="calMonth">
    1718<!-- BEGIN head -->
    18  <thead>
     19 <thead><tr>
    1920 <!-- BEGIN col -->
    20  <td class="calDayHead">{calendar.thumbnails.head.col.LABEL}</td>
     21   <td class="calDayHead">{calendar.thumbnails.head.col.LABEL}</td>
    2122 <!-- END col -->
    22  </thead>
     23 </tr></thead>
    2324<!-- END head -->
    2425<!-- BEGIN row -->
  • trunk/template/yoga/search.tpl

    r1153 r1253  
     1<!-- $Id:$ -->
    12<div id="content">
    23
     
    2021</div>
    2122<!-- END errors -->
    22 <table width="100%" align="center" cellpadding="2">
     23<table width="100%" cellpadding="2">
    2324  <tr>
    2425    <td width="50%" colspan="2"><b>{lang:search_keywords} : </b>
     
    117118        </td>
    118119  </tr>
    119 <!--  <tr>
    120     <td width="25%" nowrap="nowrap"><b>{L_SEARCH_WITHIN} : </b></td>
    121     <td width="25%" nowrap="nowrap">
    122           <input type="radio" name="search_fields" value="all" checked="checked" />{L_SEARCH_ALL}<br />
    123           <input type="radio" name="search_fields" value="imgonly" />{L_SEARCH_IMG_ONLY}<br />
    124           <input type="radio" name="search_fields" value="commentsonly" />{L_SEARCH_COMMENTS_ONLY}
    125         </td>
    126   </tr>
    127   <tr>
    128     <td><b>{lang:search_sort} : </b></td>
    129     <td nowrap="nowrap">
    130           {S_SELECT_SORT_KEY}<br />
    131           <input type="radio" name="sd" value="a" />{lang:search_ascending}<br />
    132           <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}
    133         </td>
    134     <td nowrap="nowrap"><b>{L_DISPLAY_RESULTS} : </b></td>
    135     <td nowrap="nowrap">
    136           <input type="radio" name="show_results" value="images" checked="checked" />{L_IMAGES}&nbsp;&nbsp;
    137           <input type="radio" name="show_results" value="comments" /> {L_COMMENTS}
    138         </td>
    139   </tr>
    140   -->
    141120<tr>
    142121<td align="center" valign="bottom" colspan="4" height="38">
Note: See TracChangeset for help on using the changeset viewer.