Dotclear

Changeset 1571:b0ddb761f440


Ignore:
Timestamp:
08/25/13 09:45:43 (10 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Categories: Add spader before URL in categories list. html/css for single category edit.

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r1566 r1571  
    170170          sprintf(($rs->nb_post > 1 ? __('%d entries') : __('%d entry') ),$rs->nb_post).'</a>'. 
    171171          ', '.__('total:').' '.$rs->nb_total.') '. 
    172           __('URL:').' <code>'.html::escapeHTML($rs->cat_url).'</code></p>'; 
     172          '<span class="cat-url">'.__('URL:').' <code>'.html::escapeHTML($rs->cat_url).'</code></span></p>'; 
    173173 
    174174          $level = $rs->level; 
  • admin/category.php

    r1553 r1571  
    191191     '<p><label for="new_cat_parent">'.__('Parent:').' '. 
    192192     '<select id="new_cat_parent" name="new_cat_parent" >'. 
    193      '<option value="0">'.__('Top level').'</option>'; 
     193     '<option value="0">'.__('(none)').'</option>'; 
    194194     while ($rs->fetch()) { 
    195195          echo '<option value="'.$rs->cat_id.'" '.(!empty($_POST['new_cat_parent']) && $_POST['new_cat_parent'] == $rs->cat_id ? 'selected="selected"' : '').'>'. 
    196           str_repeat('&nbsp;&nbsp;',$rs->level).html::escapeHTML($rs->cat_title).'</option>'; 
     196          str_repeat('&nbsp;&nbsp;',$rs->level-1).($rs->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($rs->cat_title).'</option>';    
    197197     } 
    198198     echo 
  • admin/style/default.css

    r1569 r1571  
    1717} 
    1818body { 
     19     font-size: 12px; /* ie < 9 sucks */ 
    1920     font-size: 1.2rem; 
    2021     line-height: 1.5; 
     
    4041h1, h2, h3, .as_h3, h4, h5, h6, p { 
    4142     margin-top: 0; 
    42      margin-bottom: 1rem; 
     43     margin-bottom: 1em; 
    4344} 
    4445h2 { 
    4546     color: #666; 
     47     font-size: 18px; /* ie < 9 sucks */ 
    4648     font-size: 1.8rem; 
    47      padding: 0 0 1.8rem; 
     49     padding: 0 0 1.5em; 
    4850     font-weight: normal; 
    4951} 
     
    5658} 
    5759.page-title img { 
    58      padding-left: .6rem; 
     60     padding-left: .5em; 
    5961     vertical-align: middle; 
    6062} 
    6163#content > h2 { 
     64     padding: 0 18px 6px; /* ie < 9 sucks */ 
    6265     padding: 0 1.8rem .6rem; 
     66     margin: 0 -18px .5em; /* ie < 9 sucks */  
    6367     margin: 0 -1.8rem 1rem; 
    6468     background: #fff url(bg_h2.png) repeat-x center bottom; 
     
    6670h3, .as_h3 { 
    6771     color: #575859; 
     72     font-size: 16px; /* ie < 9 sucks */ 
     73     font-size: 1.6rem; 
     74} 
     75h4 { 
     76     font-size: 14px; /* ie < 9 sucks */ 
    6877     font-size: 1.4rem; 
    69 } 
    70 h4 { 
    71      font-size: 1.1em; 
    7278     color: #575859; 
    7379} 
    7480h5 { 
    75      font-size: 1em; 
     81     font-size: 12px; /* ie < 9 sucks */ 
     82     font-size: 1.3rem; 
    7683     color: #575859; 
    7784} 
     
    8188} 
    8289.entry-status label img { 
    83      padding-left: .4rem; 
     90     padding-left: 4px; 
    8491     vertical-align: text-top; 
    8592} 
     
    136143} 
    137144#prelude li a { 
     145     padding-left: 16px; /* ie < 9 sucks */ 
    138146     padding-left: 1.6rem; 
    139147     background: #A2CBE9; 
     
    150158     padding: 0; 
    151159     margin: 0; 
    152      height: 3.6rem; 
     160     height: 36px; 
    153161     text-indent: -1000px; 
    154162} 
     
    157165     top: 0; 
    158166     left: 0; 
     167     width: 174px; /* ie < 9 sucks */ 
    159168     width: 17.4rem; 
     169     height: 36px; /* ie < 9 sucks */ 
    160170     height: 3.6rem; 
    161171     border: none; 
     
    169179} 
    170180#info-boxes { 
    171      font-size: 1em; 
     181     font-size: 12px; /* ie < 9 sucks */ 
     182     font-size: 1.2rem; 
    172183     line-height: 3em; 
    173184} 
    174185#info-box1 { 
    175186     margin: 0; 
    176      padding: 0 3px 0 1.8rem; 
     187     padding: 0 3px 0 18px; 
    177188     color: #fff; 
    178189     display: inline-block; 
     
    180191#info-box2 { 
    181192     margin: 0; 
    182      padding: 0 1.3em 0 0; 
     193     padding: 0 16px 0 0; 
    183194     color: #fff; 
    184195     float: right; 
     
    190201} 
    191202#info-box1 select { 
     203     width: 145px; /* ie < 9 sucks */ 
    192204     width: 14.5em; 
    193205} 
     
    232244#content { 
    233245     margin: 0 0 0 14.5em; 
     246     padding: 9px 18px 18px; /* ie < 9 sucks */  
    234247     padding: .9rem 1.8rem 1.8rem; 
    235248     background: #fff; 
     
    280293/* -------------------------------------------------------------- layout - onglets */ 
    281294.part-tabs ul { 
    282      padding: .5em 0 .3em 1.2rem; 
     295     padding: .5em 0 .3em 1em; 
    283296     border-bottom: 1px solid #ddd; 
    284297} 
     
    319332#main-menu h3 { 
    320333     margin: 0; 
    321      padding: 1.2rem 0 1rem 2.2rem; 
    322      text-indent: -1.6rem; 
     334     padding: 10px 0 10px 8px; 
    323335     color: #666; 
    324336     font-size: 1.4rem; 
     
    328340} 
    329341#main-menu ul { 
    330      margin: 0 0 1.8rem 0; 
     342     margin: 0 0 1.5em 0; 
    331343     padding: 0; 
    332344     list-style: none; 
     
    335347     display: block; 
    336348     margin: 0.5em 0 0; 
    337      padding: .3rem 0 0 30px; 
     349     padding: 3px 0 0 30px; 
    338350     background-repeat: no-repeat; 
    339351     background-position: 8px .3em; 
     352} 
     353#main-menu ul li:first-child { 
     354     margin-top: 0; 
    340355} 
    341356#main-menu li.active { 
     
    360375     display: inline-block; 
    361376     border: 1px solid #999; 
    362      border-radius: .6em; 
     377     border-radius: .3em; 
    363378     position: relative; 
    364379     height: 2rem; 
     
    367382#search-menu #q { 
    368383     width: 12rem; 
    369      border-bottom-left-radius: .6em; 
    370      border-top-left-radius: .6em; 
     384     border-bottom-left-radius: .3em; 
     385     border-top-left-radius: .3em; 
    371386     background: transparent url(search.png) no-repeat 4px center; 
    372387     text-indent: 18px; 
     
    380395     border-color: #999; 
    381396     color: #444; 
    382      border-bottom-right-radius: .6em; 
    383      border-top-right-radius: .6em; 
     397     border-bottom-right-radius: .3em; 
     398     border-top-right-radius: .3em; 
    384399     border-top-left-radius: 0; 
    385400     border-bottom-left-radius: 0; 
     
    608623/* ------------------------------------------------------------------ categories */ 
    609624#categories { 
    610      margin: 1em 0 2em; 
     625     margin: 1em 0; 
    611626} 
    612627#categories ul { 
     
    636651#categories li p { 
    637652     margin: 0; 
     653     display: inline-block; 
     654} 
     655.cat-url { 
     656     padding-left: 1em; 
    638657} 
    639658.cat-actions { 
     
    11231142.fieldset h3 { 
    11241143     color: #333; 
     1144} 
     1145.table { 
     1146     display: table; 
     1147} 
     1148.cell { 
     1149     display: table-cell; 
    11251150} 
    11261151 
Note: See TracChangeset for help on using the changeset viewer.

Sites map