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
1 changed files with 10 additions and 75 deletions

View File

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