settings page adjustments

This commit is contained in:
Matthias Kretschmann 2013-11-09 19:50:56 +01:00
parent 78b0f18bbf
commit 6f24c7ca59
2 changed files with 11 additions and 4 deletions

View File

@ -12,11 +12,14 @@ input.button-primary {
transition: all .2s ease-in-out 0s;
}
#badgedoptions form h2 {
#badgedoptions form h3 {
border-bottom: 1px solid #eee;
border-top: 1px solid #eee;
margin-top: .5em;
padding: 10px 0;
font-family: HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",sans-serif;
font-size: 18px;
font-weight: 400;
}
#badgedoptions footer {
@ -38,6 +41,10 @@ input.button-primary {
margin-bottom: 3em;
}
#badgedoptions .radio-row {
margin-bottom: 0;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and ( min--moz-device-pixel-ratio: 1.5),

View File

@ -352,7 +352,7 @@ class Badged {
add_settings_field(
'Badged Style',
__( 'Badged Style', 'badged' ),
__( 'Set Style', 'badged' ),
array( $this, 'badged_style_settings_radios_callback' ),
'badged_settings',
'badged_style_section'
@ -372,12 +372,12 @@ class Badged {
$options = get_option( 'badged_settings' );
$html = '<p>';
$html = '<p class="radio-row">';
$html .= '<input type="radio" id="style_ios7" name="badged_settings[style]" value="ios7"' . checked( 'ios7', $options['style'], false ) . '/>';
$html .= '&nbsp;';
$html .= '<label for="style_ios7">iOS 7</label>';
$html .= '</p>';
$html .= '<p>';
$html .= '<p class="radio-row">';
$html .= '<input type="radio" id="style_ios6" name="badged_settings[style]" value="ios6"' . checked( 'ios6', $options['style'], false ) . '/>';
$html .= '&nbsp;';
$html .= '<label for="style_ios6">iOS 6</label>';