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
path: root/less
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-05-15 11:17:02 +0400
committerMark Otto <markotto@twitter.com>2012-05-15 11:17:02 +0400
commitecf84bdac51a9c56d18c4a25b3d5b0c66a09151a (patch)
tree2124c1c09e393fbe77f5d74eebbec8e52aa5ccf4 /less
parent87f6e426b33590bf8b14d933cd9cbb101a9bed23 (diff)
correct regressions against 2.0.3
Diffstat (limited to 'less')
-rw-r--r--less/forms.less37
1 files changed, 25 insertions, 12 deletions
diff --git a/less/forms.less b/less/forms.less
index 4a218033ae..277cdf42f1 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -87,7 +87,13 @@ input[type="color"] {
color: @gray;
}
-// Reset background, border, and box-shadow for textual inputs and textarea
+// Reset appearance properties for textual inputs and textarea
+// Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
+input,
+textarea {
+ width: 210px;
+}
+// Everything else
textarea,
input[type="text"],
input[type="password"],
@@ -111,21 +117,22 @@ input[type="color"] {
.transition(@transition);
}
-// Unused selectors
+// Position radios and checkboxes better
input[type="radio"],
input[type="checkbox"] {
+ margin: 3px 0;
+ *margin-top: 0; /* IE7 */
+ line-height: normal;
+ cursor: pointer;
}
-input[type="button"],
+
+// Reset width of input buttons, radios, checkboxes
input[type="submit"],
-input[type="reset"] {
-}
-input[type="file"] {
-}
-input[type="hidden"] {
-}
-input[type="image"] {
-}
-input[type="range"] {
+input[type="reset"],
+input[type="button"],
+input[type="radio"],
+input[type="checkbox"] {
+ width: auto; // Override of generic input selector
}
// Make uneditable textareas behave like a textarea
@@ -142,6 +149,12 @@ input[type="file"] {
line-height: 28px;
}
+// Make select elements obey height by applying a border
+select {
+ width: 220px; // default input width + 10px of padding that doesn't get applied
+ border: 1px solid #bbb;
+}
+
// Make multiple select elements height not fixed
select[multiple],
select[size] {