Ticket #28794: drawer-grouping-2.diff
File drawer-grouping-2.diff, 2.9 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
1055 1055 .wp-filter-drawer { 1056 1056 display: none; 1057 1057 margin: 0 -20px; 1058 padding: 20px;1058 padding: 15px; 1059 1059 border-top: 1px solid #eee; 1060 1060 background: #fafafa; 1061 1061 } … … 1091 1091 -moz-box-sizing: border-box; 1092 1092 box-sizing: border-box; 1093 1093 float: left; 1094 margin: 0 1% 0 0;1094 margin: 5px; 1095 1095 padding: 10px; 1096 1096 width: 19%; 1097 1097 background: #fff; … … 1100 1100 box-shadow: 0 1px 1px rgba(0,0,0,0.04); 1101 1101 } 1102 1102 1103 .wp-filter-group-wide { 1103 .wp-filter-group-1-5 { 1104 width: 19%; 1105 width: -webkit-calc(20% - 10px); 1106 width: calc(20% - 10px); 1107 } 1108 1109 .wp-filter-group-2-5 { 1104 1110 width: 38%; 1111 width: -webkit-calc(40% - 10px); 1112 width: calc(40% - 10px); 1105 1113 } 1106 1114 1115 .wp-filter-group-3-5 { 1116 width: 57%; 1117 width: -webkit-calc(60% - 10px); 1118 width: calc(60% - 10px); 1119 } 1120 1121 .wp-filter-group-4-5 { 1122 width: 76%; 1123 width: -webkit-calc(80% - 10px); 1124 width: calc(80% - 10px); 1125 } 1126 1107 1127 .wp-filter-group-title { 1108 1128 position: relative; 1109 1129 margin: 0; … … 1125 1145 } 1126 1146 1127 1147 .wp-filter-drawer-buttons { 1128 margin -bottom: 20px;1148 margin: 5px 5px 15px; 1129 1149 } 1130 1150 1131 1151 .wp-filter .wp-filter-drawer-buttons .button span { … … 1137 1157 1138 1158 .wp-filter .button.clear-filters { 1139 1159 display: none; 1140 margin : 0 0 20px10px;1160 margin-left: 10px; 1141 1161 } 1142 1162 1143 1163 .wp-filter-by { 1144 1164 display: none; 1145 margin: 0;1165 margin: 5px; 1146 1166 } 1147 1167 1148 1168 .wp-filter-by > span { … … 1168 1188 } 1169 1189 1170 1190 body.filters-applied .wp-filter-group, 1171 body.filters-applied .wp-filter-drawer a.button,1191 body.filters-applied .wp-filter-drawer-buttons, 1172 1192 body.filters-applied .wp-filter-drawer br { 1173 1193 display: none !important; 1174 1194 } … … 1213 1233 } 1214 1234 1215 1235 .wp-filter-group { 1216 margin-bottom: 0; 1217 margin-top: 5px; 1218 width: 100%; 1236 width: 98%; 1237 width: calc(100% - 10px); 1219 1238 } 1220 1239 1221 1240 .wp-filter-group li { … … 1224 1243 } 1225 1244 1226 1245 @media only screen and (max-width: 782px) { 1227 .wp-filter-group, 1246 .wp-filter-group { 1247 width: 98%; 1248 width: calc(100% - 10px); 1249 } 1250 1228 1251 .wp-filter-group li { 1229 1252 width: 100%; 1230 1253 } -
src/wp-admin/theme-install.php
156 156 $feature_list = get_theme_feature_list(); 157 157 foreach ( $feature_list as $feature_name => $features ) { 158 158 if ( $feature_name === 'Features' || $feature_name === __( 'Features' ) ) { // hack hack hack 159 echo '<div class="wp-filter-group wp-filter-group- wide">';159 echo '<div class="wp-filter-group wp-filter-group-2-5">'; 160 160 } else { 161 echo '<div class="wp-filter-group ">';161 echo '<div class="wp-filter-group wp-filter-group-1-5">'; 162 162 } 163 163 $feature_name = esc_html( $feature_name ); 164 164 echo '<h4 class="wp-filter-group-title">' . $feature_name . '</h4>';