1
mirror of https://github.com/pure-css/pure synced 2025-03-13 06:24:28 +01:00

Reduce padding/add room on color input for Chrome (v32/34 OS X).

This commit is contained in:
Jon Petto 2014-01-28 20:28:01 -06:00
parent 49f78812dc
commit b6076530b4
2 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,12 @@
box-sizing: border-box;
}
/* Chrome (as of v.32/34 on OS X) needs additional room for color to display. */
/* May be able to remove this tweak as color inputs become more standardized across browsers. */
.pure-form input[type="color"] {
padding: 0.2em 0.5em;
}
.pure-form input:not([type]):focus,
.pure-form input[type="text"]:focus,
.pure-form input[type="password"]:focus,

View File

@ -106,6 +106,9 @@
<option>NY</option>
</select>
<label>Color</label>
<input type="color">
<label class="pure-checkbox">
<input type="checkbox"> I've read the terms and conditions
</label>