Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-05-15 20:07:31 +0400
committerMark Otto <markotto@twitter.com>2012-05-15 20:07:31 +0400
commit6be09df1bfc71d46d60e7acadb7844c282b80637 (patch)
treedb45191c5eae25f3f0391f0edb9077002cb59aeb
parenta9d4b667ff6349a54cdd470c82c7ef3c88de4165 (diff)
parent532569fe59bbc8a1a74d7984279749f736cbdd3a (diff)
Merge branch '2.0.4-wip-forms' of github.com:twitter/bootstrap into 2.0.4-wip-forms
-rw-r--r--less/forms.less39
1 files changed, 16 insertions, 23 deletions
diff --git a/less/forms.less b/less/forms.less
index d70dd9c4dd..606446638e 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -117,6 +117,14 @@ input[type="color"],
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
@transition: border linear .2s, box-shadow linear .2s;
.transition(@transition);
+
+ // 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)");
+ }
}
// Position radios and checkboxes better
@@ -163,7 +171,13 @@ select[size] {
height: auto;
}
-
+// Focus for select, file, radio, and checkbox
+select:focus,
+input[type="file"]:focus,
+input[type="radio"]:focus,
+input[type="checkbox"]:focus {
+ .tab-focus();
+}
@@ -204,26 +218,6 @@ select[size] {
-// FOCUS STATE
-// -----------
-
-input:focus,
-textarea: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)");
-}
-input[type="file"]:focus,
-input[type="radio"]:focus,
-input[type="checkbox"]:focus,
-select:focus {
- .tab-focus();
- .box-shadow(none); // override for file inputs
-}
-
-
-
// INPUT SIZES
// -----------
@@ -254,8 +248,7 @@ textarea[class*="span"],
// GRID SIZING FOR INPUTS
// ----------------------
-#grid > .input (@gridColumnWidth, @gridGutterWidth);
-
+#grid > .input(@gridColumnWidth, @gridGutterWidth);