Changeset 35273
- Timestamp:
- 10/19/2015 10:03:48 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r35219 r35273 1127 1127 -moz-box-sizing: border-box; 1128 1128 box-sizing: border-box; 1129 position: relative; 1129 1130 float: left; 1130 1131 margin: 0 1% 0 0; 1131 padding: 10px;1132 padding: 20px 10px 10px; 1132 1133 width: 24%; 1133 1134 background: #fff; … … 1137 1138 } 1138 1139 1139 .filter-group h4 { 1140 position: relative; 1140 .filter-group legend { 1141 position: absolute; 1142 top: 10px; 1143 display: block; 1141 1144 margin: 0; 1142 } 1143 1144 .filter-drawer ol { 1145 margin: 20px 0 0; 1145 padding: 0; 1146 font-size: 1em; 1147 font-weight: 600; 1148 } 1149 1150 .filter-drawer .filter-group-feature { 1151 margin: 28px 0 0; 1146 1152 list-style-type: none; 1147 1153 font-size: 12px; 1148 1154 } 1149 1155 1150 .filter-drawer li { 1156 .filter-drawer .filter-group-feature input, 1157 .filter-drawer .filter-group-feature label { 1151 1158 display: inline-block; 1152 vertical-align: top; 1153 margin: 5px 0; 1154 padding-right: 25px; 1155 width: 160px; 1156 list-style-type: none; 1159 margin: 7px 4px 7px 0; 1160 line-height: 16px; 1157 1161 } 1158 1162 … … 3519 3523 margin: 2px 0 0; 3520 3524 } 3525 3526 .filter-drawer .filter-group-feature input, 3527 .filter-drawer .filter-group-feature label { 3528 line-height: 25px; 3529 } 3521 3530 } 3522 3531 -
trunk/src/wp-admin/css/ie.css
r32984 r35273 397 397 } 398 398 399 #widget-list .widget, 400 .feature-filter .feature-group li { 399 #widget-list .widget { 401 400 display: inline; 402 }403 404 .feature-filter .feature-group li input {405 vertical-align: middle;406 401 } 407 402 … … 696 691 } 697 692 698 * html .feature-filter .feature-group li {699 width: 145px;700 }701 702 693 * html div.widget-liquid-left { 703 694 width: 99%; -
trunk/src/wp-admin/js/theme.js
r33820 r35273 961 961 962 962 // Make sure the add-new stays at the end 963 if ( page >= 1 ) {963 if ( ! themes.isInstall && page >= 1 ) { 964 964 $( '.add-new-theme' ).remove(); 965 965 } … … 983 983 984 984 // 'Add new theme' element shown at the end of the grid 985 if ( themes.data.settings.canInstall ) {985 if ( ! themes.isInstall && themes.data.settings.canInstall ) { 986 986 this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' ); 987 987 } -
trunk/src/wp-admin/theme-install.php
r35006 r35273 154 154 $feature_list = get_theme_feature_list(); 155 155 foreach ( $feature_list as $feature_name => $features ) { 156 echo '< divclass="filter-group">';156 echo '<fieldset class="filter-group">'; 157 157 $feature_name = esc_html( $feature_name ); 158 echo '< h4>' . $feature_name . '</h4>';159 echo '< ol class="feature-group">';158 echo '<legend>' . $feature_name . '</legend>'; 159 echo '<div class="filter-group-feature">'; 160 160 foreach ( $features as $feature => $feature_name ) { 161 161 $feature = esc_attr( $feature ); 162 echo '< li><input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';163 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label>< /li>';162 echo '<input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> '; 163 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label><br>'; 164 164 } 165 echo '</ol>';166 165 echo '</div>'; 166 echo '</fieldset>'; 167 167 } 168 168 ?>
Note: See TracChangeset
for help on using the changeset viewer.