Make WordPress Core

Changeset 6810


Ignore:
Timestamp:
02/13/2008 10:07:57 AM (19 years ago)
Author:
ryan
Message:

Dashboard styling from mdawaffe. see #5750

Location:
trunk/wp-admin
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r6726 r6810  
    324324}
    325325
    326 
    327 // Move this into wp-admin.css
    328 function temp_dashboard_css() {
    329326?>
    330 <style type="text/css">
    331 /* <![CDATA[ */
    332 
    333 div#dashboard-widgets {
    334         position: relative;
    335         left: 20px;
    336         margin-left: -20px;
    337 }
    338 
    339 div.dashboard-widget-holder {
    340         margin-top: 20px;
    341         width: 50%;
    342         float: left;
    343 }
    344 
    345 div.dashboard-widget-holder.third {
    346         width: 33.3%;
    347 }
    348 
    349 div.dashboard-widget-holder.fourth {
    350         width: 25%;
    351 }
    352 
    353 div.dashboard-widget-holder.full {
    354         width: 100%;
    355 }
    356 
    357 div.dashboard-widget-holder.double div.dashboard-widget {
    358         height: 52em;
    359         padding-bottom: 28px /* lame */
    360 }
    361 
    362 div.dashboard-widget {
    363         position: relative;
    364         margin-right: 20px;
    365         border: 1px solid #ccc;
    366         padding: 2px;
    367         height: 26em;
    368         overflow: auto;
    369 }
    370 
    371 h3.dashboard-widget-title  {
    372         background-color: #eaf3fa;
    373         margin: 0;
    374         position: relative;
    375         padding: 0 10px;
    376         font-size: 1.2em;
    377         line-height: 2;
    378 }
    379 
    380 h3.dashboard-widget-title span {
    381         background-color: #eaf3fa;
    382         display: block;
    383         text-align: left;
    384         float: left;
    385 }
    386 
    387 h3.dashboard-widget-title small {
    388         background-color: #eaf3fa;
    389         display: block;
    390         text-align: right;
    391         float: right;
    392         font-size: 75%;
    393         line-height: 2.67; /* math: it works */
    394         margin-top: 2px;
    395 }
    396 
    397 h3.dashboard-widget-title img.rss-icon {
    398         vertical-align: middle;
    399 }
    400 
    401 div.dashboard-widget-notice {
    402         background-color: #cfe1ef;
    403         padding: 0 20px;
    404         font-size: 1.2em;
    405         line-height: 2;
    406 }
    407 
    408 div.dashboard-widget-error {
    409         background-color: #c43;
    410         padding: 0 20px;
    411         font-size: 1.2em;
    412         line-height: 2;
    413 }
    414 
    415 div.dashboard-widget-content {
    416         margin: 10px 15px;
    417 }
    418 
    419 div.dashboard-widget-submit {
    420         border-top: 1px solid #ccc;
    421         margin: 10px 15px;
    422         padding-top: 10px;
    423 }
    424 div.dashboard-widget-content ul, div.dashboard-widget-content ol, div.dashboard-widget-content dl {
    425         text-indent: 0;
    426         padding-left: 15px;
    427 }
    428 
    429 div.dashboard-widget-content blockquote {
    430         margin: 0 0 -1em;
    431 }
    432 
    433 div.dashboard-widget-content .comment-meta {
    434         font-size: 95%;
    435 }
    436 
    437 #dashboard_secondary div.dashboard-widget-content ul {
    438         list-style: none;
    439         padding: 0;
    440         margin: 0;
    441 }
    442 
    443 #dashboard_secondary div.dashboard-widget-content ul li {
    444         display: block;
    445         width: 20%;
    446         height: 6em;
    447         padding-bottom: 20px;
    448         margin: 0;
    449         float: left;
    450         font-size: 95%;
    451 }
    452 
    453 #dashboard_secondary div.dashboard-widget-content {
    454         margin: 10px 5px;
    455         padding: 0;
    456 }
    457 
    458 #dashboard_secondary div.dashboard-widget-content ul li .post {
    459         display:block;
    460         font-family:Georgia,"Times New Roman",Times,serif;
    461         font-size:18px;
    462         height:60px;
    463         overflow:hidden;
    464 }
    465 
    466 #dashboard_secondary div.dashboard-widget-content ul li a {
    467         background:#DDDDDD none repeat scroll 0%;
    468         display:block;
    469         height:100%;
    470         overflow:hidden;
    471         margin: 10px;
    472         padding: .5em;
    473 }
    474 
    475 #dashboard_secondary div.dashboard-widget-content ul li a cite {
    476         display: block;
    477 }
    478 
    479 #dashboard-widgets .widget_rss ul {
    480         list-style: none;
    481         padding: 0;
    482         margin: 0;
    483 }
    484 
    485 #dashboard-widgets .widget_rss ul li {
    486         clear: both;
    487 }
    488 
    489 #dashboard-widgets .widget_rss ul li span.rss-date {
    490         float: left;
    491         margin: .5em 0 1em;
    492 }
    493 
    494 #dashboard-widgets .widget_rss ul li a {
    495         float: left;
    496         margin: .5em .5em 1em 0;
    497         font-weight: bold;
    498 }
    499 
    500 #dashboard-widgets .widget_rss ul li div {
    501         clear: both;
    502 }
    503 /* ]]> */
    504 </style>
    505 <?php
    506 }
    507 
    508 add_action( 'admin_head', 'temp_dashboard_css' );
    509 
    510 ?>
  • trunk/wp-admin/index-extra.php

    r6705 r6810  
    9696?>
    9797</ul>
     98<br class="clear" />
    9899<?php
    99100}
  • trunk/wp-admin/index.php

    r6809 r6810  
    2020}
    2121add_action( 'admin_head', 'index_js' );
     22
     23function index_css() {
     24        wp_admin_css( 'css/dashboard' );
     25}
     26add_action( 'admin_head', 'index_css' );
    2227
    2328wp_enqueue_script( 'jquery' );
     
    8186</div><!-- rightnow -->
    8287
     88<br class="clear" />
     89
    8390<?php wp_dashboard(); ?>
    8491
  • trunk/wp-admin/wp-admin.css

    r6794 r6810  
    894894.niceblue tr {
    895895        background: #eaf3fa;
    896 }
    897 
    898 /* Dashboard stuff, possibly to go in separate file? */
    899 
    900 #rightnow {
    901         border: 1px solid #ccc;
    902         padding: 2px;
    903         margin-top: 10px;
    904 }
    905 
    906 #rightnow .reallynow {
    907         background: #d54e21;
    908         padding: 12px;
    909         color: #fff;
    910         font-size: 15px;
    911         margin: 0;
    912 }
    913 
    914 #rightnow .rbutton {
    915         background: #ebebeb;
    916         -moz-border-radius: 5px;
    917         padding: 6px;
    918         font-weight: normal;
    919         color: #264761;
    920         border-bottom: none;
    921 }
    922 
    923 #rightnow .reallynow a {
    924         float: right;
    925         margin-left: 5px;
    926         font-size: 14px;
    927         margin-top: -24px;
    928 }
    929 
    930 #rightnow .youhave {
    931         background: #f0f6fb;
    932         font-size:  14px;
    933         padding: 10px;
    934 }
    935 
    936 #rightnow p {
    937         padding: 0 10px;
    938 }
    939 
    940 #rightnow a {
    941         color: #448abd;
    942         font-weight: bold;
    943         border-bottom: 1px solid #448abd;
    944896}
    945897
Note: See TracChangeset for help on using the changeset viewer.