Skip to content

Commit

Permalink
🎈 perf: improve summary
Browse files Browse the repository at this point in the history
on webkit browsers or chrome 89-
  • Loading branch information
小只杉斯 committed Aug 14, 2024
1 parent c2db281 commit c20ad55
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ h3 {
font-size: 1.2rem;
}

summary {
user-select: none;
}

svg {
display: inline-block;
width: 1em;
Expand Down Expand Up @@ -327,10 +323,16 @@ hr {
}

summary {
user-select: none;
outline: none;
display: block; /* 用于隐藏默认的小三角 */
margin-left: 1.5em;
}

summary::-webkit-details-marker {
display: none; /* support chrome 89- */
}

summary::before {
content: '';
position: absolute;
Expand Down

3 comments on commit c20ad55

@latedreamdev
Copy link
Collaborator

@latedreamdev latedreamdev commented on c20ad55 Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我他妈把git的邮箱配置成了user.email=xiaozahisans-awa@outlook.com
image

@teaSummer
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小扎嗨衫斯

@Xia0zhiSans
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哈哈哈 笑死我了

Please sign in to comment.