]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #5082 manually: reset font-size for .dropdown-menu within .input-prepend/-append
authorMark Otto <markotto@twitter.com>
Tue, 18 Sep 2012 06:11:49 +0000 (23:11 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 18 Sep 2012 06:11:49 +0000 (23:11 -0700)
docs/assets/css/bootstrap.css
less/forms.less

index 0538e4b01a9e1c0fe390b8eb44e2dd6c241fabc1..92ea234b3dcfeca9fe86f40d296a1515a36caf2a 100644 (file)
@@ -1545,6 +1545,17 @@ select:focus:required:invalid:focus {
   white-space: nowrap;
 }
 
+.input-append input,
+.input-prepend input,
+.input-append select,
+.input-prepend select,
+.input-append .uneditable-input,
+.input-prepend .uneditable-input,
+.input-append .dropdown-menu,
+.input-prepend .dropdown-menu {
+  font-size: 14px;
+}
+
 .input-append input,
 .input-prepend input,
 .input-append select,
@@ -1554,7 +1565,6 @@ select:focus:required:invalid:focus {
   position: relative;
   margin-bottom: 0;
   *margin-left: 0;
-  font-size: 14px;
   vertical-align: top;
   -webkit-border-radius: 0 3px 3px 0;
      -moz-border-radius: 0 3px 3px 0;
index d4e0f3487e6ead77016b1c782ee14acaed82f44c..a48d6cb589cf21ff45cf915e5316172b85019b86 100644 (file)
@@ -418,16 +418,23 @@ select:focus:required:invalid {
 .input-append,
 .input-prepend {
   margin-bottom: 5px;
-  font-size: 0;
+  font-size: 0; // white space collapse hack
   white-space: nowrap; // Prevent span and input from separating
 
+  // Reset the white space collapse hack
+  input,
+  select,
+  .uneditable-input,
+  .dropdown-menu {
+    font-size: @baseFontSize;
+  }
+
   input,
   select,
   .uneditable-input {
     position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
     margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
     *margin-left: 0;
-    font-size: @baseFontSize;
     vertical-align: top;
     .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
     // Make input on top when focused so blue border and shadow always show