mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2026-10-28 09:44:55 +00:00
Add a click displacement animation similar to shadcn style to the button.
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -1,5 +1,7 @@
|
||||
### 🌈 Style
|
||||
|
||||
- Add a click displacement animation similar to shadcn style to the button.
|
||||
|
||||
#### More GitHub-like style
|
||||
|
||||
- Optimize the length of the clone button.
|
||||
|
||||
@@ -83,7 +83,14 @@ export const transition = css`
|
||||
color 80ms cubic-bezier(0.65, 0, 0.35, 1),
|
||||
fill 80ms cubic-bezier(0.65, 0, 0.35, 1),
|
||||
background-color 80ms cubic-bezier(0.65, 0, 0.35, 1),
|
||||
/* 位移慢一点, 这样视觉上与颜色变化同步 */ transform 200ms cubic-bezier(0.65, 0, 0.35, 1),
|
||||
border-color 80ms cubic-bezier(0.65, 0, 0.35, 1);
|
||||
transition-duration: 80ms;
|
||||
&:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
.button:active {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in new issue
Block a user