195 lines
No EOL
3.6 KiB
CSS
195 lines
No EOL
3.6 KiB
CSS
/* Enhanced Markdown Styling */
|
|
.markdown-content {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
word-wrap: break-word;
|
|
color: #24292e;
|
|
}
|
|
|
|
.markdown-content h1,
|
|
.markdown-content h2,
|
|
.markdown-content h3,
|
|
.markdown-content h4,
|
|
.markdown-content h5,
|
|
.markdown-content h6 {
|
|
margin-top: 24px;
|
|
margin-bottom: 16px;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.markdown-content h1 {
|
|
font-size: 2em;
|
|
border-bottom: 1px solid #eaecef;
|
|
padding-bottom: .3em;
|
|
}
|
|
|
|
.markdown-content h2 {
|
|
font-size: 1.5em;
|
|
border-bottom: 1px solid #eaecef;
|
|
padding-bottom: .3em;
|
|
}
|
|
|
|
.markdown-content h3 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-content h4 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-content p {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-content blockquote {
|
|
padding: 0 1em;
|
|
color: #6a737d;
|
|
border-left: 0.25em solid #dfe2e5;
|
|
margin: 0 0 16px 0;
|
|
}
|
|
|
|
.markdown-content pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f6f8fa;
|
|
border-radius: 3px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-content code {
|
|
padding: 0.2em 0.4em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(27, 31, 35, 0.05);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-content pre code {
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-content table {
|
|
border-spacing: 0;
|
|
border-collapse: collapse;
|
|
margin-bottom: 16px;
|
|
width: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-content table th,
|
|
.markdown-content table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #dfe2e5;
|
|
}
|
|
|
|
.markdown-content table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #c6cbd1;
|
|
}
|
|
|
|
.markdown-content table tr:nth-child(2n) {
|
|
background-color: #f6f8fa;
|
|
}
|
|
|
|
/* GitHub-style alerts */
|
|
.markdown-alert {
|
|
padding: 0.5rem 1rem;
|
|
margin-bottom: 16px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.markdown-alert p {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-alert p:first-of-type {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.markdown-alert-title {
|
|
font-weight: bold;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.markdown-alert-note {
|
|
background-color: #f1f8ff;
|
|
border-left: 4px solid #58a6ff;
|
|
}
|
|
|
|
.markdown-alert-tip {
|
|
background-color: #dafbe1;
|
|
border-left: 4px solid #2da44e;
|
|
}
|
|
|
|
.markdown-alert-important {
|
|
background-color: #fff8c5;
|
|
border-left: 4px solid #bf8700;
|
|
}
|
|
|
|
.markdown-alert-warning {
|
|
background-color: #fff8c5;
|
|
border-left: 4px solid #bf8700;
|
|
}
|
|
|
|
.markdown-alert-caution {
|
|
background-color: #ffebe9;
|
|
border-left: 4px solid #cf222e;
|
|
}
|
|
|
|
/* Add this to ensure consistent display of markdown content */
|
|
.markdown-body {
|
|
color: inherit;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.markdown-content {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #24292e;
|
|
overflow-wrap: break-word;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-content h1:first-child,
|
|
.markdown-content h2:first-child,
|
|
.markdown-content h3:first-child,
|
|
.markdown-content h4:first-child,
|
|
.markdown-content h5:first-child,
|
|
.markdown-content h6:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Additional styling for consistency in all views */
|
|
.markdown-content pre,
|
|
.markdown-body pre {
|
|
background-color: #f6f8fa;
|
|
border-radius: 3px;
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
|
|
font-size: 85%;
|
|
}
|
|
|
|
.markdown-content code,
|
|
.markdown-body code {
|
|
background-color: rgba(27, 31, 35, 0.05);
|
|
border-radius: 3px;
|
|
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
|
|
font-size: 85%;
|
|
margin: 0;
|
|
padding: 0.2em 0.4em;
|
|
}
|
|
|
|
/* Make sure all GitHub-style alert boxes look the same */
|
|
.markdown-alert {
|
|
padding: 8px 16px;
|
|
margin-bottom: 16px;
|
|
border-radius: 6px;
|
|
} |