Color scheme switcher styling from mt. fixes #6178

git-svn-id: https://develop.svn.wordpress.org/trunk@7259 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-12 02:35:22 +00:00
parent 928a671565
commit 40caffb433
2 changed files with 32 additions and 16 deletions

View File

@ -158,24 +158,23 @@ include ('admin-header.php');
<td> <td>
<?php <?php
foreach ( $_wp_admin_css_colors as $color => $color_info ): ?> foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
<p><label> <label class="color-option"><input name="admin_color" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, get_user_option('admin_color')); ?> />
<input name="admin_color" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, get_user_option('admin_color')); ?> /> <table class="color-palette">
<?php echo $color_info->name ?> <tr>
</label></p> <?php
<table> foreach ( $color_info->colors as $color ): ?>
<tr> <td style="background-color: <?php echo $color ?>" title="<?php echo $color ?>"></td>
<?php <?php endforeach; ?>
foreach ( $color_info->colors as $color ): ?> </tr>
<td style="background-color: <?php echo $color ?>" title="<?php echo $color ?>"></td> </table>
<?php endforeach; ?>
</tr> <?php echo $color_info->name ?>
</table> </label>
<?php endforeach; ?> <?php endforeach; ?>
</td> </td>
</tr> </tr>
</table> </table>
<?php <?php
if ( $is_profile_page ) { if ( $is_profile_page ) {
do_action('profile_personal_options'); do_action('profile_personal_options');

View File

@ -812,13 +812,30 @@ html, body {
border-style: solid; border-style: solid;
} }
#profile-page .form-table input { .form-table label.color-option {
width: 200px; display: block;
clear: both;
}
.form-table input.tog {
margin-top: 2px;
margin-right: 2px;
float: left;
}
.form-table table.color-palette {
vertical-align: bottom;
float: left;
margin: -3px 3px 8px;
}
.form-table .color-palette td {
border-bottom: none;
border: 1px solid #fff;
} }
#profile-page .form-table textarea { #profile-page .form-table textarea {
width: 500px; width: 500px;
height: 150px;
margin-bottom: 6px; margin-bottom: 6px;
} }