feat: editor preview styling + code highlighting
This commit is contained in:
61
client/scss/components/markdown-content.scss
Normal file
61
client/scss/components/markdown-content.scss
Normal file
@@ -0,0 +1,61 @@
|
||||
.markdown-content {
|
||||
font-size: 1rem;
|
||||
color: mc('blue-grey', '900');
|
||||
|
||||
// --------------------------------------------
|
||||
// Headers
|
||||
// --------------------------------------------
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: mc('blue-grey', '800');
|
||||
}
|
||||
|
||||
> * + h1, > * + h2, > * + h3, > * + h4 {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
border-bottom: 1px solid mc('blue-grey', '100');
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.25rem;
|
||||
border-bottom: 1px dotted mc('blue-grey', '100');
|
||||
margin-bottom: .75rem;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.15rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
h6 {
|
||||
font-size: 1.025rem;
|
||||
}
|
||||
|
||||
// --------------------------------------------
|
||||
// Code Blocks
|
||||
// --------------------------------------------
|
||||
> pre {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
box-shadow: initial;
|
||||
background-color: mc('blue-grey', '900');
|
||||
padding: 1rem 1rem 1rem 3rem;
|
||||
|
||||
> code {
|
||||
box-shadow: initial;
|
||||
display: block;
|
||||
font-size: .85rem;
|
||||
|
||||
&:after, &:before {
|
||||
content: initial;
|
||||
letter-spacing: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user