]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
unstyle image inputs
authorMark Otto <markdotto@gmail.com>
Sun, 11 Dec 2011 06:29:49 +0000 (22:29 -0800)
committerMark Otto <markdotto@gmail.com>
Sun, 11 Dec 2011 06:29:49 +0000 (22:29 -0800)
bootstrap.css
bootstrap.min.css
lib/forms.less

index b7a820f716035712c9220a046a1816058ad85ffe..5fb8b6fc88be7c333fc9787c865881bf69f9bc47 100644 (file)
@@ -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;
 }
index 3a77a1df226c750af20fda4c67bb5a2016805227..eecca66d0b77d2802fb93a7338407d8b45ab43b2 100644 (file)
@@ -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;}
index e85b9f2015c291c5dc1e2e60d313df2fe708ed78..8d4369b186925d2af5483a12b389eec874766a12 100644 (file)
@@ -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;
 }