diff options
| author | Mark Otto <[email protected]> | 2012-12-28 14:18:59 -0600 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-12-28 14:18:59 -0600 |
| commit | 1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce (patch) | |
| tree | 739dbe65f42db4df38f149022199e99afc52e3af /less | |
| parent | f69d12af3d47b26c0948f207b1fbb876edf0f1b3 (diff) | |
| download | bootstrap-1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce.tar.xz bootstrap-1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce.zip | |
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
Diffstat (limited to 'less')
| -rw-r--r-- | less/popovers.less | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |
