Skip to content

Commit 95da1a8

Browse files
committed
[design] improve theme preset and custom preview animations
1 parent 0e703df commit 95da1a8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎src/css/theme.css‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,27 @@
9898
.theme-custom-background-02{
9999
z-index:2;
100100
clip-path:polygon(70%0%,100%0%,100%100%,0%100%,0%70%);
101-
transition-delay:var(--layout-duration-04);
101+
transition-delay:var(--layout-duration-03);
102102
}
103103

104104
.theme-preset-background-03,
105105
.theme-custom-background-03{
106106
z-index:3;
107107
clip-path:polygon(100%0%,100%0%,100%100%,0%100%,0%100%);
108-
transition-delay:var(--layout-duration-03);
108+
transition-delay:var(--layout-duration-02);
109109
}
110110

111111
.theme-preset-background-04,
112112
.theme-custom-background-04{
113113
z-index:4;
114114
clip-path:polygon(100%30%,100%100%,30%100%);
115-
transition-delay:var(--layout-duration-02);
115+
transition-delay:var(--layout-duration-01);
116116
}
117117

118118
.theme-preset-accent,
119119
.theme-custom-accent{
120120
z-index:5;
121121
clip-path:circle(30% at 100%100%);
122-
transition-delay:var(--layout-duration-01);
123122
}
124123

125124
.is-theme-custom-edit .theme-custom-accent{
@@ -151,21 +150,21 @@
151150
.theme-preset-button:hover .theme-preset-background-02,
152151
.theme-custom-button:focus .theme-custom-background-02,
153152
.theme-custom-button:hover .theme-custom-background-02{
154-
clip-path:polygon(50%0%,100%0%,100%100%,0%100%,0%50%);
153+
clip-path:polygon(60%0%,100%0%,100%100%,0%100%,0%60%);
155154
}
156155

157156
.theme-preset-button:focus .theme-preset-background-03,
158157
.theme-preset-button:hover .theme-preset-background-03,
159158
.theme-custom-button:focus .theme-custom-background-03,
160159
.theme-custom-button:hover .theme-custom-background-03{
161-
clip-path:polygon(80%0%,100%0%,100%100%,0%100%,0%80%);
160+
clip-path:polygon(90%0%,100%0%,100%100%,0%100%,0%90%);
162161
}
163162

164163
.theme-preset-button:focus .theme-preset-background-04,
165164
.theme-preset-button:hover .theme-preset-background-04,
166165
.theme-custom-button:focus .theme-custom-background-04,
167166
.theme-custom-button:hover .theme-custom-background-04{
168-
clip-path:polygon(100%10%,100%100%,10%100%);
167+
clip-path:polygon(100%20%,100%100%,20%100%);
169168
}
170169

171170
.theme-preset-button:focus .theme-preset-accent,

0 commit comments

Comments
(0)