From c838884cce40bcac7ad9ecd1b0aeba0e03a46904 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 29 Oct 2024 00:20:22 +0100 Subject: [PATCH] Add Danger theme for tippy --- resources/css/tooltip.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/resources/css/tooltip.css b/resources/css/tooltip.css index be901d50..22efc45b 100644 --- a/resources/css/tooltip.css +++ b/resources/css/tooltip.css @@ -19,3 +19,25 @@ .tippy-box[data-theme~='primary'] > .tippy-svg-arrow { fill: theme('colors.primary.800'); } + +.tippy-box[data-theme~='danger'] { + @apply bg-red-800 text-red-100 shadow-lg; +} +.tippy-box[data-theme~='danger'][data-placement^='top'] > .tippy-arrow:before { + border-top-color: theme('colors.red.800'); +} +.tippy-box[data-theme~='danger'][data-placement^='bottom'] > .tippy-arrow:before { + border-bottom-color: theme('colors.red.800'); +} +.tippy-box[data-theme~='danger'][data-placement^='left'] > .tippy-arrow:before { + border-left-color: theme('colors.red.800'); +} +.tippy-box[data-theme~='danger'][data-placement^='right'] > .tippy-arrow:before { + border-right-color: theme('colors.red.800'); +} +.tippy-box[data-theme~='danger'] > .tippy-backdrop { + background-color: theme('colors.red.800'); +} +.tippy-box[data-placement='top-end'] > .tippy-arrow { + @apply !transform-none !left-auto right-4; +}