From 1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 28 Dec 2012 14:18:59 -0600 Subject: Popovers are now flexible width: * 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 --- less/popovers.less | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/popovers.less b/less/popovers.less index b5b2a7eb5..aae35c8cd 100644 --- a/less/popovers.less +++ b/less/popovers.less @@ -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; @@ -40,6 +40,10 @@ background-color: @popoverTitleBackground; border-bottom: 1px solid darken(@popoverTitleBackground, 5%); .border-radius(5px 5px 0 0); + + &:empty { + display: none; + } } .popover-content { -- cgit v1.2.3