Changeset 9408
- Timestamp:
- 10/30/2008 03:03:00 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 5 edited
-
css/colors-fresh.css (modified) (6 diffs)
-
css/global.css (modified) (5 diffs)
-
index.php (modified) (1 diff)
-
js/postbox.js (modified) (3 diffs)
-
wp-admin.css (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-fresh.css
r9393 r9408 1 2 textarea, input, select {3 border-color: #dfdfdf;4 }5 1 6 2 #sidemenu-bg, … … 18 14 .form-table .pre, 19 15 .find-box-inside { 20 background-color: #f9f9f9;21 16 color: #333; 22 17 } … … 432 427 } 433 428 434 #ed_toolbar input, #ed_reply_toolbar input { 435 background: url( ../images/fade-butt.png ) #fff repeat-x 0 -2px; 429 #ed_toolbar input, 430 #ed_reply_toolbar input { 431 background: #fff url("../images/fade-butt.png") repeat-x 0 -2px; 436 432 } 437 433 … … 630 626 } 631 627 628 #ed_toolbar input { 629 border-color: #C3C3C3; 630 } 631 632 #ed_toolbar input:hover { 633 border-color: #aaa; 634 background: #ddd; 635 } 636 632 637 #poststuff .wp_themeSkin .mceStatusbar { 633 638 border-color: #EDEDED; … … 811 816 #editorcontainer, 812 817 #post-status-info, 813 # poststuff #titlewrap{818 #titlediv #title { 814 819 border-color: #dfdfdf; 815 820 } 816 821 817 # poststuff #titlewrap{822 #titlediv #title { 818 823 background-color: #fff; 819 824 } … … 822 827 background-color: #ddd; 823 828 color: #333; 829 } 830 831 #timestampdiv input { 832 border-color: #ddd; 824 833 } 825 834 -
trunk/wp-admin/css/global.css
r9396 r9408 1 /* http://meyerweb.com/eric/tools/css/reset/ */ 2 /* v1.0 | 20080212 */ 3 4 html, body, div, span, applet, object, iframe, 5 h1, h2, h3, h4, h5, h6, p, blockquote, pre, 6 a, abbr, acronym, address, big, cite, code, 7 del, dfn, em, font, img, ins, kbd, q, s, samp, 8 small, strike, strong, sub, sup, tt, var, 9 b, u, i, center, 10 dl, dt, dd, ol, ul, li, 11 fieldset, form, label, legend, 12 table, caption, tbody, tfoot, thead, tr, th, td { 13 margin: 0; 14 padding: 0; 15 border: 0; 16 outline: 0; 17 font-size: 100%; 18 vertical-align: baseline; 19 background: transparent; 20 } 21 body { 22 line-height: 1; 23 } 24 ol, ul { 25 list-style: none; 26 } 27 blockquote, q { 28 quotes: none; 29 } 30 blockquote:before, blockquote:after, 31 q:before, q:after { 32 content: ''; 33 content: none; 34 } 35 36 /* remember to define focus styles! */ 37 /* 38 :focus { 39 outline: 0; 40 } 41 */ 42 /* remember to highlight inserts somehow! */ 43 ins { 44 text-decoration: none; 45 } 46 del { 47 text-decoration: line-through; 48 } 49 50 /* tables still need 'cellspacing="0"' in the markup */ 51 table { 52 border-collapse: collapse; 53 border-spacing: 0; 54 } 55 /* end reset css */ 56 57 1 58 /* 2 column liquid layout */ 2 59 #wpwrap { … … 73 130 } 74 131 132 /* include margin and padding in the width calculation of input and textarea */ 133 input[type="text"], 134 textarea { 135 -moz-box-sizing: border-box; 136 -webkit-box-sizing: border-box; 137 -ms-box-sizing: border-box; /* ie8 only */ 138 box-sizing: border-box; 139 } 140 141 input[type="checkbox"], 142 input[type="radio"] { 143 vertical-align: text-top; 144 } 145 75 146 /* styles for use by people extending the WordPress interface */ 76 147 … … 84 155 } 85 156 86 form, label input { margin: 0; padding: 0; } 87 88 img { border: 0; } 89 90 label { cursor: pointer; } 91 92 li, dd { margin-bottom: 6px; } 93 94 p, li, dl, dd, dt { line-height: 140%; } 157 form, label input { 158 margin: 0; 159 padding: 0; 160 } 161 162 img { 163 border: 0; 164 } 165 166 label { 167 cursor: pointer; 168 } 169 170 li, dd { 171 margin-bottom: 6px; 172 } 173 174 p, li, dl, dd, dt { 175 line-height: 140%; 176 } 95 177 96 178 textarea, input, select { … … 98 180 margin: 1px; 99 181 padding: 3px; 100 border-width: 1px;101 border-style: solid;102 182 } 103 183 … … 206 286 -webkit-border-radius: 4px; 207 287 border-radius: 4px; 208 209 288 } 210 289 -
trunk/wp-admin/index.php
r9363 r9408 38 38 <?php wp_dashboard(); ?> 39 39 40 40 <div class="clear"></div> 41 41 </div><!-- dashboard-widgets-wrap --> 42 42 -
trunk/wp-admin/js/postbox.js
r9291 r9408 10 10 } ); 11 11 12 $('.hide-postbox-tog').click( function() { 13 var box = jQuery(this).val(); 14 if ( jQuery(this).attr('checked') ) { 15 jQuery('#' + box).show(); 16 if ( $.isFunction( postboxes.onShow ) ) { 17 postboxes.onShow( box ); 18 } 19 } else { 20 jQuery('#' + box).hide(); 21 } 12 $('.hide-postbox-tog').click( function() { 13 var box = jQuery(this).val(); 14 if ( jQuery(this).attr('checked') ) { 15 jQuery('#' + box).show(); 16 if ( $.isFunction( postboxes.pbshow ) ) 17 postboxes.pbshow( box ); 18 19 } else { 20 jQuery('#' + box).hide(); 21 if ( $.isFunction( postboxes.pbhide ) ) 22 postboxes.pbhide( box ); 23 24 } 22 25 postboxes.save_state(page); 23 26 } ); 24 27 25 this. makeItTall();28 this.expandSidebar(); 26 29 this.init(page,args); 27 30 }, 28 29 makeItTall : function() {30 var t = $('#make-it-tall').remove();31 31 32 if ( t.length < 1 ) 33 t = $.browser.mozilla ? '<div id="make-it-tall" style="margin-bottom: -2000px; padding-bottom: 2001px"></div>' : '<div id="make-it-tall"> <br /> <br /></div>'; 34 35 $('#side-sortables').append(t); 36 37 if ( $('#side-sortables').children().length > 1 ) 38 $('#side-sortables').css({'minHeight':'300px'}); 39 40 $('#wpbody-content').css( 'overflow', 'hidden' ); 41 }, 42 43 expandSidebar : function( doIt ) { 44 if ( doIt || $.trim( $( '#side-info-column' ).text() ) ) { 45 $( '#post-body' ).addClass( 'has-sidebar' ); 46 $( '#side-sortables' ).css('z-index','0'); 32 expandSidebar : function(doIt) { 33 if ( doIt || $('#side-sortables > .postbox:visible').length ) { 34 $('#post-body').addClass('has-sidebar'); 35 $('#side-sortables').height( $('#post-body').height() ); 47 36 } else { 48 $( '#post-body' ).removeClass( 'has-sidebar');49 $( '#side-sortables' ).css('z-index','-1');37 $('#post-body').removeClass('has-sidebar'); 38 $('#side-sortables').height('0') 50 39 } 51 40 }, 52 41 53 init : function(page, args) {42 init : function(page, args) { 54 43 $.extend( this, args || {} ); 55 jQuery('.meta-box-sortables').sortable( {44 $('.meta-box-sortables').sortable( { 56 45 placeholder: 'sortable-placeholder', 57 46 connectWith: [ '.meta-box-sortables' ], … … 60 49 distance: 2, 61 50 tolerance: 'pointer', 62 receive: function() { 63 postboxes.makeItTall(); 51 sort: function(e,ui) { 52 if ( $(document).width() - e.clientX < 300 ) { 53 if ( ! $('#post-body').hasClass('has-sidebar') ) { 54 var pos = $('#side-sortables').offset(); 55 56 $('#side-sortables').append(ui.item) 57 $(ui.placeholder).css({'top':pos.top,'left':pos.left}).width($(ui.item).width()) 58 postboxes.expandSidebar(1); 59 } 60 } 64 61 }, 65 62 stop: function() { 66 if ( $('#side-sortables').children().length < 2 )67 $('#side-sortables').css({'minHeight':''});68 69 63 var postVars = { 70 64 action: 'meta-box-order', 71 _ajax_nonce: jQuery('#meta-box-order-nonce').val(),65 _ajax_nonce: $('#meta-box-order-nonce').val(), 72 66 page: page 73 67 } 74 jQuery('.meta-box-sortables').each( function() {75 postVars["order[" + this.id.split('-')[0] + "]"] = jQuery(this).sortable( 'toArray' ).join(',');68 $('.meta-box-sortables').each( function() { 69 postVars["order[" + this.id.split('-')[0] + "]"] = $(this).sortable( 'toArray' ).join(','); 76 70 } ); 77 jQuery.post( postboxL10n.requestFile, postVars, function() {71 $.post( postboxL10n.requestFile, postVars, function() { 78 72 postboxes.expandSidebar(); 79 73 } ); 80 },81 over: function(e, ui) {82 if ( !ui.element.is( '#side-sortables' ) )83 return;84 postboxes.expandSidebar( true );85 74 } 86 75 } ); … … 97 86 page: page 98 87 }); 88 postboxes.expandSidebar(); 99 89 }, 100 90 101 91 /* Callbacks */ 102 onShow : false 92 pbshow : false, 93 94 pbhide : false 103 95 }; 104 96 105 $(document).ready(function(){postboxes.expandSidebar();});106 107 97 }(jQuery)); -
trunk/wp-admin/wp-admin.css
r9402 r9408 449 449 450 450 #ed_toolbar input { 451 margin: 3px 2px 2px; 452 padding: 2px 4px; 451 margin: 3px 2px 4px; 453 452 line-height: 18px; 454 453 display: inline-block; 454 border-width: 1px; 455 border-style: solid; 456 min-width: 26px; 457 padding: 2px 4px; 458 font-size: 13px; 459 -moz-border-radius: 3px; 460 -khtml-border-radius: 3px; 461 -webkit-border-radius: 3px; 462 border-radius: 3px; 455 463 } 456 464 … … 473 481 #ed_reply_toolbar #ed_reply_code { 474 482 font-family: "Courier New", Courier, mono; 475 font-size: 1.1em;476 483 vertical-align: top; 477 484 } … … 1487 1494 } 1488 1495 1496 .ui-sortable .postbox h3 { 1497 cursor: pointer; 1498 } 1499 1500 .ui-sortable .postbox .hndle span { 1501 padding: 6px 0; 1502 } 1503 .ui-sortable .postbox .hndle { 1504 cursor: move; 1505 } 1506 1507 .sortable-placeholder { 1508 border: 1px dashed #bbb; 1509 background-color: #f5f5f5; 1510 z-index: -1; 1511 } 1512 1489 1513 #poststuff h3, 1490 1514 .metabox-holder h3 { … … 1537 1561 } 1538 1562 1563 #poststuff #titlewrap { 1564 border: 0; 1565 padding: 0; 1566 1567 } 1568 1539 1569 #titlediv #title { 1540 border: 0;1541 padding: 0;1542 font-size: 1.7em;1543 width: 100%;1544 outline: none;1545 }1546 1547 #poststuff #titlewrap {1548 1570 padding: 3px 4px; 1549 1571 border-width: 1px; … … 1553 1575 -webkit-border-radius: 6px; 1554 1576 border-radius: 6px; 1577 font-size: 1.7em; 1578 width: 100%; 1579 outline: none; 1555 1580 } 1556 1581 … … 2082 2107 } 2083 2108 2084 .ui-sortable .postbox h3 { 2085 cursor: pointer; 2086 } 2087 2088 .ui-sortable .postbox .hndle span { 2089 padding: 6px 0; 2090 } 2091 .ui-sortable .postbox .hndle { 2092 cursor: move; 2093 } 2094 2095 .sortable-placeholder { 2096 border: 1px #bbb dashed; 2097 background-color: #f5f5f5; 2098 z-index: -1; 2099 } 2109 #timestampdiv select { 2110 height: 20px; 2111 line-height: 20px; 2112 padding: 0; 2113 } 2100 2114 2101 2115 #jj, #hh, #mn { 2102 width: 1.5em;2116 width: 2em; 2103 2117 padding: 1px; 2118 font-size: 12px; 2104 2119 } 2105 2120 2106 2121 #aa { 2107 width: 2.7em;2122 width: 3.4em; 2108 2123 padding: 1px; 2124 font-size: 12px; 2109 2125 } 2110 2126 … … 2117 2133 #timestampdiv { 2118 2134 padding-top: 3px; 2135 line-height: 23px; 2136 } 2137 2138 #timestampdiv p { 2139 margin: 8px 0 6px; 2140 } 2141 2142 #timestampdiv input { 2143 border-width: 1px; 2144 border-style: solid; 2119 2145 } 2120 2146
Note: See TracChangeset
for help on using the changeset viewer.