// Base class .tooltip { position: absolute; z-index: $zindex-tooltip; display: block; margin: $tooltip-margin; // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element. // So reset our font and text properties to avoid inheriting weird values. @include reset-text(); @include font-size($tooltip-font-size); // Allow breaking very long words so they don't overflow the tooltip's bounds word-wrap: break-word; opacity: 0; &.show { opacity: $tooltip-opacity; } .tooltip-arrow { position: absolute; display: block; width: $tooltip-arrow-width; height: $tooltip-arrow-height; &::before { position: absolute; content: ""; border-color: transparent; border-style: solid; } } } .bs-tooltip-top { padding: $tooltip-arrow-height 0; .tooltip-arrow { bottom: 0; &::before { top: -1px; border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0; border-top-color: $tooltip-arrow-color; } } } .bs-tooltip-end { padding: 0 $tooltip-arrow-height; .tooltip-arrow { left: 0; width: $tooltip-arrow-height; height: $tooltip-arrow-width; &::before { right: -1px; border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0; border-right-color: $tooltip-arrow-color; } } } .bs-tooltip-bottom { padding: $tooltip-arrow-height 0; .tooltip-arrow { top: 0; &::before { bottom: -1px; border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height; border-bottom-color: $tooltip-arrow-color; } } } .bs-tooltip-start { padding: 0 $tooltip-arrow-height; .tooltip-arrow { right: 0; width: $tooltip-arrow-height; height: $tooltip-arrow-width; &::before { left: -1px; border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height; border-left-color: $tooltip-arrow-color; } } } .bs-tooltip-auto { &[data-popper-placement^="top"] { @extend .bs-tooltip-top; } &[data-popper-placement^="right"] { @extend .bs-tooltip-end; } &[data-popper-placement^="bottom"] { @extend .bs-tooltip-bottom; } &[data-popper-placement^="left"] { @extend .bs-tooltip-start; } } // Wrapper for the tooltip content .tooltip-inner { max-width: $tooltip-max-width; padding: $tooltip-padding-y $tooltip-padding-x; color: $tooltip-color; text-align: center; background-color: $tooltip-bg; @include border-radius($tooltip-border-radius); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
forms | Folder | 0755 |
|
|
helpers | Folder | 0755 |
|
|
mixins | Folder | 0755 |
|
|
utilities | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
_accordion.scss | File | 2.56 KB | 0644 |
|
_alert.scss | File | 1.44 KB | 0644 |
|
_badge.scss | File | 624 B | 0644 |
|
_bootstrap-grid.scss | File | 1.3 KB | 0644 |
|
_bootstrap-reboot.scss | File | 693 B | 0644 |
|
_bootstrap-utilities.scss | File | 393 B | 0644 |
|
_breadcrumb.scss | File | 923 B | 0644 |
|
_button-group.scss | File | 2.9 KB | 0644 |
|
_buttons.scss | File | 2.18 KB | 0644 |
|
_card.scss | File | 4.6 KB | 0644 |
|
_carousel.scss | File | 5.49 KB | 0644 |
|
_close.scss | File | 1.1 KB | 0644 |
|
_containers.scss | File | 1.17 KB | 0644 |
|
_dropdown.scss | File | 5.46 KB | 0644 |
|
_forms.scss | File | 256 B | 0644 |
|
_functions.scss | File | 7.72 KB | 0644 |
|
_grid.scss | File | 286 B | 0644 |
|
_helpers.scss | File | 218 B | 0644 |
|
_images.scss | File | 1.13 KB | 0644 |
|
_list-group.scss | File | 4.45 KB | 0644 |
|
_mixins.scss | File | 872 B | 0644 |
|
_modal.scss | File | 5.66 KB | 0644 |
|
_nav.scss | File | 2.61 KB | 0644 |
|
_navbar.scss | File | 6.65 KB | 0644 |
|
_offcanvas.scss | File | 1.72 KB | 0644 |
|
_pagination.scss | File | 1.64 KB | 0644 |
|
_popover.scss | File | 4.3 KB | 0644 |
|
_progress.scss | File | 1.14 KB | 0644 |
|
_reboot.scss | File | 12 KB | 0644 |
|
_root.scss | File | 1.14 KB | 0644 |
|
_spinners.scss | File | 1.49 KB | 0644 |
|
_tables.scss | File | 4.04 KB | 0644 |
|
_toasts.scss | File | 1.15 KB | 0644 |
|
_tooltip.scss | File | 2.54 KB | 0644 |
|
_transitions.scss | File | 309 B | 0644 |
|
_type.scss | File | 1.31 KB | 0644 |
|
_utilities.scss | File | 13.09 KB | 0644 |
|
_variables.scss | File | 61.69 KB | 0644 |
|