Make WordPress Core


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

Dashboard styling from mdawaffe. see #5750

File:
1 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 ?>
Note: See TracChangeset for help on using the changeset viewer.