aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-04-07 16:17:15 -0700
committerMark Otto <[email protected]>2012-04-07 16:17:15 -0700
commit0a71f171bc63dcfea42fe002bab00454d728fc42 (patch)
tree571eecf7eca0f7b4bb8c8cd7095489dedb2a784c
parentf563b1db43e702854a6065d132e487bc49dc4b24 (diff)
downloadbootstrap-0a71f171bc63dcfea42fe002bab00454d728fc42.tar.xz
bootstrap-0a71f171bc63dcfea42fe002bab00454d728fc42.zip
readd bootstrap.zip, add @inputBorderRadius var to close #2946
-rw-r--r--docs/assets/bootstrap.zipbin0 -> 57364 bytes
-rw-r--r--docs/download.html2
-rw-r--r--docs/less.html4
-rw-r--r--docs/templates/pages/download.mustache2
-rw-r--r--docs/templates/pages/less.mustache4
-rw-r--r--less/forms.less14
-rw-r--r--less/variables.less1
7 files changed, 20 insertions, 7 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
new file mode 100644
index 000000000..95241ab82
--- /dev/null
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/download.html b/docs/download.html
index c0e3b9cf0..bb10bdf63 100644
--- a/docs/download.html
+++ b/docs/download.html
@@ -368,6 +368,8 @@
<input type="text" class="span3" placeholder="@white">
<label>@inputBorder</label>
<input type="text" class="span3" placeholder="#ccc">
+ <label>@inputBorderRadius</label>
+ <input type="text" class="span3" placeholder="3px">
<label>@inputDisabledBackground</label>
<input type="text" class="span3" placeholder="@grayLighter">
<label>@formActionsBackground</label>
diff --git a/docs/less.html b/docs/less.html
index 354285815..4fe26af56 100644
--- a/docs/less.html
+++ b/docs/less.html
@@ -454,6 +454,10 @@
<td><code>#ccc</code></td>
</tr>
<tr>
+ <td><code>@inputBorderRadius</code></td>
+ <td><code>3px</code></td>
+ </tr>
+ <tr>
<td><code>@inputDisabledBackground</code></td>
<td><code>@grayLighter</code></td>
</tr>
diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache
index 0e73c44a4..e9c27588b 100644
--- a/docs/templates/pages/download.mustache
+++ b/docs/templates/pages/download.mustache
@@ -291,6 +291,8 @@
<input type="text" class="span3" placeholder="@white">
<label>@inputBorder</label>
<input type="text" class="span3" placeholder="#ccc">
+ <label>@inputBorderRadius</label>
+ <input type="text" class="span3" placeholder="3px">
<label>@inputDisabledBackground</label>
<input type="text" class="span3" placeholder="@grayLighter">
<label>@formActionsBackground</label>
diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache
index 5005fb166..5345cbf97 100644
--- a/docs/templates/pages/less.mustache
+++ b/docs/templates/pages/less.mustache
@@ -377,6 +377,10 @@
<td><code>#ccc</code></td>
</tr>
<tr>
+ <td><code>@inputBorderRadius</code></td>
+ <td><code>3px</code></td>
+ </tr>
+ <tr>
<td><code>@inputDisabledBackground</code></td>
<td><code>@grayLighter</code></td>
</tr>
diff --git a/less/forms.less b/less/forms.less
index 240de5ed2..d8cb54909 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -72,7 +72,7 @@ select,
line-height: @baseLineHeight;
color: @gray;
border: 1px solid @inputBorder;
- .border-radius(3px);
+ .border-radius(@inputBorderRadius);
}
.uneditable-textarea {
width: auto;
@@ -372,7 +372,7 @@ select:focus:required:invalid {
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
*margin-left: 0;
vertical-align: middle;
- .border-radius(0 3px 3px 0);
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
// Make input on top when focused so blue border and shadow always show
&:focus {
z-index: 2;
@@ -397,7 +397,7 @@ select:focus:required:invalid {
}
.add-on,
.btn {
- .border-radius(3px 0 0 3px);
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.active {
background-color: lighten(@green, 30);
@@ -414,7 +414,7 @@ select:focus:required:invalid {
input,
select,
.uneditable-input {
- .border-radius(3px 0 0 3px);
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.uneditable-input {
border-left-color: #eee;
@@ -423,7 +423,7 @@ select:focus:required:invalid {
.add-on,
.btn {
margin-left: -1px;
- .border-radius(0 3px 3px 0);
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
// Remove all border-radius for inputs with both prepend and append
@@ -436,12 +436,12 @@ select:focus:required:invalid {
.add-on:first-child,
.btn:first-child {
margin-right: -1px;
- .border-radius(3px 0 0 3px);
+ .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.add-on:last-child,
.btn:last-child {
margin-left: -1px;
- .border-radius(0 3px 3px 0);
+ .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
diff --git a/less/variables.less b/less/variables.less
index 30dd73b8b..a9e3d4082 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -96,6 +96,7 @@
// -------------------------
@inputBackground: @white;
@inputBorder: #ccc;
+@inputBorderRadius: 3px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;