Changeset 57572
- Timestamp:
- 02/08/2024 11:29:18 PM (10 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/forms.css
r57553 r57572 934 934 935 935 .color-palette { 936 display: table; 936 937 width: 100%; 937 938 border-spacing: 0; 938 939 border-collapse: collapse; 939 940 } 941 .color-palette .color-palette-shade, 940 942 .color-palette td { 943 display: table-cell; 941 944 height: 20px; 942 945 padding: 0; … … 1602 1605 } 1603 1606 1607 .form-table .color-palette .color-palette-shade, 1604 1608 .form-table .color-palette td { 1605 1609 display: table-cell; 1606 1610 width: 15px; 1607 } 1608 1609 .form-table table.color-palette { 1611 height: 30px; 1612 padding: 0; 1613 } 1614 1615 .form-table .color-palette { 1610 1616 margin-right: 10px; 1611 1617 } -
trunk/src/wp-admin/includes/misc.php
r57289 r57572 1039 1039 <input type="hidden" class="icon_colors" value="<?php echo esc_attr( wp_json_encode( array( 'icons' => $color_info->icon_colors ) ) ); ?>" /> 1040 1040 <label for="admin_color_<?php echo esc_attr( $color ); ?>"><?php echo esc_html( $color_info->name ); ?></label> 1041 <table class="color-palette"> 1042 <tr> 1041 <div class="color-palette"> 1042 <?php 1043 foreach ( $color_info->colors as $html_color ) { 1044 ?> 1045 <div class="color-palette-shade" style="background-color: <?php echo esc_attr( $html_color ); ?>"> </div> 1043 1046 <?php 1044 foreach ( $color_info->colors as $html_color ) { 1045 ?> 1046 <td style="background-color: <?php echo esc_attr( $html_color ); ?>"> </td> 1047 <?php 1048 } 1049 ?> 1050 </tr> 1051 </table> 1047 } 1048 ?> 1049 </div> 1052 1050 </div> 1053 1051 <?php
Note: See TracChangeset
for help on using the changeset viewer.