mirror of
https://github.com/wassname/template.git
synced 2026-06-27 20:23:34 +08:00
186 lines
2.6 KiB
CSS
186 lines
2.6 KiB
CSS
d-article {
|
|
contain: content;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
padding-top: 2rem;
|
|
color: rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
d-article > * {
|
|
grid-column: text;
|
|
}
|
|
|
|
@media(min-width: 768px) {
|
|
d-article {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
@media(min-width: 1024px) {
|
|
d-article {
|
|
font-size: 1rem;
|
|
line-height: 1.7em;
|
|
}
|
|
}
|
|
|
|
|
|
/* H2 */
|
|
|
|
|
|
d-article .marker {
|
|
text-decoration: none;
|
|
border: none;
|
|
counter-reset: section;
|
|
grid-column: kicker;
|
|
line-height: 1.7em;
|
|
}
|
|
|
|
d-article .marker:hover {
|
|
border: none;
|
|
}
|
|
|
|
d-article .marker span {
|
|
padding: 0 3px 4px;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
|
position: relative;
|
|
top: 4px;
|
|
}
|
|
|
|
d-article .marker:hover span {
|
|
color: rgba(0, 0, 0, 0.7);
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
d-article h2 {
|
|
grid-column-end: page-end;
|
|
font-weight: 700;
|
|
font-size: 24px;
|
|
line-height: 1.25em;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
@media(min-width: 1024px) {
|
|
d-article h2 {
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
|
|
/* H3 */
|
|
|
|
d-article h3 {
|
|
font-weight: 700;
|
|
font-size: 18px;
|
|
line-height: 1.4em;
|
|
margin-bottom: 24px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
@media(min-width: 1024px) {
|
|
d-article h3 {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/* H4 */
|
|
|
|
d-article h4 {
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 14px;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
d-article a {
|
|
color: inherit;
|
|
}
|
|
|
|
d-article p,
|
|
d-article ul,
|
|
d-article ol {
|
|
/*font-family: georgia, serif;*/
|
|
margin-top: 0;
|
|
margin-bottom: 1em;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
d-article a {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
|
|
text-decoration: none;
|
|
}
|
|
|
|
d-article a:hover {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
d-article .link {
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
d-article ul,
|
|
d-article ol {
|
|
padding-left: 24px;
|
|
}
|
|
|
|
d-article li {
|
|
margin-bottom: 24px;
|
|
margin-left: 0;
|
|
padding-left: 0;
|
|
}
|
|
|
|
d-article pre {
|
|
font-size: 14px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
d-article hr {
|
|
grid-column: screen;
|
|
width: 100%;
|
|
border: none;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
|
margin-top: 60px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
d-article section {
|
|
margin-top: 60px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
d-article span.equation-mimic {
|
|
font-family: georgia;
|
|
font-size: 115%;
|
|
font-style: italic;
|
|
}
|
|
|
|
d-article > d-code,
|
|
d-article section > d-code {
|
|
display: block;
|
|
}
|
|
|
|
d-article > d-math[block],
|
|
d-article section > d-math[block] {
|
|
display: block;
|
|
}
|
|
|
|
d-article .citation {
|
|
color: #668;
|
|
cursor: pointer;
|
|
}
|
|
|
|
d-include {
|
|
width: auto;
|
|
display: block;
|
|
}
|
|
|
|
d-figure {
|
|
contain: content;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* KaTeX */
|
|
|
|
.katex, .katex-prerendered {
|
|
contain: content;
|
|
display: inline-block;
|
|
}
|