1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Switch styling

This commit is contained in:
Cameron
2017-02-10 09:52:40 -08:00
parent 8152f6265d
commit cb4b964f61
2 changed files with 5 additions and 5 deletions

View File

@@ -2322,16 +2322,15 @@ class e_form
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
}
if(deftrue('e_DEBUG') && e_ADMIN_AREA === true && empty($label_enabled) && empty($label_disabled))
if(deftrue('e_DEBUG') && e_ADMIN_AREA === true)
{
$options['switch'] = 'small';
$options['wrapperClass'] = 'wrapper form-control';
$label_enabled = strtoupper(LAN_ON);
$label_disabled = strtoupper(LAN_OFF);
$label_enabled = ($label_enabled) ? strtoupper($label_enabled) : strtoupper(LAN_ON);
$label_disabled = ($label_disabled) ? strtoupper($label_disabled): strtoupper(LAN_OFF);
}
$options_on['label'] = $label_enabled ? defset($label_enabled, $label_enabled) : LAN_ENABLED;
$options_off['label'] = $label_disabled ? defset($label_disabled, $label_disabled) : LAN_DISABLED;

View File

@@ -223,6 +223,7 @@ a.tweet_action { font-size:8px }
.bootstrap-switch .bootstrap-switch-label { background: inherit }
.bootstrap-switch.form-control { padding:0; height:auto }
td.center .bootstrap-switch.form-control { margin-left: auto; margin-right: auto; }
/*