Skip to content

Commit d7704a2

Browse files
committed
educe the displacement when the button is clicked.
1 parent c1f309f commit d7704a2

2 files changed

Lines changed: 3 additions & 37 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,7 @@
1-
### ⚠️ Breaking Changes
2-
3-
- Starting from this version, CSS nesting will no longer be expanded, which will reduce the volume by 40% and improve
4-
loading speed,ensure styles are applied correctly by keeping Chrome/Edge >= 120, Firefox >= 121, Safari >= 16.5.
5-
6-
### 🎉 The theme framework is now stable
7-
8-
- The core internal generation framework of the theme has been refactored, with build speed optimized to under 1 second.
9-
There are three ways to define a theme, and you can choose according to your needs. Custom themes also support
10-
additional custom styles. Feel free to check out CONTRIBUTING.md and the project’s internal documentation to
11-
contribute your own themes!
12-
13-
- All currently known GitHub color themes have been adapted, with additional support for custom pink, Gitea colors, and
14-
Catppuccin colors.
15-
16-
### ✨ Feature
17-
18-
- Add high contrast color themes.
19-
- Add default to the base default theme display name to sort it together when there are many themes in the list.
20-
`GitHub Dark` -> `GitHub Default Dark`
21-
221
### 🌈 Style
232

24-
- Optimize catppuccin theme colors.
3+
- Reduce the displacement when the button is clicked.
254

265
#### More GitHub-like style
276

28-
- Fine tune the heatmap colors of pink soft dark theme.
29-
- Optimize heat map style.
30-
- Optimize the style of workflow log pages.
31-
- Synchronize the style of the notification prompt (small dots).
32-
337
### 🐞 Fix
34-
35-
- Fix the missing highlight style when hovering the heatmap mouse.
36-
- Fix the last commit avatar on the repo homepage being blocked.
37-
- Fix the hovering and activation colors of the sub items in the second level menu of warehouse filtering on the
38-
dashboard page.
39-
- Fix some green label styles.
40-
- Fix Runner task status label style.
41-
- Fix the style of PR comment operation panel.

‎styles/public/transition.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ const transition = css`
8484
fill 80ms cubic-bezier(0.65, 0, 0.35, 1),
8585
background-color 80ms cubic-bezier(0.65, 0, 0.35, 1),
8686
box-shadow 80ms cubic-bezier(0.65, 0, 0.35, 1),
87-
/* 位移慢一点, 这样视觉上与颜色变化同步 */ transform 200ms cubic-bezier(0.65, 0, 0.35, 1),
87+
/* 位移慢一点, 这样视觉上与颜色变化同步 */ transform 80ms cubic-bezier(0.65, 0, 0.35, 1),
8888
border-color 80ms cubic-bezier(0.65, 0, 0.35, 1);
8989
transition-duration: 80ms;
9090
/* 避免在下拉菜单中点击按钮时出现的抖动 */
9191
&:active:not(:has(.menu:active)) {
92-
transform: translateY(1px);
92+
transform: translateY(0.5px);
9393
}
9494
/* 下拉图标的过渡会导致在下移过程中出现的菜单被短暂遮挡 */
9595
&.dropdown {

0 commit comments

Comments
 (0)