stephenmcd / grappelli-safe

Admin skin for Mezzanine
Other
25 stars 59 forks source link

Style tel input fields the same as text/email/etc. #99

Open dbischof opened 3 years ago

dbischof commented 3 years ago

Now that input[type="tel"] fields are becoming more common, ideally they would be styled the same as similar fields (namely in height & padding).

This can be achieved with adding a line to /grappelli_safe/static/grappelli/css/forms.css:

/*  Text inputs ................................................... */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="tel"],       /* Add this line */
input[type="number"] {
    padding: 5px 3px 4px;
    height: 14px;
}
jerivas commented 3 years ago

Thanks! Would you like to submit the change as a PR?