Skip to content

Commit

Permalink
fix(plate): fixed --arrow-transform var, tuned transition (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiebenSieben committed Feb 16, 2021
1 parent 74990da commit dd51018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/plate/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
.content {
max-height: 300vh;
overflow: hidden;
transition: max-height 3s ease-in-out;
transition: max-height 2s ease-in-out;

&.isFolded {
max-height: 0;
transition: max-height 1.5s cubic-bezier(0, 1, 0, 1);
transition: max-height 1s cubic-bezier(0, 1, 0, 1);
}
}

Expand Down Expand Up @@ -116,8 +116,9 @@
.folder {
background: var(--plate-arrow-icon) center no-repeat;
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
transform: var(--arrow-transform);

&.isFolded {
transform: var(--arrow-transform);
transform: rotate(0deg);
}
}
2 changes: 1 addition & 1 deletion packages/themes/src/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
--font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
sans-serif;
--disabled-cursor: not-allowed;
--arrow-transform: rotateX(180deg);
--arrow-transform: rotate(180deg);
}

0 comments on commit dd51018

Please sign in to comment.