Skip to content

Commit

Permalink
Commit CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mikobe2020 committed Oct 7, 2024
1 parent ce614be commit 6b94e62
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions blocks/quote/quote.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.block.quote {
background-color: #ccc;
padding: 0 0 24px;
display: flex;
flex-direction: column;
margin: 1rem 0;
}

.block.quote blockquote {
margin: 16px;
text-indent: 0;
}

.block.quote > div:last-child > div {
margin: 0 16px;
font-size: small;
font-style: italic;
position: relative;
}

.block.quote > div:last-child > div::after {
content: "";
display: block;
position: absolute;
left: 0;
bottom: -8px;
height: 5px;
width: 30px;
background-color: darkgray;
}
8 changes: 8 additions & 0 deletions blocks/quote/quote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function decorate(block) {
const [quoteWrapper] = block.children;

Check failure on line 2 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 4

Check failure on line 3 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
const blockquote = document.createElement('blockquote');

Check failure on line 4 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 4
blockquote.textContent = quoteWrapper.textContent.trim();

Check failure on line 5 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 4
quoteWrapper.replaceChildren(blockquote);

Check failure on line 6 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 4
}

Check failure on line 7 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 0 spaces but found 2

Check failure on line 8 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed

Check failure on line 8 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Too many blank lines at the end of file. Max of 0 allowed

Check failure on line 8 in blocks/quote/quote.js

View workflow job for this annotation

GitHub Actions / build

Newline required at end of file but not found

0 comments on commit 6b94e62

Please sign in to comment.