Skip to content

Commit 1e86923

Browse files
committed
添加全局颜色变化过渡
1 parent 84a5f30 commit 1e86923

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/components/HeadMenu.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ const pathList = [
223223
text-decoration: none; /* 去除下划线 */
224224
border-radius: 18px; /* 圆角 */
225225
font-size: 19px; /* 字体大小 */
226-
transition:
227-
background-color 0.2s ease-in-out,
228-
color 0.2s ease-in-out;
229-
/* flex-shrink: 0; */
230226
}
231227

232228
.menu > a:hover {

src/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ html {
1515
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
1616
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
1717
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
18+
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
1819
}
1920

2021
img,

0 commit comments

Comments
 (0)