/* ###### Tooltip ###### */ .tooltip { position: absolute; z-index: 1070; display: block; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.76562rem; word-wrap: break-word; opacity: 0; &.show { opacity: 0.9; } .arrow { position: absolute; display: block; width: 0.8rem; height: 0.4rem; &::before { position: absolute; content: ""; border-color: transparent; border-style: solid; } } top: 0; } .tooltip-inner { font-size: 12px; border-radius: 2px; max-width: 200px; padding: 0.25rem 0.5rem; color: $white; text-align: center; background-color: $black; border-radius: 3px; } .tooltip-primary { .tooltip-inner { background-color: $primary !important; color: $white !important; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: $primary !important; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: $primary; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: $primary; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: $primary; } } .tooltip-secondary { .tooltip-inner { background-color: $secondary !important; color: $white; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: $secondary !important; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: $secondary !important; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: $secondary; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: $secondary; } } .tooltip-info { .tooltip-inner { background-color: $info !important; color: $white !important; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: $info !important; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: $info; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: $info; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: $info; } } .tooltip-danger { .tooltip-inner { background-color: #f16d75 !important; color: $white !important; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: #f16d75 !important; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: #f16d75; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: #f16d75; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: #f16d75; } } .tooltip-success { .tooltip-inner { background-color: $success; color: $white; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: $success; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: $success; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: $success; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: $success; } } .tooltip-warning { .tooltip-inner { background-color: $warning; color: #8f9cc0; } &.bs-tooltip-top .arrow::before, &.bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { border-top-color: $warning; } &.bs-tooltip-bottom .arrow::before, &.bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { border-bottom-color: $warning; } &.bs-tooltip-left .arrow::before, &.bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { border-left-color: $warning; } &.bs-tooltip-right .arrow::before, &.bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { border-right-color: $warning; } } .bs-tooltip-top, .bs-tooltip-auto[data-popper-placement^="top"] { padding: 0.4rem 0; } .bs-tooltip-top .arrow, .bs-tooltip-auto[data-popper-placement^="top"] .arrow { bottom: 0; } .bs-tooltip-top .arrow::before, .bs-tooltip-auto[data-popper-placement^="top"] .arrow::before { top: 0; border-width: 0.4rem 0.4rem 0; border-top-color: $black; } .bs-tooltip-right, .bs-tooltip-auto[data-popper-placement^="right"] { padding: 0 0.4rem; } .bs-tooltip-right .arrow, .bs-tooltip-auto[data-popper-placement^="right"] .arrow { left: 0; width: 0.4rem; height: 0.8rem; } .bs-tooltip-right .arrow::before, .bs-tooltip-auto[data-popper-placement^="right"] .arrow::before { right: 0; border-width: 0.4rem 0.4rem 0.4rem 0; border-right-color: $black; } .bs-tooltip-bottom, .bs-tooltip-auto[data-popper-placement^="bottom"] { padding: 0.4rem 0; } .bs-tooltip-bottom .arrow, .bs-tooltip-auto[data-popper-placement^="bottom"] .arrow { top: 0; } .bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[data-popper-placement^="bottom"] .arrow::before { bottom: 0; border-width: 0 0.4rem 0.4rem; border-bottom-color: $black; } .bs-tooltip-left, .bs-tooltip-auto[data-popper-placement^="left"] { padding: 0 0.4rem; } .bs-tooltip-left .arrow, .bs-tooltip-auto[data-popper-placement^="left"] .arrow { right: 0; width: 0.4rem; height: 0.8rem; } .bs-tooltip-left .arrow::before, .bs-tooltip-auto[data-popper-placement^="left"] .arrow::before { left: 0; border-width: 0.4rem 0 0.4rem 0.4rem; border-left-color: $black; } .tooltip-static-demo { text-align: center; background-color: $background; padding: 20px; .tooltip { z-index: 0; opacity: 1; position: relative; display: inline-block; margin: 0 10px; } .bs-tooltip-top .arrow, .bs-tooltip-auto[data-popper-placement^="top"] .arrow, .bs-tooltip-bottom .arrow, .bs-tooltip-auto[data-popper-placement^="bottom"] .arrow { left: 50%; margin-left: -2px; } .bs-tooltip-left, .bs-tooltip-auto[data-popper-placement^="left"], .bs-tooltip-right, .bs-tooltip-auto[data-popper-placement^="right"] { margin-top: 5px; } .bs-tooltip-left .arrow, .bs-tooltip-auto[data-popper-placement^="left"] .arrow, .bs-tooltip-right .arrow, .bs-tooltip-auto[data-popper-placement^="right"] .arrow { top: 40%; margin-top: -3px; } } .tooltip-primary.bs-tooltip-top .tooltip-arrow::before, .tooltip-primary.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: $primary !important; } .tooltip-secondary.bs-tooltip-bottom .tooltip-arrow::before, .tooltip-secondary.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: $secondary !important; } .tooltip-info.bs-tooltip-start .tooltip-arrow::before, .tooltip-info.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: $info !important; } .tooltip-danger.bs-tooltip-end .tooltip-arrow::before, .tooltip-danger.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: $danger !important; } /* ###### Tooltip ###### */