1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

refactor(markdown): fix duplicate selector rules

This commit is contained in:
郭桓桓 2023-03-02 00:27:50 +08:00
parent a307ac8851
commit 7ab2bd67ea
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75

View File

@ -54,11 +54,9 @@
margin-bottom: 0; margin-bottom: 0;
} }
} }
p { p:first-of-type {
&:first-of-type::before { &::before,
content: none; &::after {
}
&:first-of-type::after {
content: none; content: none;
} }
} }
@ -67,12 +65,10 @@
margin-top: 1rem; margin-top: 1rem;
} }
} }
html:not(.dark) .shiki-dark,
.dark .shiki-light { .dark .shiki-light {
display: none; display: none;
} }
html:not(.dark) .shiki-dark {
display: none;
}
.item { .item {
text-decoration: none; text-decoration: none;
opacity: .6; opacity: .6;
@ -90,9 +86,7 @@ html:not(.dark) .shiki-dark {
text-decoration: none; text-decoration: none;
border: 0 !important; border: 0 !important;
opacity: 0; opacity: 0;
&:hover { &:hover,
text-decoration: none;
}
&:focus { &:focus {
text-decoration: none; text-decoration: none;
} }