Field styling

This commit is contained in:
Mike Jolley 2017-06-30 14:59:45 +01:00
parent 25c9219849
commit d6131f3a74
4 changed files with 13 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3050,8 +3050,17 @@ img.help_tip {
display: block;
}
// Give regular settings inputs a standard width and padding.
select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input.regular-input {
width: 400px;
margin: 0;
padding: 6px;
box-sizing: border-box;
}
textarea.wide-input {
@ -3135,7 +3144,7 @@ img.help_tip {
}
.colorpickpreview {
padding: 3px;
padding: 6px;
padding-left: 20px;
border: 1px solid #ddd;
/* rtl:ignore */

View File

@ -51,14 +51,13 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'Store Address', 'woocommerce' ),
'type' => 'title',
'desc' => __( 'This is where your business is located. Tax rates and shipping rates will use this address.', 'woocommerce' ),
'id' => 'store_address'
'id' => 'store_address',
),
array(
'title' => __( 'Address line 1', 'woocommerce' ),
'desc' => __( 'The street address for your business location.', 'woocommerce' ),
'id' => 'woocommerce_store_address',
'css' => 'min-width:350px;',
'default' => '',
'type' => 'text',
'desc_tip' => true,
@ -68,7 +67,6 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'Address line 2', 'woocommerce' ),
'desc' => __( 'An additional, optional address line for your business location.', 'woocommerce' ),
'id' => 'woocommerce_store_address_2',
'css' => 'min-width:350px;',
'default' => '',
'type' => 'text',
'desc_tip' => true,
@ -78,7 +76,6 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'City', 'woocommerce' ),
'desc' => __( 'The city in which your business is located.', 'woocommerce' ),
'id' => 'woocommerce_store_city',
'css' => 'min-width:350px;',
'default' => '',
'type' => 'text',
'desc_tip' => true,
@ -88,7 +85,6 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'Country / State', 'woocommerce' ),
'desc' => __( 'The country and state or province, if any, in which your business is located.', 'woocommerce' ),
'id' => 'woocommerce_default_country',
'css' => 'min-width:350px;',
'default' => 'GB',
'type' => 'single_select_country',
'desc_tip' => true,
@ -216,7 +212,6 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'Currency', 'woocommerce' ),
'desc' => __( 'This controls what currency prices are listed at in the catalog and which currency gateways will take payments in.', 'woocommerce' ),
'id' => 'woocommerce_currency',
'css' => 'min-width:350px;',
'default' => 'GBP',
'type' => 'select',
'class' => 'wc-enhanced-select',
@ -228,7 +223,6 @@ class WC_Settings_General extends WC_Settings_Page {
'title' => __( 'Currency position', 'woocommerce' ),
'desc' => __( 'This controls the position of the currency symbol.', 'woocommerce' ),
'id' => 'woocommerce_currency_pos',
'css' => 'min-width:350px;',
'class' => 'wc-enhanced-select',
'default' => 'left',
'type' => 'select',