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

style(scss): solve duplicate selectors

This commit is contained in:
郭桓桓 2023-02-28 20:23:29 +08:00
parent c6ca99239e
commit de1f09bce4
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75

View File

@ -67,17 +67,11 @@
margin-top: 1rem; margin-top: 1rem;
} }
} }
.dark { .dark .shiki-light {
.shiki-light { display: none;
display: none;
}
} }
html { html:not(.dark) .shiki-dark {
&:not(.dark) { display: none;
.shiki-dark {
display: none;
}
}
} }
.item { .item {
text-decoration: none; text-decoration: none;
@ -103,72 +97,13 @@ html {
text-decoration: none; text-decoration: none;
} }
} }
h1 { h1,
&:hover { h2,
.header-anchor { h3,
opacity: .5; h4,
} h5,
}
&:focus {
.header-anchor {
opacity: .5;
}
}
}
h2 {
&:hover {
.header-anchor {
opacity: .5;
}
}
&:focus {
.header-anchor {
opacity: .5;
}
}
}
h3 {
&:hover {
.header-anchor {
opacity: .5;
}
}
&:focus {
.header-anchor {
opacity: .5;
}
}
}
h4 {
&:hover {
.header-anchor {
opacity: .5;
}
}
&:focus {
.header-anchor {
opacity: .5;
}
}
}
h5 {
&:hover {
.header-anchor {
opacity: .5;
}
}
&:focus {
.header-anchor {
opacity: .5;
}
}
}
h6 { h6 {
&:hover { &:hover,
.header-anchor {
opacity: .5;
}
}
&:focus { &:focus {
.header-anchor { .header-anchor {
opacity: .5; opacity: .5;