Dotclear

Changeset 1309:eb5238f5be85


Ignore:
Timestamp:
08/06/13 17:26:09 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Login screen has to be as happy as a Dotclear's user. (And some very few changes on admin pages.)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r1308 r1309  
    395395          __('Remember my ID on this computer').'</label></p>'. 
    396396           
    397           '<p><input type="submit" value="'.__('log in').'" /></p>'; 
     397          '<p><input class="add button" type="submit" value="'.__('log in').'" /></p>'; 
    398398           
    399399          if (!empty($_REQUEST['blog'])) { 
  • admin/style/default.css

    r1308 r1309  
    2323     padding: 0; 
    2424} 
    25 body.auth { 
    26      background: #fff; 
    27 } 
    2825 
    2926a, a:link, a:visited { 
     
    4643     color: #666; 
    4744     font-size: 1.8rem; 
    48      padding: 0 0 2em; 
     45     padding: 0 0 1.8rem; 
    4946     font-weight: normal; 
    5047} 
     
    6562hr { 
    6663     height: 1px; 
    67      border-width: 1px 0 0 0; 
     64     border-width: 1px 0 0; 
    6865     border-color: #999; 
    6966     border-style: solid; 
     
    9188#header { 
    9289     background: #575859; 
    93      height: 3.6rem; 
     90     height: 3em; 
    9491     position: relative; 
    9592     border-bottom: 4px solid #A2CBE9; 
     
    10198     overflow: hidden; 
    10299     position: absolute; 
    103      top: 3.6rem; 
     100     top: 3em; 
    104101     left: 0; 
    105102     background: #A2CBE9; 
    106      width: 14em; 
     103     width: 14.5em; 
    107104     } 
    108105#prelude li { 
     
    112109} 
    113110#prelude li a { 
    114      padding: .5rem 1rem .4rem 1.5rem; 
     111     padding-left: 1.6rem; 
    115112     background: #A2CBE9; 
    116113     color: #000; 
     
    120117     margin: 0; 
    121118     padding: 0; 
    122      width: 14em; 
     119     width: 14.5em; 
    123120     float: left; 
    124      line-height: 3.6rem; 
     121     line-height: 3em; 
    125122} 
    126123#top h1 { 
     
    135132     top: 0; 
    136133     left: 0; 
    137      width: 14rem; 
     134     width: 14.5em; 
    138135     height: 3.6rem; 
    139136     border: none; 
     
    146143     background: #575859; 
    147144     font-size: 1em; 
    148      line-height: 3.6rem; 
    149      text-align: justify; 
     145     line-height: 3em; 
    150146} 
    151147#info-box1 { 
     
    169165} 
    170166#info-box1 select { 
    171      width: 15em; 
     167     width: 14.5em; 
    172168} 
    173169#info-box1 a img, #info-box2 a img { 
     
    175171     padding-left: .3em; 
    176172     } 
    177 #info-box1 a, #info-box2 a { 
     173#info-boxes a { 
    178174     background: #575859; 
    179175     font-weight: bold; 
     
    199195     color: #999; 
    200196} 
    201 /* prelude */ 
     197/* main blocks */ 
    202198#wrapper { 
    203199     width: 100%; 
     
    206202     width: 100%; 
    207203     float: right; 
    208      margin-left: -14em; 
     204     margin-left: -14.5em; 
    209205     margin-top: 0; 
    210206     background: #fff url(dc_bg.png); 
    211207} 
    212208#content { 
    213      margin: 0 0 0 14em; 
     209     margin: 0 0 0 14.5em; 
    214210     padding: .9rem 1.8rem 1.8rem; 
    215211     background: #fff url(dc_bg_title.png) repeat-x center top; 
     
    254250/* -------------------------------------------------------------- layout - onglets */ 
    255251.part-tabs ul { 
    256      padding: .5em 0 .3em 1.2rem; 
     252     padding: .5em 0 .3em 1em; 
    257253     border-bottom: 1px solid #ccc; 
    258254} 
     
    292288/* ------------------------------------------------------------------ main-menu */ 
    293289#main-menu { 
    294      width: 14em; 
     290     width: 14.5em; 
    295291     float: left; 
    296      margin-top: 4.4rem; 
    297      padding-bottom: 1rem; 
     292     margin:0; 
     293     padding-top: 4em; 
     294     padding-bottom: 1em; 
    298295     background: #f7f7f7; 
    299296} 
     
    309306} 
    310307#main-menu ul { 
    311      font-size: 1.2rem; 
    312308     margin: 0 0 1.8rem 0; 
    313309     padding: 0; 
     
    366362     width: 18em; 
    367363     margin: 1.5em auto 0; 
    368      font-size: 1.1em; 
     364     font-size: 1.4rem; 
    369365} 
    370366#login-screen h1 { 
     
    373369     height: 50px; 
    374370     margin-bottom: .5em; 
    375      margin-left: .5em; 
     371     margin-left: 0; 
    376372} 
    377373#login-screen fieldset, #login-screen .fieldset { 
    378      border: 1px solid #999; 
     374     border: 1px solid #A8DC26; 
    379375     padding: 1em 1em 0 1em; 
    380376     border-radius: 4px; 
    381377} 
     378#login-screen legend { 
     379     border: 1px solid #A8DC26; 
     380} 
    382381#login-screen input[type=text], #login-screen input[type=password], #login-screen input[type=submit] { 
    383382     width: 100%; 
    384383} 
    385384#login-screen #issue { 
    386      margin-left: 1em; 
    387      font-size: 1em; 
     385     margin-left: 1.5rem; 
     386     font-size: 1.2rem; 
    388387} 
    389388#login-screen #issue strong {font-weight: normal;} 
     
    793792} 
    794793#help-button { 
    795      background: transparent url(../images/page_help.png) no-repeat .6rem center; 
     794     background: transparent url(../images/page_help.png) no-repeat 6px center; 
    796795     position: absolute; 
    797796     top: 3.6rem; 
     
    800799     cursor: pointer; 
    801800     color: #2373A8; 
    802      line-height: 4rem; 
     801     line-height: 4.2rem; 
    803802} 
    804803#help-button span { 
     
    878877} 
    879878p.error, p.message, p.static-msg { 
    880      padding-top: 1em; 
    881      padding-bottom: 1em; 
     879     padding-top: 1rem; 
     880     padding-bottom: 1rem; 
    882881} 
    883882div.error, p.error { 
     
    931930p.top-add { 
    932931     text-align: right; 
    933      margin: 2rem 0 0; 
     932     margin: 0; 
    934933     } 
    935934p.top-add a { 
     
    10231022} 
    10241023tr.line:hover { 
    1025      background: #ddd; 
     1024     background: #f3f3f3; 
    10261025} 
    10271026caption { 
     
    10351034     border-width: 0 0 1px 0; 
    10361035     border-style: solid; 
    1037      border-color: #ccc; 
     1036     border-color: #e3e3e3; 
    10381037     padding: .4rem .5rem; 
    10391038     vertical-align: top; 
     
    10411040th { 
    10421041     text-align: left; 
    1043      border-bottom-color: #666; 
     1042     border-bottom-color: #aaa; 
    10441043} 
    10451044.noborder td, td.noborder, .noborder th, th.noborder { 
     
    11471146     border-width: 1px; 
    11481147     border-style: solid; 
    1149      border-color: #000 #ccc #ccc #000; 
     1148     border-color: #666 #ccc #ccc #999; 
    11501149} 
    11511150input.invalid, textarea.invalid, select.invalid { 
     
    12371236     display: inline; 
    12381237     position: absolute; 
    1239      left: 15em; 
     1238     left: 14.5em; 
    12401239     top: 0; 
    12411240} 
     
    12621261 
    12631262/* --------------------------------------------------------------- buttons */ 
    1264 h2 a.button { 
    1265      color: #333; 
    1266      font-weight: normal; 
    1267      font-size: .75em; 
    1268      vertical-align: middle; 
    1269 } 
    12701263/* commun */ 
    12711264input[type=submit], 
     
    14261419     Media queries vite fait en attendant la reprise complète du layout 
    14271420---------------------------------------------------------------------------- */ 
    1428 @media screen and (max-width: 880px) { 
    1429  #top, #top h1 a {width: 42px;overflow:hidden;} 
    1430  #top, #info-boxes, #info-box1, #info-box2 {display:inline-block;vertical-align:middle;margin:0;padding:0;line-height: 3.2rem;} 
    1431  #info-box1 select {width: 14rem;} 
    1432  #help-button {position: absolute;top: 8rem; right:0;} 
    1433 } 
    1434 @media screen and (max-width: 680px) { 
    1435  .nomobile, #help-button {display: none;} 
    1436  #main-menu, #main, #content, #entry-wrapper, #entry-sidebar, #entry-content, .two-cols .col, .two-cols .col:first-child { 
    1437     display:block; 
    1438     width: 98% !important; 
    1439     margin:0 auto; 
    1440     padding:0; 
    1441     float:none; 
    1442     text-align: left; 
    1443     clear: both; 
    1444   } 
    1445 } 
     1421@media screen and (max-width: 920px) { 
     1422     #top, #top h1 a {width: 42px !important;overflow:hidden;} 
     1423} 
     1424@media screen and (max-width: 800px) { 
     1425     #top, #info-boxes, #info-box1, #info-box2 { 
     1426          display:inline-block; 
     1427          vertical-align:middle; 
     1428          margin:0; 
     1429          padding:0; 
     1430          line-height: 3.2rem; 
     1431     } 
     1432     #info-box1 select {width: 14rem;} 
     1433     #help-button {position: absolute; top: 8rem; right:0;} 
     1434     #main-menu, #main, #content, #entry-wrapper, #entry-sidebar, #entry-content, .two-cols .col, .two-cols .col:first-child { 
     1435     display:block; 
     1436     width: 98%; 
     1437     margin:0 auto; 
     1438     padding:0; 
     1439     float:none; 
     1440     text-align: left; 
     1441     clear: both; 
     1442     } 
     1443     #content { 
     1444          width: 100%; 
     1445          padding-top: .5em; 
     1446     } 
     1447} 
     1448@media screen and (max-width: 720px) { 
     1449     .smallscreen {display: none;} 
     1450} 
     1451@media screen and (max-width: 492px) { 
     1452     #info-boxes {float:right;} 
     1453     #info-box1, #info-box2 {display: block;} 
     1454     #header {height:7.2rem;} 
     1455     #help-button {top: 11rem;} 
     1456     #info-boxes {display: inline-block; height: auto;} 
     1457     #top h1 a, #top {height: auto;} 
     1458} 
  • inc/admin/lib.dc.page.php

    r1308 r1309  
    7474               $blog_box = 
    7575               '<p><label for="switchblog" class="classic">'. 
    76                __('Blogs:').' '. 
     76               __('Blogs:').'</label> '. 
    7777               $core->formNonce(). 
    7878               form::combo('switchblog',$blogs,$core->blog->id). 
    79                '</label></p>'. 
     79               '</p>'. 
    8080               '<noscript><p><input type="submit" value="'.__('ok').'" /></p></noscript>'; 
    8181          } 
     
    138138          '</div>'. 
    139139          '<div id="info-box2">'. 
    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>'. 
     140          '<a class="smallscreen"'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 
     141          '<span class="smallscreen"> | </span><a class="smallscreen"'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active smallscreen"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
     142          '<span class="smallscreen"> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
    143143          '</div>'. 
    144144          '</div>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map