Skip to content

Commit

Permalink
fix: #84
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jun 15, 2021
1 parent 40fd394 commit a35f7d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/styled/tooltip.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tooltip{
@apply inline-block relative whitespace-nowrap;
@apply inline-block relative text-center;
--tooltip-tail: 3px;
--tooltip-color: hsl(var(--n));
--tooltip-text-color: hsl(var(--nc));
Expand All @@ -13,9 +13,10 @@
@apply absolute;
}
.tooltip:before{
@apply rounded text-sm px-2;
@apply rounded text-sm px-2 max-w-xs py-1;
background-color: var(--tooltip-color);
color: var(--tooltip-text-color);
width: max-content;
}
.tooltip.tooltip-open:before,
.tooltip.tooltip-open:after,
Expand Down

0 comments on commit a35f7d2

Please sign in to comment.