Skip to content

Commit

Permalink
make quotation marks visible in edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaspiterek committed Mar 1, 2024
1 parent 8186303 commit db4176f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const View = (props) => {
</div>
)}
<blockquote
className={data.plaintext?.length < 1 && 'isEmpty'}
cite={data.cite}
lang={data.quotationLanguage}
locale={intl.locale}
lang={data.quotationLanguage || intl.locale}
>
{!isEditMode ? (
<TextBlockView {...props} />
Expand Down
32 changes: 18 additions & 14 deletions src/theme/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
}

.block-editor-quote blockquote > div {
margin: 0em 0em 1em;
margin-bottom: 1em;
}

.block.quote blockquote:not(.block-editor-quote blockquote) {
&[locale='en'] p {
&::before {
content: '"';
}
.block.quote blockquote:not(.isEmpty) {
&[lang='de'] {
p {
&::before {
content: '';
}

&::after {
content: '"';
&::after {
content: '';
}
}
}

&[locale='de'] p {
&::before {
content: '';
}
&[lang='en'] {
p {
&::before {
content: '"';
}

&::after {
content: '';
&::after {
content: '"';
}
}
}
}

0 comments on commit db4176f

Please sign in to comment.