]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Popovers are now flexible width:
authorMark Otto <otto@github.com>
Fri, 28 Dec 2012 20:18:59 +0000 (14:18 -0600)
committerMark Otto <otto@github.com>
Fri, 28 Dec 2012 20:18:59 +0000 (14:18 -0600)
* Instead of a fixed width, we use max-width
* Width has been increased from 240px to 280px
* Added ability to hide the title via CSS :empty selector if no title is provided

docs/assets/css/bootstrap.css
less/popovers.less

index 133091b04ba565ad588c974d5d6273918cf9ea7f..2e2f061605a745897683bc4f51dc82284b5a6c52 100644 (file)
@@ -5301,7 +5301,7 @@ input[type="submit"].btn.btn-mini {
   left: 0;
   z-index: 1010;
   display: none;
-  width: 236px;
+  max-width: 276px;
   padding: 1px;
   text-align: left;
   white-space: normal;
@@ -5348,6 +5348,10 @@ input[type="submit"].btn.btn-mini {
           border-radius: 5px 5px 0 0;
 }
 
+.popover-title:empty {
+  display: none;
+}
+
 .popover-content {
   padding: 9px 14px;
 }
index b5b2a7eb59a6563eb85641c39243670424a3a170..aae35c8cd56d92111f74456019abf10a749b6dc2 100644 (file)
@@ -9,7 +9,7 @@
   left: 0;
   z-index: @zindexPopover;
   display: none;
-  width: 236px;
+  max-width: 276px;
   padding: 1px;
   text-align: left; // Reset given new insertion method
   background-color: @popoverBackground;
   background-color: @popoverTitleBackground;
   border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
   .border-radius(5px 5px 0 0);
+
+  &:empty {
+    display: none;
+  }
 }
 
 .popover-content {