mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-06 23:57:36 +02:00
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
This commit is contained in:
parent
f69d12af3d
commit
1c0e4fc7bb
6
docs/assets/css/bootstrap.css
vendored
6
docs/assets/css/bootstrap.css
vendored
@ -5301,7 +5301,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1010;
|
z-index: 1010;
|
||||||
display: none;
|
display: none;
|
||||||
width: 236px;
|
max-width: 276px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
@ -5348,6 +5348,10 @@ input[type="submit"].btn.btn-mini {
|
|||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.popover-title:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.popover-content {
|
.popover-content {
|
||||||
padding: 9px 14px;
|
padding: 9px 14px;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: @zindexPopover;
|
z-index: @zindexPopover;
|
||||||
display: none;
|
display: none;
|
||||||
width: 236px;
|
max-width: 276px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
text-align: left; // Reset given new insertion method
|
text-align: left; // Reset given new insertion method
|
||||||
background-color: @popoverBackground;
|
background-color: @popoverBackground;
|
||||||
@ -40,6 +40,10 @@
|
|||||||
background-color: @popoverTitleBackground;
|
background-color: @popoverTitleBackground;
|
||||||
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
||||||
.border-radius(5px 5px 0 0);
|
.border-radius(5px 5px 0 0);
|
||||||
|
|
||||||
|
&:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-content {
|
.popover-content {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user