diff options
| author | Mark Otto <[email protected]> | 2012-08-01 23:15:51 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-01 23:15:51 -0700 |
| commit | 148203067978a13aeadd2127b0ddf00299cb8e98 (patch) | |
| tree | e9337a14cb015e606f9d06540e9ec7637e7830e2 /less | |
| parent | 1e2edaef48e45c1a085cd21ad2cbf86cfe2c7c06 (diff) | |
| download | bootstrap-148203067978a13aeadd2127b0ddf00299cb8e98.tar.xz bootstrap-148203067978a13aeadd2127b0ddf00299cb8e98.zip | |
fixes #4207: redeclare box-shadow on .formFieldState() mixin so transitions work in WebKit
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/less/mixins.less b/less/mixins.less index 96ce23eca..c9b701cb6 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -170,14 +170,31 @@ // Style inputs accordingly .checkbox, .radio, - input, +input[type="text"], +input[type="password"], +input[type="datetime"], +input[type="datetime-local"], +input[type="date"], +input[type="month"], +input[type="time"], +input[type="week"], +input[type="number"], +input[type="email"], +input[type="url"], +input[type="search"], +input[type="tel"], +input[type="color"], select, textarea { color: @textColor; border-color: @borderColor; + .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work &:focus { border-color: darken(@borderColor, 10%); - .box-shadow(0 0 6px lighten(@borderColor, 20%)); + // Write out in full since the lighten() function isn't easily escaped + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); + -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%); } } // Give a small background color for input-prepend/-append |
