Skip to content

Commit

Permalink
Rotate only twisty icon instead of twisty itself
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 8, 2023
1 parent 0cd7f5e commit 25f2e8f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions webextensions/sidebar/styles/twisty.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ tab-item tab-twisty {
z-index: var(--tab-ui-z-index);
}

:root.animation tab-item:not(.collapsed) tab-twisty {
transition: transform 0.2s ease-out,
opacity 0.15s ease-out;
}

tab-item:not([data-child-ids]) tab-twisty,
tab-item.pinned tab-twisty,
tab-item.collapsed tab-twisty {
Expand All @@ -52,26 +47,31 @@ tab-item:not(.collapsed) tab-twisty::before {
mask: url("./icons/ArrowheadDown.svg") no-repeat center / 60%;
}

tab-item:not(.collapsed).subtree-collapsed
tab-twisty {
tab-item:not(.collapsed).subtree-collapsed tab-twisty {
opacity: 0.9;
transform: rotatez(-90deg);
}
:root.right
tab-item:not(.collapsed).subtree-collapsed
tab-twisty {
transform: rotatez(90deg);
}

tab-item:not(.collapsed).subtree-collapsed
tab-twisty:hover {
tab-item:not(.collapsed).subtree-collapsed tab-twisty:hover {
opacity: 1;
}

tab-item:not(.collapsed):not(.subtree-collapsed) tab-twisty {
opacity: 0.9;
transform: rotatez(0);
}
tab-item:not(.collapsed):not(.subtree-collapsed) tab-twisty:hover {
opacity: 1;
}


:root.animation tab-item:not(.collapsed) tab-twisty::before {
transition: transform 0.2s ease-out,
opacity 0.15s ease-out;
transform: rotatez(0);
}
:root.left
tab-item:not(.collapsed).subtree-collapsed tab-twisty::before {
transform: rotatez(-90deg);
}
:root.right
tab-item:not(.collapsed).subtree-collapsed tab-twisty::before {
transform: rotatez(90deg);
}

0 comments on commit 25f2e8f

Please sign in to comment.