diff options
| author | Mark Otto <[email protected]> | 2013-05-15 10:14:21 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-05-15 10:14:21 -0700 |
| commit | bae9d8adf04f76c859826cd98ed2316c7c2f4fdc (patch) | |
| tree | 68e21fbac6ec046de9b3cf8c7c360d01b99c97e6 /less | |
| parent | 6307dc40d738653d2fdf8c2316e27586fa8e975f (diff) | |
| parent | 6289e24f6663e7465b9a902e70190b41100d16ac (diff) | |
| download | bootstrap-bae9d8adf04f76c859826cd98ed2316c7c2f4fdc.tar.xz bootstrap-bae9d8adf04f76c859826cd98ed2316c7c2f4fdc.zip | |
Merge pull request #7897 from voodoom/outline-fix
#7896: Outline fix
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/less/forms.less b/less/forms.less index c7b376cda..c79f7f673 100644 --- a/less/forms.less +++ b/less/forms.less @@ -66,6 +66,12 @@ input[type="color"] { border-radius: @input-border-radius; .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); .transition(~"border-color linear .2s, box-shadow linear .2s"); + + &:focus { + border-color: rgba(82,168,236,.8); + outline: 0; + .box-shadow(0 0 8px rgba(82,168,236,.6)); + } } // Reset appearance properties for textual inputs and textarea @@ -97,32 +103,6 @@ textarea { height: auto; } -// Everything else -textarea, -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"] { - // Focus state - &:focus { - border-color: rgba(82,168,236,.8); - outline: 0; - outline: thin dotted \9; /* IE6-9 */ - //.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)"); - .box-shadow(0 0 8px rgba(82,168,236,.6)); - } -} - // Position radios and checkboxes better input[type="radio"], input[type="checkbox"] { @@ -145,7 +125,6 @@ select[size] { } // Focus for select, file, radio, and checkbox -select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { |
