mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-06 18:17:38 +08:00
style: customize markdown rendering
This commit is contained in:
@@ -56,3 +56,63 @@ body {
|
|||||||
border: none !important;
|
border: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************
|
||||||
|
* Markdown 渲染样式
|
||||||
|
*************************/
|
||||||
|
.info-content-text h1,
|
||||||
|
.info-content-text h2,
|
||||||
|
.info-content-text h3,
|
||||||
|
.info-content-text h4,
|
||||||
|
.info-content-text h5,
|
||||||
|
.info-content-text h6 {
|
||||||
|
margin-top: 1em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text ul,
|
||||||
|
.info-content-text ol {
|
||||||
|
padding-left: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text blockquote {
|
||||||
|
margin: 1em 0;
|
||||||
|
padding-left: 1em;
|
||||||
|
border-left: 4px solid #d0d7de;
|
||||||
|
color: #6a737d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text pre {
|
||||||
|
background-color: #f6f8fa;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text code {
|
||||||
|
font-family: 'Courier New', monospace;
|
||||||
|
background-color: rgba(27, 31, 35, 0.05);
|
||||||
|
padding: 2px 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text a {
|
||||||
|
color: var(--primary-color);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text th,
|
||||||
|
.info-content-text td {
|
||||||
|
border: 1px solid #d0d7de;
|
||||||
|
padding: 6px 12px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user