Skip to content

Commit

Permalink
Merge pull request #8521 from shashkovdanil/neotooltip-tailwindcss
Browse files Browse the repository at this point in the history
NeoTooltip to tailwindcss
  • Loading branch information
roiLeo authored Dec 11, 2023
2 parents 089cca6 + 742ad66 commit 79b4398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
45 changes: 3 additions & 42 deletions libs/ui/src/components/NeoTooltip/NeoTooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import '@oruga-ui/oruga-next/src/scss/utilities/variables.scss';
@import '@oruga-ui/oruga-next/src/scss/utilities/animations.scss';
@import '@oruga-ui/oruga-next/src/scss/utilities/helpers.scss';
@import '../../scss/variable.scss';

$tooltip-content-zindex: 101;
$tooltip-content-font-size: var(--font-size, 1rem);
Expand All @@ -16,47 +15,9 @@ $tooltip-arrow-margin: 1rem;
@import '@oruga-ui/oruga-next/src/scss/components/tooltip.scss';

.o-tip__content {
@include ktheme() {
color: theme('text-color');
border-color: theme('text-color');
background: theme('background-color');

.o-tip__arrow {
color: theme('text-color');
}
}
}

.o-tip__trigger > * {
font-size: inherit !important;
font-family: inherit !important;
height: 100%;
}

.o-tip {
&__content {
font-size: 0.75rem;
padding: 0.5rem 1rem;

@include ktheme() {
color: theme('text-color');
border: 1px solid theme('border-color');
background: theme('background-color');
}
}

&__arrow {
@include ktheme() {
color: theme('text-color');
}
}
@apply text-xs py-2 px-4 text-text-color border-default border-text-color bg-background-color;
}

.wrapper {
height: 100%;
> * {
font-size: inherit !important;
font-family: inherit !important;
height: inherit !important;
}
.o-tip__arrow {
@apply text-text-color;
}
3 changes: 1 addition & 2 deletions libs/ui/src/components/NeoTooltip/NeoTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div />
</slot>
</o-tooltip>
<div v-else class="wrapper">
<div v-else class="h-full">
<slot>
<div />
</slot>
Expand Down Expand Up @@ -110,6 +110,5 @@ const handleClick = (event: MouseEvent) => {
</script>

<style lang="scss">
// @import '@oruga-ui/oruga-next/dist/oruga.min.css';
@import './NeoTooltip.scss';
</style>

0 comments on commit 79b4398

Please sign in to comment.