Skip to content

Commit

Permalink
fix: source added for rss single card (#384)
Browse files Browse the repository at this point in the history
* fix: source added and category deleted for rss single card

* fix: category pushed back and created a new content for source

* fix: source moved after title

* fix: same fix for cards with image

* fix: cleaned css file
  • Loading branch information
Wagner3UB authored Nov 2, 2023
1 parent 080416c commit 669f165
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ const CardWithImageRssTemplate = ({
</span>{' '}
</div>
<CardTitle tag="h6">{item.title}</CardTitle>
<div className="source-title">
{item?.source?.length > 0 && (
<span className="source">{item.source}</span>
)}
</div>
</CardBody>
<CardReadMore
iconName="it-arrow-right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ const CardWithoutImageRssTemplate = ({
)}
</div>
<CardTitle tag="h5">{item.title}</CardTitle>
<div className="source-title">
{item?.source?.length > 0 && (
<span className="source">{item.source}</span>
)}
</div>
<CardText tag="p" className="font-serif">
{item.contentSnippet}
</CardText>
Expand Down
17 changes: 17 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_rssBlock.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.rssBlock {
.card {
.card-body {
.source-title {
font-size: $card-category-size;
text-transform: uppercase;
color: $card-p-color;
margin-bottom: $card-category-m-bottom;
.source {
font-weight: bold;
letter-spacing: $card-category-l-spacing;
}
}
}
}
}

#text-body {
.rssBlock {
.row > * {
Expand Down

0 comments on commit 669f165

Please sign in to comment.