Additional HTML5 INPUT types css for settings

On class-wc-admin-settings.php output_fields(), WooCommerce implements rendering for several HTML5 INPUT types, to be used on WooCommerce settings pages, but there's no CSS styling for most of them. This change implements the missing CSS declarations. Those can be useful for other plugins using the WooCommerce settings fields API.
This commit is contained in:
Marco Almeida 2018-08-08 17:44:46 +01:00 committed by GitHub
parent 11911aa2ea
commit 804342d3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -3512,6 +3512,14 @@
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="week"],
input[type="url"],
input[type="tel"],
input.regular-input {
width: 400px;
margin: 0;
@ -3519,6 +3527,18 @@
box-sizing: border-box;
vertical-align: top;
}
input[type="datetime-local"],
input[type="date"],
input[type="week"],
input[type="tel"] {
width: 200px;
}
input[type="time"] {
width: 100px;
}
select {
width: 400px;