0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix tooltips of alignment options

This commit is contained in:
Andrés Moya 2020-06-15 11:43:23 +02:00 committed by Andrey Antukh
parent beb6048bf9
commit 778bfbab59
2 changed files with 20 additions and 17 deletions

View file

@ -927,7 +927,6 @@ input[type=range]:focus::-ms-fill-upper {
position: relative;
&:hover {
&::after {
background-color: $color-white;
border-radius: $br-small;
@ -944,52 +943,56 @@ input[type=range]:focus::-ms-fill-upper {
z-index: 20;
@include animation(.3s,.6s,fadeIn);
}
}
&.tooltip-bottom {
&:hover {
&::after {
left: -100%;
top: 130%;
}
}
}
&.tooltip-bottom-right {
&:hover {
&::after {
left: 0;
top: 130%;
}
}
}
&.tooltip-bottom-left {
&:hover {
&::after {
left: unset;
right: 0;
top: 130%;
}
}
}
&.tooltip-top {
&:hover {
&::after {
top: -165%;
left: -60%;
}
}
}
&.tooltip-right {
&:hover {
&::after {
top: 15%;
left: 120%;
}
}
}
&.tooltip-hover {
&:hover {
&::after {
align-items: center;
background-color: $color-white;

View file

@ -43,7 +43,7 @@
[:div.align-options
[:div.align-group
[:div.align-button.tooltip.tooltip-bottom
[:div.align-button.tooltip.tooltip-bottom-right
{:alt (t locale "workspace.align.hleft")
:class (when disabled "disabled")
:on-click #(on-align-button-clicked :hleft)}
@ -86,7 +86,7 @@
:on-click #(on-align-button-clicked :vbottom)}
i/shape-valign-bottom]
[:div.align-button.tooltip.tooltip-bottom
[:div.align-button.tooltip.tooltip-bottom-left
{:alt (t locale "workspace.align.vdistribute")
:class (when disabled-distribute "disabled")
:on-click #(on-distribute-button-clicked :vertical)}