Dotclear

Changeset 2005:7c2f3454ba94


Ignore:
Timestamp:
09/22/13 15:07:08 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:
  • Reprise complète du haut de page : allégement drastique du html, allégement également des css.
  • Retour de l'image en fond de wrapper, la méthode précédemment adoptée pour avoir des colonnes égales mettait le pâté dans les js et les liens vers les ancres. Toutes mes confuses aux chatons morts par ma faute. Fixes #1689
  • Mise en commentaire des règles responsives, je reprends tout à zéro (work in progress).
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r2003 r2005  
    2020#header { 
    2121     background: #676e78; 
    22      position: relative; 
     22     color: #FFF; 
    2323     border-bottom: 4px solid #A2CBE9; 
    2424     width: 100%; 
     25     display: table; 
    2526     } 
    2627#wrapper { 
    2728     position: relative; 
    28      padding-top: 1em; 
    29      overflow: hidden; /* pour les hauteurs égales */ 
     29     padding-top: 1.5em; 
    3030     float: left; 
    3131     width: 100%; 
    3232     z-index: 10; 
     33     background: #F7F7F7 url(bg_wrapper.png) repeat-y 15em; 
    3334     } 
    3435.with-js #wrapper { 
     
    6364     border-top: 1px solid #ccc; 
    6465     background-color: #fff; 
    65      } 
    66 #content, #main-menu { /* hauteurs égales */ 
    67      padding-bottom: 200em; 
    68      margin-bottom: -200em; 
    6966     } 
    7067/* to hide main-menu */ 
     
    303300     /* titre de page */ 
    304301     #content > h2 { 
    305           padding: 0 1.5em .5em 1em; 
    306           margin: 0 -1.5em .5em -1em; 
     302          padding: 0 1em .5em 1em; 
     303          margin: 0 -1em .5em -1em; 
    307304          background: #fff url(bg_h2.png) repeat-x center bottom; 
    308305          } 
     
    852849          border-bottom-color: #A2CBE9; 
    853850          } 
    854 /* top (h1) */ 
    855 #top { 
     851/* header global h1, form#top-info-blog, ul#top-info-user */ 
     852#header a { 
     853     color: #FFF; 
     854     } 
     855#header img { 
     856     vertical-align: middle; 
     857     padding-left: .5em; 
     858     } 
     859h1, #top-info-blog, #top-info-user { 
     860     display: table-cell; 
     861     padding: 8px 0; 
    856862     margin: 0; 
     863     font-size: 1em; 
     864     } 
     865/* h1 */ 
     866h1 { 
    857867     padding: 0; 
    858      width: 14.5em; 
    859      float: left; 
    860      } 
    861      h1 { 
    862           padding: 0; 
    863           margin: 0; 
    864           height: 36px; 
    865           text-indent: -1000px; 
    866           } 
    867           h1 a { 
    868                position: absolute; 
    869                top: 0; 
    870                left: 0; 
    871                width: 174px; /* ie < 9 sucks */ 
    872                width: 17.4rem; 
    873                height: 36px; /* ie < 9 sucks */ 
    874                height: 3.6rem; 
    875                color: #fff; 
    876                background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; 
    877                } 
    878           h1 a:hover, h1 a:focus { 
    879                background-position: 0 -94px; 
    880                } 
    881 /* info-boxes */ 
    882 #info-boxes { 
    883      font-size: 12px; /* ie < 9 sucks */ 
    884      font-size: 1.2rem; 
    885      line-height: 3em; 
    886      } 
    887      #info-boxes a { 
    888           font-weight: bold; 
     868     margin: 0; 
     869     text-indent: -1000px; 
     870     width: 16.5em; 
     871     } 
     872     h1 a { 
     873          position: absolute; 
     874          top: 0; 
     875          left: 0; 
     876          width: 174px; /* ie < 9 sucks */ 
     877          width: 17.4rem; 
     878          height: 36px; /* ie < 9 sucks */ 
     879          height: 3.6rem; 
    889880          color: #fff; 
    890           border-bottom-color: #ccc; 
    891           margin-left: .3em; 
    892           margin-right: .3em; 
    893           white-space: nowrap; 
    894           font-weight: normal; 
    895           } 
    896      #info-boxes a img { 
    897           vertical-align: middle; 
    898           padding-left: .3em; 
    899           } 
    900      #info-box1 { 
    901           margin: 0; 
    902           padding: 0 3px 0 18px; 
    903           color: #fff; 
    904           display: inline-block; 
    905           } 
    906           #info-box1 p { 
    907                margin: 0; 
    908                display: inline; 
    909                } 
    910           .with-js #info-box1 .hidden-if-js { 
    911                display: none; 
    912                } 
    913           #info-box1 select { 
    914                width: 145px; /* ie < 9 sucks */ 
    915                width: 14.5em; 
    916                } 
    917           #info-box1 a { 
    918                margin-left: 1.33em; 
    919                } 
    920           #info-box1 input[type=submit] { 
    921                background: #000; 
    922                border-color: #999; 
    923                margin-left: .33em;  
    924                } 
    925           #info-box1 input[type=submit]:hover { 
    926                background: #999; 
    927                } 
    928      #info-box2 { 
    929           margin: 0; 
    930           padding: 0 18px 0 0; 
    931           color: #fff; 
    932           float: right; 
    933           text-align: right; 
    934           } 
    935           #info-box2 span { 
    936                color: #999; 
    937                } 
    938           #info-box2 .logout { 
    939                margin-right: 0; 
    940                } 
    941           #info-box2 a.active { 
    942                border-bottom-color: #fff; 
    943                margin: 0; 
    944                padding: 1.2em .5em; 
    945                background-color: #fff; 
    946                color: #333; 
    947                font-weight: bold; 
    948                } 
     881          background: transparent url(dc_logos/b-dotclear120.png) no-repeat 0 6px; 
     882          } 
     883     h1 a:hover, h1 a:focus { 
     884          background-position: 0 -94px; 
     885          } 
     886/* top-info-blog */ 
     887#top-info-blog select { 
     888     max-width: 20em; 
     889     } 
     890#top-info-blog a { 
     891     margin-left: 1.33em; 
     892     } 
     893#top-info-blog input[type=submit] { 
     894     background: #000; 
     895     border-color: #999; 
     896     margin-left: .33em;  
     897     } 
     898#top-info-blog input[type=submit]:hover { 
     899     background: #999; 
     900     } 
     901#top-info-blog p { 
     902     display: inline-block; 
     903     margin: 0; 
     904     } 
     905/* top-info-user */ 
     906#top-info-user { 
     907     padding: 0 18px 0 0; 
     908     list-style-type: none; 
     909     text-align: right; 
     910     } 
     911#top-info-user li { 
     912     display: inline-block; 
     913     margin-left: .5em; 
     914     padding-left: .5em; 
     915     border-left: 1px solid #999; 
     916     } 
     917#top-info-user li:first-child { 
     918     border-left: none; 
     919     } 
     920#top-info-user a.active { 
     921     border-bottom-color: #fff; 
     922     margin: 0; 
     923     padding: 16px .5em; 
     924     background-color: #fff; 
     925     color: #333; 
     926     font-weight: bold; 
     927     } 
    949928/* ---------------------------------------------------------- MAIN-MENU ELEMENTS */ 
    950929#favorites-menu, #blog-menu, #system-menu, #plugins-menu { 
     
    24162395     #info-box1 p.nomobile, label.nomobile { display: none; } 
    24172396     } 
     2397*/ 
  • inc/admin/lib.dc.page.php

    r1947 r2005  
    7373               } 
    7474               $blog_box = 
    75                '<p><label for="switchblog" class="classic nomobile">'. 
     75               '<p><label for="switchblog" class="classic">'. 
    7676               __('Blogs:').'</label> '. 
    7777               $core->formNonce(). 
    7878               form::combo('switchblog',$blogs,$core->blog->id). 
    79                '</p>'. 
    80                '<p class="hidden-if-js"><input type="submit" value="'.__('ok').'" /></p>'; 
     79               '<input type="submit" value="'.__('ok').'" class="hidden-if-js" /></p>'; 
    8180          } 
    8281 
     
    125124          ($safe_mode ? ' safe-mode' : '').'" class="no-js">'."\n". 
    126125 
    127           '<div id="header">'. 
    128126          '<ul id="prelude">'. 
    129127          '<li><a href="#content">'.__('Go to the content').'</a></li>'. 
     
    131129          '<li><a href="#qx">'.__('Go to search').'</a></li>'. 
    132130          '</ul>'."\n". 
    133           '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 
    134  
    135           echo 
    136           '<div id="info-boxes">'. 
    137           '<div id="info-box1">'. 
    138           '<form action="index.php" method="post">'. 
     131          '<div id="header">'. 
     132          '<h1><a href="index.php"><span class="hidden">'.DC_VENDOR_NAME.'</span></a></h1>'."\n"; 
     133 
     134          echo 
     135          '<form action="index.php" method="post" id="top-info-blog">'. 
    139136          $blog_box. 
    140           '<p class="nomobile"><a href="'.$core->blog->url.'" onclick="window.open(this.href);return false;" title="'.__('Go to site'). 
     137          '<p><a href="'.$core->blog->url.'" onclick="window.open(this.href);return false;" title="'.__('Go to site'). 
    141138          ' ('.__('new window').')'.'">'.__('Go to site').'<img src="images/outgoing.png" alt="" /></a>'. 
    142139          '</p></form>'. 
    143           '</div>'. 
    144           '<div id="info-box2">'. 
    145           '<a class="smallscreen'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' active' : '').'" href="index.php">'.__('My dashboard').'</a>'. 
    146           '<span class="smallscreen"> | </span><a class="smallscreen'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' active' : ''). 
    147           '" href="preferences.php">'.__('My preferences').'</a>'. 
    148           '<span class="smallscreen"> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()). 
    149           '<img src="images/logout.png" alt="" /></a>'. 
    150           '</div>'. 
    151           '</div>'. 
    152           '</div>'; 
     140          '<ul id="top-info-user">'. 
     141          '<li><a class="'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' active' : '').'" href="index.php">'.__('My dashboard').'</a></li>'. 
     142          '<li><a class="smallscreen'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' active' : ''). 
     143          '" href="preferences.php">'.__('My preferences').'</a></li>'. 
     144          '<li><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()). 
     145          '<img src="images/logout.png" alt="" /></a></li>'. 
     146          '</ul>'. 
     147          '</div>'; // end header 
    153148 
    154149          echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map