Dotclear

Changeset 1307:29c999d7ae6b


Ignore:
Timestamp:
08/05/13 19:22:48 (10 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Some cool things for a little bit more responsive admin. You can now use your phone to play with Dotclear (but don't expect something perfect, a real mobile friendly stuff will be done a day but not today).

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • .hgsubstate

    r1242 r1307  
    1 68debbf1f4b869c562e3ac3d1901d55e9ddf2f49 inc/libs/clearbricks 
     14a0351ee5d566a83ff06ca8bc9fffeb99885f545 inc/libs/clearbricks 
  • admin/style/default.css

    r1291 r1307  
    154154} 
    155155#info-box2 { 
    156      margin-top: .3rem; 
    157      padding: .5em 1.3em 4px 0; 
     156     margin: 0; 
     157     padding: .8em 1.3em 4px 0; 
    158158     color: #fff; 
    159159     float: right; 
     
    14291429     color: white; 
    14301430} 
     1431 
     1432/* --------------------------------------------------------------------------- 
     1433     Media queries vite fait en attendant la reprise complète du layout 
     1434---------------------------------------------------------------------------- */ 
     1435@media screen and (max-width: 880px) { 
     1436 #top, #top h1 a {width: 42px;overflow:hidden;} 
     1437 #top, #info-boxes, #info-box1, #info-box2 { 
     1438     display:inline-block; 
     1439     vertical-align:middle; 
     1440     margin:0; 
     1441     padding:0; 
     1442     line-height: 3.2rem;  
     1443     width:auto;  
     1444     height:auto; 
     1445 } 
     1446 #info-box1 select {width: 14rem;} 
     1447 #help-button {position: absolute;top: 8rem; right:0;} 
     1448} 
     1449@media screen and (max-width: 680px) { 
     1450 .nomobile {display: none;} 
     1451 #main-menu, #main, #content, #entry-wrapper, #entry-sidebar, #entry-content, .two-cols .col, .two-cols .col:first-child { 
     1452    display:block; 
     1453    width: 99% !important; 
     1454    margin:0 auto; 
     1455    padding:0; 
     1456    float:none; 
     1457    text-align: left; 
     1458    clear: both; 
     1459  } 
     1460 } 
  • inc/admin/lib.dc.page.php

    r1302 r1307  
    9797          '  <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" />'."\n". 
    9898          '  <meta name="GOOGLEBOT" content="NOSNIPPET" />'."\n". 
     99          '  <meta name="viewport" content="initial-scale=1.0" />'."\n". 
    99100 
    100101          self::jsLoadIE7(). 
     
    137138          '</div>'. 
    138139          '<div id="info-box2">'. 
    139           '<a'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 
    140           '<span> | </span><a'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
    141           '<span> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
     140          '<a class=" nomobile"'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 
     141          '<span class="nomobile"> | </span><a class=" nomobile"'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active nomobile"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
     142          '<span class="nomobile"> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
    142143          '</div>'. 
    143144          '</div>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map