Dotclear


Ignore:
Timestamp:
08/25/13 15:18:38 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Issue #1541: hide or display adapted message when js is enabled or not
Add js class to html, removed by jQuery on pageLoad event.
Add some css classes :

  • js-hidden : use to hide element that need to be displayed when js is enabled
  • no-js-hidden : use to hide element that need to be displayed when js is not enabled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r1574 r1576  
    3434     text-decoration: underline; 
    3535} 
    36 a img, a:link img, a:visited img {  
     36a img, a:link img, a:visited img { 
    3737     border:none; 
    3838} 
     
    6262     padding: 0 18px 6px; /* ie < 9 sucks */ 
    6363     padding: 0 1.8rem .6rem; 
    64      margin: 0 -18px .5em; /* ie < 9 sucks */  
     64     margin: 0 -18px .5em; /* ie < 9 sucks */ 
    6565     margin: 0 -1.8rem 1rem; 
    6666     background: #fff url(bg_h2.png) repeat-x center bottom; 
     
    114114     cursor: help; 
    115115} 
     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; 
     125} 
     126 
    116127/* LAYOUT 
    117128-------------------------------------------------------- */ 
     
    173184} 
    174185#top h1 a:hover, #top h1 a:focus { 
    175      background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 -94px;  
     186     background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 -94px; 
    176187} 
    177188#info-boxes { 
     
    244255#content { 
    245256     margin: 0 0 0 14.5em; 
    246      padding: 9px 18px 18px; /* ie < 9 sucks */  
     257     padding: 9px 18px 18px; /* ie < 9 sucks */ 
    247258     padding: .9rem 1.8rem 1.8rem; 
    248259     background: #fff; 
     
    376387#search-menu * { 
    377388     height: 20px; /* ie < 9 sucks */ 
    378      height: 2rem;   
     389     height: 2rem; 
    379390} 
    380391#search-menu p { 
     
    392403     background: transparent url(search.png) no-repeat 4px center; 
    393404     text-indent: 18px; 
    394      padding: 0 2px;  
     405     padding: 0 2px; 
    395406     border: none; 
    396407} 
    397 #search-menu input[type="submit"] {  
     408#search-menu input[type="submit"] { 
    398409     padding: 0 3px; 
    399410     padding: 0 .3rem; 
     
    648659#categories input[type="checkbox"] { 
    649660     margin-right: .8em; 
    650 }  
     661} 
    651662#categories h4 { 
    652663     margin: 0; 
     
    888899     display: table-cell; 
    889900     vertical-align: top; 
    890      padding: 0;  
     901     padding: 0; 
    891902     width: 312px; 
    892903     border: 1px solid #ccc; 
    893904     border-radius: 3px; 
    894905} 
    895 #theme-box .theme-shot,  
     906#theme-box .theme-shot, 
    896907#theme-box .theme-info, 
    897908#theme-box .theme-actions { 
     
    11461157     background: #fff; 
    11471158     border: 1px solid #aaa; 
    1148      border-radius: 6px;  
     1159     border-radius: 6px; 
    11491160     padding: 1em .7em .5em; 
    11501161     margin-bottom: 1em; 
     
    12901301     width: 80%; 
    12911302     border: 1px solid #999; 
    1292      margin-bottom: 3em;  
     1303     margin-bottom: 3em; 
    12931304} 
    12941305table.settings th, table.prefs th { 
     
    13851396input.invalid, textarea.invalid, select.invalid { 
    13861397     border: 1px solid red; 
    1387      background: #fff;  
     1398     background: #fff; 
    13881399     color: red; 
    13891400     box-shadow: 0 0 0 1px rgba(218, 62, 90, 0.3) 
     
    14721483p.field { 
    14731484     position: relative; 
    1474       
     1485 
    14751486} 
    14761487p.field label { 
     
    17021713     margin-top: 1em; 
    17031714     line-height: 22px; 
    1704      padding: 0 .75em;  
     1715     padding: 0 .75em; 
    17051716     border: 1px solid #ddd; 
    1706      overflow: hidden;  
    1707      background: #e1e1e1;  
    1708      background: -moz-linear-gradient(center top , #f2f2f2, #e1e1e1);  
    1709      background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e1e1e1));  
    1710      -moz-border-radius: 4px;  
    1711      -webkit-border-radius: 4px;  
    1712      border-radius: 4px;  
     1717     overflow: hidden; 
     1718     background: #e1e1e1; 
     1719     background: -moz-linear-gradient(center top , #f2f2f2, #e1e1e1); 
     1720     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e1e1e1)); 
     1721     -moz-border-radius: 4px; 
     1722     -webkit-border-radius: 4px; 
     1723     border-radius: 4px; 
    17131724     clear: left; 
    17141725} 
     
    17161727     height: 20px; 
    17171728     border: none; 
    1718      padding: 2px 6px;  
     1729     padding: 2px 6px; 
    17191730     background-color : transparent; 
    17201731     background-position : 50% 50%; 
     
    17731784} 
    17741785     #top h1 a:link { 
    1775           background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px;  
     1786          background: transparent url(dc_logos/b-dotclear120.png) no-repeat -180px 6px; 
    17761787          border-right: 1px solid #ccc; 
    17771788     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map