143 lines
2.1 KiB
SCSS
143 lines
2.1 KiB
SCSS
.markdown {
|
|
line-height: 1.6;
|
|
color: var(--text-primary, #1a1a1a);
|
|
|
|
// Headers
|
|
.h1 {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
margin: 8px 0 6px;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.h2 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
margin: 8px 0 4px;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.h3 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
margin: 6px 0 4px;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.h4,
|
|
.h5,
|
|
.h6 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
margin: 6px 0 4px;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
// Paragraph
|
|
.paragraph {
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 1.6;
|
|
margin: 0 0 6px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
// Lists
|
|
.listItem {
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
margin: 1px 0 1px 24px;
|
|
list-style-position: outside;
|
|
}
|
|
|
|
// Inline formatting
|
|
.bold {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
// Code
|
|
.codeBlock {
|
|
background-color: #f5f5f5;
|
|
border-radius: 6px;
|
|
padding: 12px 16px;
|
|
margin: 8px 0;
|
|
overflow-x: auto;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.code {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: #333;
|
|
}
|
|
|
|
.inlineCode {
|
|
background-color: #f5f5f5;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 14px;
|
|
color: #d63384;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
// Blockquote
|
|
.blockquote {
|
|
border-left: 4px solid #646464;
|
|
padding-left: 16px;
|
|
margin: 8px 0;
|
|
color: #646464;
|
|
font-style: italic;
|
|
}
|
|
|
|
// Horizontal rule
|
|
.hr {
|
|
border: none;
|
|
border-top: 1px solid #e0e0e0;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
// Links
|
|
.link {
|
|
color: #0066cc;
|
|
text-decoration: underline;
|
|
transition: color 0.2s;
|
|
|
|
&:hover {
|
|
color: #0052a3;
|
|
}
|
|
}
|
|
|
|
// Line breaks
|
|
br {
|
|
display: block;
|
|
content: "";
|
|
margin: 2px 0;
|
|
}
|
|
}
|