aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-03-11 23:21:38 -0700
committerMark Otto <[email protected]>2012-03-11 23:21:38 -0700
commit7c2ed0c0958dcdb518970617a013538310494d20 (patch)
tree48f0e67c648e92d0dfaf8d3e01a93fdb95dd83b9
parent5eed370856424362e23b1a5e02dd3c58c83dd30f (diff)
downloadbootstrap-7c2ed0c0958dcdb518970617a013538310494d20.tar.xz
bootstrap-7c2ed0c0958dcdb518970617a013538310494d20.zip
resolve #1972, allowing add-ons at beginning and end of input-prepend/append
-rw-r--r--docs/assets/bootstrap.zipbin55304 -> 55388 bytes
-rw-r--r--docs/assets/css/bootstrap.css24
-rw-r--r--less/forms.less23
3 files changed, 43 insertions, 4 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 17f272fc5..e6a3da31c 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 433a345ab..2b2f61dea 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -1013,7 +1013,6 @@ select:focus:required:invalid:focus {
width: auto;
min-width: 16px;
height: 18px;
- margin-right: -1px;
padding: 4px 5px;
font-weight: normal;
line-height: 18px;
@@ -1031,6 +1030,9 @@ select:focus:required:invalid:focus {
background-color: #a9dba9;
border-color: #46a546;
}
+.input-prepend .add-on {
+ margin-right: -1px;
+}
.input-append input,
.input-append select .uneditable-input {
-webkit-border-radius: 3px 0 0 3px;
@@ -1042,7 +1044,25 @@ select:focus:required:invalid:focus {
border-right-color: #ccc;
}
.input-append .add-on {
- margin-right: 0;
+ margin-left: -1px;
+ -webkit-border-radius: 0 3px 3px 0;
+ -moz-border-radius: 0 3px 3px 0;
+ border-radius: 0 3px 3px 0;
+}
+.input-prepend.input-append input,
+.input-prepend.input-append select,
+.input-prepend.input-append .uneditable-input {
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ border-radius: 0;
+}
+.input-prepend.input-append .add-on:first-child {
+ margin-right: -1px;
+ -webkit-border-radius: 3px 0 0 3px;
+ -moz-border-radius: 3px 0 0 3px;
+ border-radius: 3px 0 0 3px;
+}
+.input-prepend.input-append .add-on:last-child {
margin-left: -1px;
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
diff --git a/less/forms.less b/less/forms.less
index 5045dc254..a5e8c761f 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -379,7 +379,6 @@ select:focus:required:invalid {
width: auto;
min-width: 16px;
height: @baseLineHeight;
- margin-right: -1px;
padding: 4px 5px;
font-weight: normal;
line-height: @baseLineHeight;
@@ -395,6 +394,11 @@ select:focus:required:invalid {
border-color: @green;
}
}
+.input-prepend {
+ .add-on {
+ margin-right: -1px;
+ }
+}
.input-append {
input,
select
@@ -406,7 +410,22 @@ select:focus:required:invalid {
border-right-color: #ccc;
}
.add-on {
- margin-right: 0;
+ margin-left: -1px;
+ .border-radius(0 3px 3px 0);
+ }
+}
+// Remove all border-radius for inputs with both prepend and append
+.input-prepend.input-append {
+ input,
+ select,
+ .uneditable-input {
+ .border-radius(0);
+ }
+ .add-on:first-child {
+ margin-right: -1px;
+ .border-radius(3px 0 0 3px);
+ }
+ .add-on:last-child {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}