Changeset 7882
- Timestamp:
- 05/04/2008 02:05:38 AM (17 years ago)
- Location:
- branches/2.5
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/css/widgets-rtl.css
r7779 r7882 39 39 } 40 40 41 li.widget-list-control-item div.widget-control {42 padding:0 0 0 10px;43 }44 41 ul.widget-control-list div.widget-control-actions { 45 42 margin-right:0; 46 43 margin-left:-10px; 47 44 } 48 ul.widget-control-list .widget-title { 49 text-align:right; 45 ul.widget-control-list h4.widget-title, 46 #dragHelper h4.widget-title { 47 text-align: right; 48 padding: 0.4em 0.8em 0.4em 2.5em; 50 49 } -
branches/2.5/wp-admin/css/widgets.css
r7779 r7882 75 75 } 76 76 77 78 77 ul#widget-list li.widget-list-item ul.widget-control-info { 79 78 display: none; … … 92 91 } 93 92 94 ul.widget-control-list li {95 position: relative;96 }97 98 93 div#current-widgets p.submit { 99 94 padding: 1em; … … 101 96 102 97 li.widget-list-control-item { 103 margin: 0 0 1em;98 margin: 1em 0; 104 99 -moz-border-radius: 3px; 105 100 -khtml-border-radius: 3px; … … 108 103 } 109 104 110 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4, li.widget-sortable h4 { 105 li.widget-list-control-item h4, 106 #dragHelper li.widget-list-control-item h4, 107 li.widget-sortable h4 { 111 108 margin: 0; 112 padding: 0.4em 2.5em 0.4em 0.8em;113 109 cursor: move; 114 110 font-size: 13px; 111 padding: 0.4em 2.5em 0.4em 0.8em; 112 position: relative; 115 113 -moz-border-radius: 3px; 116 114 -khtml-border-radius: 3px; … … 144 142 145 143 li.widget-list-control-item h4.widget-title a:hover { 146 147 144 text-decoration: none; 148 145 border-bottom: none; … … 151 148 li.widget-list-control-item div.widget-control { 152 149 display: none; 153 margin: 1em; 154 padding: 0 10px 0 7px; /* Correction for padding, margin, border of inputs */ 150 padding: 15px; 155 151 font-size: 11px; 152 position: relative; 153 background-color: #CFEBF7; 156 154 } 157 155 … … 162 160 163 161 ul.widget-control-list div.widget-control-actions { 164 margin-right: -10px; /* Correction for padding, margin, border of inputs */165 margin-left: -6px;166 162 border-top-width: 1px; 167 163 border-top-style: solid; 168 padding: 0.5em 0 0.8em; 169 } 170 171 ul.widget-control-list .widget-title { 172 164 padding: 0.5em 0 0; 173 165 } 174 166 -
branches/2.5/wp-admin/includes/widgets.php
r7725 r7882 228 228 echo $sidebar_args['before_widget']; 229 229 ?> 230 <div class="widget-top"> 230 231 <h4 class="widget-title"><?php echo $widget_title ?> 231 232 … … 240 241 <?php endif; ?> 241 242 242 </h4> 243 </h4></div> 243 244 244 245 <div class="widget-control"<?php if ( $edit ) echo ' style="display: block;"'; ?>> -
branches/2.5/wp-admin/js/widgets.js
r7621 r7882 14 14 if ( disableFields ) { t.find( ':input:enabled' ).not( '[name="widget-id[]"], [name*="[submit]"]' ).attr( 'disabled', 'disabled' ); } 15 15 li.css( 'marginLeft', 0 ); 16 t.siblings(' h4').children('a').text( widgetsL10n.edit );16 t.siblings('div').children('h4').children('a').text( widgetsL10n.edit ); 17 17 } else { 18 18 t.find( ':disabled' ).attr( 'disabled', '' ); // always enable on open 19 19 if ( width > 250 ) 20 20 li.css( 'marginLeft', ( width - 250 ) * -1 ); 21 t.siblings(' h4').children('a').text( widgetsL10n.cancel );21 t.siblings('div').children('h4').children('a').text( widgetsL10n.cancel ); 22 22 } 23 23 t.toggle(); … … 29 29 if ( width > 250 ) 30 30 li.animate( { marginLeft: 0 } ); 31 t.siblings(' h4').children('a').text( widgetsL10n.edit );31 t.siblings('div').children('h4').children('a').text( widgetsL10n.edit ); 32 32 } else { 33 33 t.find( ':disabled' ).attr( 'disabled', '' ); // always enable on open 34 34 if ( width > 250 ) 35 35 li.animate( { marginLeft: ( width - 250 ) * -1 } ); 36 t.siblings(' h4').children('a').text( widgetsL10n.cancel );36 t.siblings('div').children('h4').children('a').text( widgetsL10n.cancel ); 37 37 } 38 38 t.animate( { height: 'toggle' } ); -
branches/2.5/wp-admin/widgets.php
r7779 r7882 135 135 <ul class="widget-control-list"> 136 136 <li class="widget-list-control-item"> 137 <div class="widget-top"> 137 138 <h4 class="widget-title"><?php echo $control['name']; ?></h4> 139 </div> 138 140 <div class="widget-control" style="display: block;"> 139 141 <?php -
branches/2.5/wp-includes/script-loader.php
r7865 r7882 188 188 'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.") 189 189 ) ); 190 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080 407c' );190 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080503' ); 191 191 $this->localize( 'admin-widgets', 'widgetsL10n', array( 192 192 'add' => __('Add'),
Note: See TracChangeset
for help on using the changeset viewer.