Skip to content

Allow styling entries by category in User CSS#8397

Merged
Alkarex merged 2 commits intoFreshRSS:edgefrom
Inverle:data-category-css
Jan 4, 2026
Merged

Allow styling entries by category in User CSS#8397
Alkarex merged 2 commits intoFreshRSS:edgefrom
Inverle:data-category-css

Conversation

@Inverle
Copy link
Member

@Inverle Inverle commented Jan 3, 2026

Since we have data-feed, it is useful to have data-category too.

Example of usage to hide titles in all entries that belong to a specific category ID:

[data-category="6"] {
	.title { display: none !important }
	.summary {
		position: relative;
		bottom: 2rem;
	}
}

@Inverle Inverle added this to the 1.28.1 milestone Jan 3, 2026
Comment on lines 42 to 43
?>" data-priority="<?= $this->feed->priority()
?>"><?php $this->renderHelper('index/article'); ?>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reader view doesn't have data-link included in entries like normal view does 👀

@Inverle Inverle mentioned this pull request Jan 4, 2026
4 tasks
@Alkarex Alkarex merged commit 4739bcc into FreshRSS:edge Jan 4, 2026
1 check passed
@Inverle Inverle deleted the data-category-css branch January 4, 2026 14:18
@Alwaysin
Copy link
Contributor

Alwaysin commented Jan 4, 2026

Could all these nice additions be added to the docs?

@Alkarex
Copy link
Member

Alkarex commented Jan 5, 2026

Could all these nice additions be added to the docs?

PR welcome :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants