mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
refactor!: deprecate .prose class and lint
This commit is contained in:
29
src/partials/quote.scss
Normal file
29
src/partials/quote.scss
Normal file
@ -0,0 +1,29 @@
|
||||
blockquote,
|
||||
q {
|
||||
margin-top: 1.65rem;
|
||||
margin-bottom: 1.65rem;
|
||||
padding: .6rem 1.2rem;
|
||||
border-left: .25rem solid var(--xm-c-quote-border);
|
||||
color: inherit;
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
line-height: 1.5rem;
|
||||
quotes: '\201C''\201D''\2018''\2019';
|
||||
opacity: .8;
|
||||
p {
|
||||
&:first-of-type::before {
|
||||
content: open-quote;
|
||||
}
|
||||
&:last-of-type::after {
|
||||
content: close-quote;
|
||||
}
|
||||
}
|
||||
> * {
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user