Skip to content

content css prop #655

Answered by mikke89
Paril asked this question in Q&A
Aug 15, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

My first thought was a decorator, ie something like:

input.range sliderarrowdec
{
	width: 32dp;
	height: 32dp;
	decorator: text('<' icon-font 24dp);
}

An update on this one. Just added the text decorator to support cases like this: 66d0b7c

decorator: text("Hello 🌎 world!" blue bottom right);

One difference from what was suggested is that it will inherit the font from its parent element instead of specifying it inline. See more here: https://mikke89.github.io/RmlUiDoc/pages/rcss/decorators/text.html

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Paril
Comment options

Comment options

You must be logged in to vote
1 reply
@Paril
Comment options

Answer selected by Paril
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants