style(markdown): improve selectors
This commit is contained in:
parent
decfa2c47c
commit
8da53d8cde
|
@ -1,12 +1,10 @@
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
color: var(--xm-c-general);
|
color: var(--xm-c-general);
|
||||||
font-family: var(--xm-font-display) !important;
|
font-family: var(--xm-font-display) !important;
|
||||||
pre {
|
pre:not(.shiki, .highlight) {
|
||||||
&:not(.shiki, .highlight) {
|
margin: 0;
|
||||||
margin: 0;
|
padding: 0;
|
||||||
padding: 0;
|
background: transparent;
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.shiki,
|
.shiki,
|
||||||
.highlight {
|
.highlight {
|
||||||
|
@ -81,7 +79,7 @@ html:not(.dark) .shiki-dark,
|
||||||
.header-anchor {
|
.header-anchor {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: .125rem;
|
margin-top: .125rem;
|
||||||
margin-left: -1.2rem;
|
margin-left: -1.25rem;
|
||||||
padding-right: .5rem;
|
padding-right: .5rem;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
font-size: .875rem;
|
font-size: .875rem;
|
||||||
|
@ -92,16 +90,13 @@ html:not(.dark) .shiki-dark,
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h1,
|
@for $i from 1 through 6 {
|
||||||
h2,
|
h#{$i} {
|
||||||
h3,
|
&:hover,
|
||||||
h4,
|
&:focus {
|
||||||
h5,
|
.header-anchor {
|
||||||
h6 {
|
opacity: .5;
|
||||||
&:hover,
|
}
|
||||||
&:focus {
|
|
||||||
.header-anchor {
|
|
||||||
opacity: .5;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue