Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2012-12-29 00:18:59 +0400
committerMark Otto <otto@github.com>2012-12-29 00:18:59 +0400
commit1c0e4fc7bb6ab2ef12f1050ed177a02d16ebdbce (patch)
tree739dbe65f42db4df38f149022199e99afc52e3af /less/popovers.less
parentf69d12af3d47b26c0948f207b1fbb876edf0f1b3 (diff)
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/popovers.less')
-rw-r--r--less/popovers.less6
1 files changed, 5 insertions, 1 deletions
diff --git a/less/popovers.less b/less/popovers.less
index b5b2a7eb59..aae35c8cd5 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 {