Skip to content

Commit

Permalink
Remove inline CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Aug 6, 2024
1 parent d15ee2d commit 732213d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const RelatedItems = ({ relatedItems, intl }) => {
}

return (
<Container style={{ 'margin-top': '20px' }}>
<Container className="related-items">
<h2>{intl.formatMessage(messages.relatedItems)}</h2>
<ul>
{relatedItems.map((relatedItem) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

exports[`Related Items renders with related items 1`] = `
<div
className="ui container"
style={
Object {
"margin-top": "20px",
}
}
className="ui container related-items"
>
<h2>
Related Items
Expand Down Expand Up @@ -41,12 +36,7 @@ exports[`Related Items renders with related items 1`] = `

exports[`Related Items renders with related items has null 1`] = `
<div
className="ui container"
style={
Object {
"margin-top": "20px",
}
}
className="ui container related-items"
>
<h2>
Related Items
Expand Down
5 changes: 5 additions & 0 deletions packages/volto/theme/themes/pastanaga/extras/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ img.responsive {
height: auto;
}

// Related Items
.related-items {
margin-top: 20px;
}

// Deprecated as per https://github.com/plone/volto/issues/1265
// @import 'utils';
@import (multiple) '../extras/fonts';
Expand Down

0 comments on commit 732213d

Please sign in to comment.