RCSS ColorsBackgrounds: Difference between revisions

MjnMixael (talk | contribs)
No edit summary
MjnMixael (talk | contribs)
Replaced content with "{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RCSS-ColorsBackgrounds}}"
Tag: Replaced
 
Line 1: Line 1:
{{RCSS}}
{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RCSS-ColorsBackgrounds}}
==Foreground colour: the ‘color’ property==
*color
 
{| border=1 cellpadding=4 style="border-collapse: collapse"
|-
| Value:
| <colour>
|-
| Initial:
| black
|-
| Applies to:
| all elements
|-
| Inherited:
| yes
|-
| Percentages:
| N/A
|}
This property sets the colour of rendered text and text decorations.
 
==Background colour==
In RCSS, an element’s background can be set as a flat colour but not an image. This functionality (and much more!) instead lies with decorators.
 
*background-color
 
{| border=1 cellpadding=4 style="border-collapse: collapse"
|-
| Value:
| <colour>
|-
| Initial:
| transparent
|-
| Applies to:
| all elements
|-
| Inherited:
| no
|-
| Percentages:
| N/A
|}
This property sets the color of the element’s generated boxes. The background colour is rendered under a box’s padded area.
 
*background
**An alias for background-color.

Latest revision as of 18:33, 28 October 2026

This page has moved. SCPUI documentation now lives on the SCPUI GitHub wiki.
See the new version of this page. The old content is still available in this page's history.