Make WordPress Core


Ignore:
Timestamp:
02/07/2008 09:57:54 PM (17 years ago)
Author:
ryan
Message:

Widget interface updates from mdawaffe. see #5583

File:
1 edited

Legend:

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

    r6726 r6754  
    206206}
    207207
    208 function temp_widget_css() {
    209 ?>
    210 
    211 <style type="text/css">
    212 /* 2 column liquid layout */
    213 div.widget-liquid-left-holder {
    214     float: left;
    215     clear: left;
    216     width: 100%;
    217     margin-right: -310px;
    218 }
    219 
    220 div.widget-liquid-left {
    221     margin-right: 310px;
    222 }
    223 
    224 div.widget-liquid-right {
    225     float: right;
    226     clear: right;
    227     width: 300px;
    228 }
    229 
    230 p.submit {
    231     clear: both;
    232 }
    233 
    234 /* pasitioning etc. */
    235 form#widgets-filter {
    236     position: relative;
    237 }
    238 
    239 p#widget-search {
    240     position: absolute;
    241     right: 0;
    242     top: 0;
    243     margin: 0;
    244 }
    245 
    246 ul#widget-list {
    247     list-style: none;
    248     margin: 0;
    249     padding: 0;
    250 }
    251 
    252 ul#widget-list li.widget-list-item {
    253     padding: .7em 1em;
    254     margin: 0;
    255     border-top:    1px solid #ccc;
    256     border-bottom: 1px solid #ccc;
    257     background-color: transparent;
    258     line-height: 1;
    259 }
    260 
    261 ul#widget-list li.widget-list-item h4.widget-title {
    262     position: relative;
    263     margin: 0;
    264     padding: .5em 1em;
    265     width: 200px;
    266     float: left;
    267     background-color: #ccc;
    268     color: #000;
    269 }
    270 
    271 #dragHelper h4.widget-title {
    272     color: #fff;
    273     background-color: #2683ae;
    274     padding: .5em 1em;
    275     margin: 0;
    276 }
    277 
    278 ul#widget-list li.widget-list-item div.widget-description {
    279     display: block;
    280     margin: 0 0 0 200px;
    281     padding: 0 0 0 4em;
    282 }
    283 
    284 
    285 ul#widget-list li.widget-list-item ul.widget-control-info {
    286     display: none;
    287 }
    288 
    289 div#sidebar-info {
    290     padding: 0 1em;
    291     margin-bottom: 1em;
    292 }
    293 
    294 ul.widget-control-list {
    295     list-style: none;
    296     margin: 0;
    297     padding: 0 1em;
    298 }
    299 
    300 li.widget-list-control-item {
    301     background-color: #eaf3fa;
    302     margin: 0 0 1em;
    303 }
    304 
    305 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 {
    306     position: relative;
    307     margin: 0;
    308     background-color: #2683ae;
    309     padding: .5em 1em;
    310     color: #fff;
    311 }
    312 
    313 div.widget-control a.widget-action, div.widget-control a.widget-action:hover {
    314     padding: .5em 1em;
    315 }
    316 
    317 h4.widget-title a {
    318     position: absolute;
    319     right: 1em;
    320     text-decoration: underline;
    321     border-bottom: none;
    322 }
    323 
    324 li.widget-list-control-item h4.widget-title a, li.widget-list-control-item h4.widget-title a:visited {
    325     color: #fff;
    326 }
    327 
    328 li.widget-list-control-item h4.widget-title a:hover {
    329     color: #fff;
    330     text-decoration: none;
    331     border-bottom: none;
    332 }
    333 
    334 li.widget-list-control-item div.widget-control {
    335     display: none;
    336     margin: 1em;
    337     padding: 0 10px 0 0; /* Correction for padding, margin, border of inputs */
    338 }
    339 
    340 li.widget-list-control-item div.widget-control p {
    341     margin: 0 0 1em;
    342     padding: 0;
    343 }
    344 
    345 ul.widget-control-list div.widget-control-actions {
    346     margin-right: -10px; /* Correction for padding, margin, border of inputs */
    347     padding: 0 0 1em;
    348 }
    349 
    350 ul.widget-control-list .sorthelper {
    351     background-color: #ccf3fa;
    352 
    353 }
    354 
    355 #current-widgets .drop-widget-here {
    356     background-color: #ffc
    357 }
    358 
    359 ul.widget-control-list select option {
    360 }
    361 </style>
    362 
    363 <?php
    364 }
    365 
    366 add_action( 'admin_head', 'temp_widget_css' );
    367 
    368 ?>
     208function widget_css() {
     209    wp_admin_css( 'css/widgets' );
     210}
     211
     212add_action( 'admin_head', 'widget_css' );
     213
     214?>
Note: See TracChangeset for help on using the changeset viewer.