// // Popovers // -------------------------------------------------- .popover { position: absolute; top: 0; left: 0; z-index: @zindex-popover; display: none; max-width: @popover-max-width; padding: 1px; // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element. // So reset our font and text properties to avoid inheriting weird values. .reset-text(); font-size: @font-size-base; background-color: @popover-bg; background-clip: padding-box; border: 1px solid @popover-fallback-border-color; border: 1px solid @popover-border-color; border-radius: @border-radius-large; .box-shadow(0 5px 10px rgba(0,0,0,.2)); // Offset the popover to account for the popover arrow &.top { margin-top: -@popover-arrow-width; } &.right { margin-left: @popover-arrow-width; } &.bottom { margin-top: @popover-arrow-width; } &.left { margin-left: -@popover-arrow-width; } } .popover-title { margin: 0; // reset heading margin padding: 8px 14px; font-size: @font-size-base; background-color: @popover-title-bg; border-bottom: 1px solid darken(@popover-title-bg, 5%); border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0; } .popover-content { padding: 9px 14px; } // Arrows // // .arrow is outer, .arrow:after is inner .popover > .arrow { &, &:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } } .popover > .arrow { border-width: @popover-arrow-outer-width; } .popover > .arrow:after { border-width: @popover-arrow-width; content: ""; } .popover { &.top > .arrow { left: 50%; margin-left: -@popover-arrow-outer-width; border-bottom-width: 0; border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-top-color: @popover-arrow-outer-color; bottom: -@popover-arrow-outer-width; &:after { content: " "; bottom: 1px; margin-left: -@popover-arrow-width; border-bottom-width: 0; border-top-color: @popover-arrow-color; } } &.right > .arrow { top: 50%; left: -@popover-arrow-outer-width; margin-top: -@popover-arrow-outer-width; border-left-width: 0; border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-right-color: @popover-arrow-outer-color; &:after { content: " "; left: 1px; bottom: -@popover-arrow-width; border-left-width: 0; border-right-color: @popover-arrow-color; } } &.bottom > .arrow { left: 50%; margin-left: -@popover-arrow-outer-width; border-top-width: 0; border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-bottom-color: @popover-arrow-outer-color; top: -@popover-arrow-outer-width; &:after { content: " "; top: 1px; margin-left: -@popover-arrow-width; border-top-width: 0; border-bottom-color: @popover-arrow-color; } } &.left > .arrow { top: 50%; right: -@popover-arrow-outer-width; margin-top: -@popover-arrow-outer-width; border-right-width: 0; border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback border-left-color: @popover-arrow-outer-color; &:after { content: " "; right: 1px; border-right-width: 0; border-left-color: @popover-arrow-color; bottom: -@popover-arrow-width; } } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
mixins | Folder | 0755 |
|
|
.csscomb.json | File | 7.91 KB | 0644 |
|
.csslintrc | File | 456 B | 0644 |
|
alerts.less | File | 1.48 KB | 0644 |
|
badges.less | File | 1.17 KB | 0644 |
|
bootstrap.less | File | 1.26 KB | 0644 |
|
breadcrumbs.less | File | 594 B | 0644 |
|
button-groups.less | File | 5.55 KB | 0644 |
|
buttons.less | File | 3.58 KB | 0644 |
|
carousel.less | File | 5.52 KB | 0644 |
|
close.less | File | 764 B | 0644 |
|
code.less | File | 1.37 KB | 0644 |
|
component-animations.less | File | 666 B | 0644 |
|
dropdowns.less | File | 4.76 KB | 0644 |
|
forms.less | File | 15.45 KB | 0644 |
|
glyphicons.less | File | 19.34 KB | 0644 |
|
grid.less | File | 1.35 KB | 0644 |
|
input-groups.less | File | 4.18 KB | 0644 |
|
jumbotron.less | File | 1.13 KB | 0644 |
|
labels.less | File | 1.05 KB | 0644 |
|
list-group.less | File | 3.05 KB | 0644 |
|
media.less | File | 900 B | 0644 |
|
mixins.less | File | 1.11 KB | 0644 |
|
modals.less | File | 3.44 KB | 0644 |
|
navbar.less | File | 14.29 KB | 0644 |
|
navs.less | File | 4.81 KB | 0644 |
|
normalize.less | File | 7.38 KB | 0644 |
|
pager.less | File | 861 B | 0644 |
|
pagination.less | File | 2.01 KB | 0644 |
|
panels.less | File | 6.13 KB | 0644 |
|
popovers.less | File | 3.41 KB | 0644 |
|
print.less | File | 1.89 KB | 0644 |
|
progress-bars.less | File | 1.88 KB | 0644 |
|
responsive-embed.less | File | 546 B | 0644 |
|
responsive-utilities.less | File | 4.16 KB | 0644 |
|
scaffolding.less | File | 2.92 KB | 0644 |
|
tables.less | File | 4.5 KB | 0644 |
|
theme.less | File | 8 KB | 0644 |
|
thumbnails.less | File | 753 B | 0644 |
|
tooltip.less | File | 2.92 KB | 0644 |
|
type.less | File | 5.81 KB | 0644 |
|
utilities.less | File | 747 B | 0644 |
|
variables.less | File | 26.83 KB | 0644 |
|
wells.less | File | 527 B | 0644 |
|