aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-12-10 22:29:49 -0800
committerMark Otto <[email protected]>2011-12-10 22:29:49 -0800
commitd2e56ad53d5d5c93cd6206a6829ee2054f583c5b (patch)
tree10c5d693243750fffbba2eab570c054f0e8bb5a6
parentd587845149471ad9ed07bc57c1a8652c54d17c55 (diff)
downloadbootstrap-d2e56ad53d5d5c93cd6206a6829ee2054f583c5b.tar.xz
bootstrap-d2e56ad53d5d5c93cd6206a6829ee2054f583c5b.zip
unstyle image inputs
-rw-r--r--bootstrap.css10
-rw-r--r--bootstrap.min.css3
-rw-r--r--lib/forms.less8
3 files changed, 16 insertions, 5 deletions
diff --git a/bootstrap.css b/bootstrap.css
index b7a820f71..5fb8b6fc8 100644
--- a/bootstrap.css
+++ b/bootstrap.css
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Sat Dec 10 22:20:18 PST 2011
+ * Date: Sat Dec 10 22:29:17 PST 2011
*/
html, body {
margin: 0;
@@ -567,8 +567,7 @@ select,
-moz-border-radius: 3px;
border-radius: 3px;
}
-/* Mini reset for unique input types */
-input[type=checkbox], input[type=radio] {
+input[type=image], input[type=checkbox], input[type=radio] {
width: auto;
height: auto;
padding: 0;
@@ -605,6 +604,11 @@ select[multiple] {
height: inherit;
background-color: #ffffff;
}
+input[type=image] {
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+}
textarea {
height: auto;
}
diff --git a/bootstrap.min.css b/bootstrap.min.css
index 3a77a1df2..eecca66d0 100644
--- a/bootstrap.min.css
+++ b/bootstrap.min.css
@@ -96,11 +96,12 @@ legend{display:block;width:100%;margin-bottom:27px;font-size:19.5px;line-height:
label,input,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:normal;font-weight:13px;line-height:18px;}
label{display:block;margin-bottom:5px;color:#404040;}
input,textarea,select,.uneditable-input{display:inline-block;width:210px;height:18px;padding:4px;font-size:13px;line-height:18px;color:#808080;border:1px solid #ccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
-input[type=checkbox],input[type=radio]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;border:none;cursor:pointer;}
+input[type=image],input[type=checkbox],input[type=radio]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;border:none;cursor:pointer;}
input[type=file]{padding:initial;line-height:initial;border:initial;background-color:#ffffff;background-color:initial;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
input[type=button],input[type=reset],input[type=submit]{width:auto;height:auto;}
select,input[type=file]{height:27px;*margin-top:4px;line-height:27px;}
select[multiple]{height:inherit;background-color:#ffffff;}
+input[type=image]{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
textarea{height:auto;}
input,textarea{-webkit-box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1);-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;-ms-transition:border linear 0.2s,box-shadow linear 0.2s;-o-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;}
input:focus,textarea:focus{border-color:rgba(82, 168, 236, 0.8);-webkit-box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6);-moz-box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6);box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.1),0 0 8px rgba(82, 168, 236, 0.6);outline:0;}
diff --git a/lib/forms.less b/lib/forms.less
index e85b9f201..8d4369b18 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -53,7 +53,8 @@ select,
.border-radius(3px);
}
-/* Mini reset for unique input types */
+// Mini reset for unique input types
+input[type=image],
input[type=checkbox],
input[type=radio] {
width: auto;
@@ -98,6 +99,11 @@ select[multiple] {
background-color: @white; // Fixes Chromium bug?
}
+// Remove shadow from image inputs
+input[type=image] {
+ .box-shadow(none);
+}
+
textarea {
height: auto;
}