Dotclear

Changeset 1599:20565c2c116f


Ignore:
Timestamp:
08/27/13 14:09:21 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Adding 3 styles to manage displaying or not elements with or without javascript. Documentation will be updated today or tomorrow for everybody use.
Apply it to categories page.
Translations in french.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r1595 r1599  
    183183     '</p>'. 
    184184     '<p class="right">'. 
    185      '<input type="submit" name="delete" value="'.__('Delete selected categories').'"/>'. 
     185     '<input type="submit" class="delete" name="delete" value="'.__('Delete selected categories').'"/>'. 
    186186     '</p>'. 
    187187     '</div>'; 
    188188 
    189      echo '<h3 class="clear">'.__('Categories order').'</h3>'; 
     189     echo '<h3 class="clear hidden-if-no-js">'.__('Categories order').'</h3>'; 
    190190 
    191191     if ($core->auth->check('categories',$core->blog->id) && $rs->count()>1) { 
    192192          if (!$core->auth->user_prefs->accessibility->nodragdrop) { 
    193                echo '<p class="no-js-hidden">'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'; 
     193               echo '<p class="hidden-if-no-js">'.__('To rearrange categories order, move items by drag and drop, then click on “Save categories order” button.').'</p>'; 
    194194          } 
    195195          echo 
    196           '<p class="dragdrop-hidden">'.__('To rearrange categories order, change position number and click on “Save categories order” button.').'</p>'. 
    197           '<p>'. 
     196          '<p class="hidden-if-no-js">'. 
    198197          '<input type="hidden" id="categories_order" name="categories_order" value=""/>'. 
    199198          '<input type="submit" name="save_order" id="save-set-order" value="'.__('Save categories order').'" />'. 
     
    202201 
    203202     echo 
    204      '<p><input type="submit" name="reset" value="'.__('Reorder all categories on the top level').'" />'. 
     203     '<p class="hidden-if-js right"><input type="submit" name="reset" value="'.__('Reorder all categories on the top level and delete selected categories').'" />'. 
     204     $core->formNonce().'</p>'. 
     205     '<p class="hidden-if-no-js"><input type="submit" name="reset" value="'.__('Reorder all categories on the top level').'" />'. 
    205206     $core->formNonce().'</p>'. 
    206207     '</form>'; 
  • admin/style/default.css

    r1594 r1599  
    113113abbr { 
    114114     cursor: help; 
    115 } 
    116  
    117 .no-js .js-hidden { 
    118         display: block; 
    119 } 
    120 .no-js .no-js-hidden { 
    121         display: none; 
    122 } 
    123 .js-hidden { 
    124         display: none; 
    125115} 
    126116 
     
    11871177     vertical-align: middle; 
    11881178} 
    1189 /* Si quelque chose a besoin d'être caché sauf pour les revues d'écran */ 
    1190 .hidden { 
    1191     position: absolute !important; 
    1192     clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 
    1193     clip: rect(1px, 1px, 1px, 1px); 
    1194     padding: 0 !important; 
    1195     border: 0 !important; 
    1196     height: 1px !important; 
    1197     width: 1px !important; 
    1198     overflow: hidden; 
    1199     } 
     1179 
    12001180.clear { 
    12011181     clear: both; 
     
    12071187     height: 1px; 
    12081188     font-size: 1px; 
    1209 } 
    1210 .hide { 
    1211      display: none; 
    12121189} 
    12131190.right { 
     
    12511228     margin-top: -1em; 
    12521229} 
     1230 
    12531231/* TABLES 
    12541232-------------------------------------------------------- */ 
     
    16221600} 
    16231601.button.add { 
    1624      background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #9dce2c), color-stop(1, #8cb82b) ); 
    1625      background:-moz-linear-gradient( center top, #9dce2c 5%, #8cb82b 100% ); 
    1626      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9dce2c', endColorstr='#8cb82b'); 
    1627      background-color:#9dce2c; 
    1628      border:1px solid #83c41a; 
     1602     background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #BBDB58), color-stop(1, #9AC123) ); 
     1603     background:-moz-linear-gradient( center top, #BBDB58 5%, #9AC123 100% ); 
     1604     filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#BBDB58', endColorstr='#9AC123'); 
     1605     background-color:#BBDB58; 
     1606     border:1px solid #B2D742; 
    16291607     padding:.5em 1.5em; 
    16301608     color: #000; 
    1631      text-shadow: 1px 1px 0 #BBDB58; 
     1609     text-shadow:1px 1px 0px #98cf40; 
    16321610     font-weight: normal; 
    16331611     font-size: 14px; /* ie < 9 sucks */ 
     
    16351613} 
    16361614.button.add:hover, .button.add:active, .button.add:focus { 
    1637      background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #8cb82b), color-stop(1, #9dce2c) ); 
    1638      background:-moz-linear-gradient( center top, #8cb82b 5%, #9dce2c 100% ); 
    1639      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#8cb82b', endColorstr='#9dce2c'); 
    1640      background-color:#8cb82b; 
    1641      border:1px solid #83c41a; 
     1615     background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #9AC123), color-stop(1, #BBDB58) ); 
     1616     background:-moz-linear-gradient( center top, #9AC123 5%, #BBDB58 100% ); 
     1617     filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9AC123', endColorstr='#BBDB58'); 
     1618     background-color:#9AC123; 
    16421619} 
    16431620.button-add:focus { 
     
    17871764     background: #0c0; 
    17881765     width: 150px; 
     1766} 
     1767/* ------------------------------------------------------------- cachotteries */ 
     1768/* caché pour tout le monde */ 
     1769.hide { 
     1770     display: none; 
     1771} 
     1772/* Caché sauf pour les revues d'écran */ 
     1773.hidden { 
     1774    position: absolute !important; 
     1775    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 
     1776    clip: rect(1px, 1px, 1px, 1px); 
     1777    padding: 0 !important; 
     1778    border: 0 !important; 
     1779    height: 1px !important; 
     1780    width: 1px !important; 
     1781    overflow: hidden; 
     1782    } 
     1783/* caché si js est inactif */ 
     1784.no-js .hidden-if-no-js { 
     1785        display: none; 
     1786} 
     1787/* montré si js est inactif */ 
     1788.no-js .hidden-if-js { 
     1789     display: block; 
     1790} 
     1791/* caché si js est actif */ 
     1792.hidden-if-js { 
     1793        display: none; 
    17891794} 
    17901795 
  • inc/admin/lib.dc.page.php

    r1598 r1599  
    206206          '</div>'."\n".      // End of #main-menu 
    207207          '<div id="footer"><a href="http://dotclear.org/" title="'.$text.'"><img src="style/dc_logos/w-dotclear90.png" alt="'.$text.'" /></a></div>'."\n". 
     208          '<!-- '."\n". 
     209'                  .'."\n". 
     210'               ,;:\'`\'::'."\n". 
     211'            __||'."\n". 
     212'      _____/LLLL\_'."\n". 
     213'      \__________"|'."\n". 
     214'    ~^~^~^~^~^~^~^~^~^~'."\n". 
     215' -->'."\n". 
    208216          "</div>\n";         // End of #wrapper 
    209217 
  • locales/fr/main.po

    r1594 r1599  
    32153215msgid "Select" 
    32163216msgstr "Sélectionner" 
     3217 
     3218msgid "Click here to unlock the field" 
     3219msgstr "Cliquez ici pour déverrouiller ce champ" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map