]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
oops, double commit last time; apply fixes to make select elements line up in IE7...
authorMark Otto <mark.otto@twitter.com>
Mon, 12 Sep 2011 01:09:01 +0000 (18:09 -0700)
committerMark Otto <mark.otto@twitter.com>
Mon, 12 Sep 2011 01:09:01 +0000 (18:09 -0700)
bootstrap-1.3.0.css
bootstrap-1.3.0.min.css
docs/index.html
lib/forms.less

index a792c99eaeaac281999eeb3496fd2eb68756a704..0c20b8d640dd5759349d9d987b7e2dbcb6baf7b6 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: Sun Sep 11 17:36:01 PDT 2011
+ * Date: Sun Sep 11 18:08:25 PDT 2011
  */
 /* Reset.less
  * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here      that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -771,6 +771,9 @@ input[type=button], input[type=reset], input[type=submit] {
 select, input[type=file] {
   height: 27px;
   line-height: 27px;
+  *margin-top: 4px;
+  /* For IE7, add top margin to align select with labels */
+
 }
 textarea {
   height: auto;
index c92c6f4e138d1d988790a3781492ee647b1796f8..b2b38bbf8601e7215e6b40d1cd6f81c4c69271a0 100644 (file)
@@ -122,7 +122,7 @@ input,textarea,select,.uneditable-input{display:inline-block;width:210px;height:
 input[type=checkbox],input[type=radio]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;border:none;}
 input[type=file]{background-color:#fff;padding:initial;border:initial;line-height: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;line-height:27px;}
+select,input[type=file]{height:27px;line-height:27px;*margin-top:4px;}
 textarea{height:auto;}
 .uneditable-input{background-color:#fff;display:block;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);cursor:not-allowed;}
 :-moz-placeholder{color:#bfbfbf;}
index adf58e64f26b4279d4fbad27592e5797bdba8f60..110b4f46bd4b5dce05696363bfa0de63e52294a0 100644 (file)
       <form>
         <fieldset>
           <legend>Example form legend</legend>
-
-          <table>
-            <thead>
-              <tr>
-                <th>1</th>
-                <th>2</th>
-              </tr>
-            </thead>
-            <tbody>
-              <tr>
-                <td>1</td>
-                <td>2</td>
-              </tr>
-            </tbody>
-          </table>
-
-
           <div class="clearfix">
             <label for="xlInput">X-Large input</label>
             <div class="input">
index a1fdbd9373eab42d631ad7cb38c300ba6805475a..90b8720f03a0834a50ebfe8b462141f872008dfb 100644 (file)
@@ -105,11 +105,9 @@ input[type=submit] {
 
 select,
 input[type=file] {
-  height: @baseline * 1.5;
+  height: @baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
   line-height: @baseline * 1.5;
-}
-select {
-  float: left;
+  *margin-top: 4px; /* For IE7, add top margin to align select with labels */
 }
 
 textarea {