Archived topic
Add input[type=number] to field styling
4 replies · Started by Anders on June 22, 2017
I suggest adding input[type=number] to the theme field styling:
input[type=text],input[type=email],input[type=url],input[type=password],input[type=tel],input[type=search],textarea {
background:#FAFAFA;
color:#666;
border:1px solid #ccc;
border-radius:0;
padding:10px 15px;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
max-width:100%
}
input[type=text]:focus,input[type=email]:focus,input[type=url]:focus,input[type=password]:focus,input[type=tel]:focus,input[type=search]:focus,textarea:focus {
color:#111;
background:#FFF
}
I know I would be able to add some custom CSS to style number fields. But I believe is could be implemented in the theme default css =)
I wonder what the field would look like if someone gave it a dark background? How would the arrows look etc..?
I'll definitely look into it :)
I just made this change for the next version.
Thanks! :)
Hey Tom!
Nice to hear that want to make the suggested changes. Although I don't see it 1.3.48.
Is it planned for a future release?
/Anders
It will be in 1.3.49. You can download the release candidate here: https://tomusborne.com/dev/temp/generatepress.zip