Skip to content

Commit

Permalink
🍎 safari <summary> reset list-style
Browse files Browse the repository at this point in the history
  • Loading branch information
nanarino committed Jun 30, 2024
1 parent 05e3179 commit caad964
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/lib/components/menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
gap 0.5em

ul&
details&
list-style none
&::-webkit-details-marker
display none
&::-moz-list-bullet
display none
&::marker
display none
details&
margin 0
&[open]>summary
/**
* 展开时 有间距
*/
margin-block-end @gap
gap 0
&>summary
&::-webkit-details-marker
display none
&::-moz-list-bullet
display none
&::marker
display none
../[open]>summary
/**
* 展开时 有间距
*/
margin-block-end @gap
gap 0
// 在Safari中使用 `::before` 的元素不支持 `text-indent`
// 请使用 `&::after`
summary
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/panel.styl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
&:where(:not([data-primary]))
--color-panel var(--white)

summary
&>summary
display flex
justify-content space-between
align-items center
Expand Down

0 comments on commit caad964

Please sign in to comment.