<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=RCSS_Decorators</id>
	<title>RCSS Decorators - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=RCSS_Decorators"/>
	<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;action=history"/>
	<updated>2026-11-15T16:23:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67847&amp;oldid=prev</id>
		<title>MjnMixael: Replaced content with &quot;{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RCSS-Decorators}}&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67847&amp;oldid=prev"/>
		<updated>2026-10-28T18:34:42Z</updated>

		<summary type="html">&lt;p&gt;Replaced content with &amp;quot;{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RCSS-Decorators}}&amp;quot;&lt;/p&gt;
&lt;a href=&quot;https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;amp;diff=67847&amp;amp;oldid=67149&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>MjnMixael</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67149&amp;oldid=prev</id>
		<title>-Joshua- at 12:28, 16 March 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67149&amp;oldid=prev"/>
		<updated>2026-03-16T12:28:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:28, 16 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l134&quot;&gt;Line 134:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 134:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==image decorators==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==image decorators==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Image decorators in Freespace Open&amp;#039;s instance of librocket support a custom paramter, &amp;lt;code&amp;gt;image-fit&amp;lt;/code&amp;gt;. Valid values are Stretch, Contain, Fill.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Image decorators in Freespace Open&amp;#039;s instance of librocket support a custom paramter, &amp;lt;code&amp;gt;image-fit&amp;lt;/code&amp;gt;. Valid values are Stretch, Contain, Fill.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.general_bg&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	background-decorator: image;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	background-image: 2_preload.png;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	background-image-fit: contain;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==libRocket decorators==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==libRocket decorators==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>-Joshua-</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67148&amp;oldid=prev</id>
		<title>MjnMixael at 17:59, 14 March 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=67148&amp;oldid=prev"/>
		<updated>2026-03-14T17:59:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:59, 14 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l131&quot;&gt;Line 131:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 131:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==image decorators==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Image decorators in Freespace Open&#039;s instance of librocket support a custom paramter, &amp;lt;code&amp;gt;image-fit&amp;lt;/code&amp;gt;. Valid values are Stretch, Contain, Fill.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==libRocket decorators==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==libRocket decorators==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MjnMixael</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=64771&amp;oldid=prev</id>
		<title>MjnMixael: Created page with &quot;{{RCSS}} Decorators are an extension to CSS for RCSS. A decorator can be declared and named in a style sheet like a property, and then configured with decorator-specific prope...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=RCSS_Decorators&amp;diff=64771&amp;oldid=prev"/>
		<updated>2023-04-22T18:22:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RCSS}} Decorators are an extension to CSS for RCSS. A decorator can be declared and named in a style sheet like a property, and then configured with decorator-specific prope...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RCSS}}&lt;br /&gt;
Decorators are an extension to CSS for RCSS. A decorator can be declared and named in a style sheet like a property, and then configured with decorator-specific properties. Custom decorator types can be developed to suit the needs of the user, and in this manner any kind of decoration can be applied to an element.&lt;br /&gt;
&lt;br /&gt;
Important: Note that decorators can only be declared and defined in style sheets, not in style defined inline to an element.&lt;br /&gt;
&lt;br /&gt;
==Declaring decorators==&lt;br /&gt;
The declaration of a decorator is a property of the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;-decorator: &amp;lt;type&amp;gt;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;name&amp;gt; is the user-specified name of the decorator to declare, and &amp;lt;type&amp;gt; is the application-specific type of decorator. libRocket ships with the following decorator types:&lt;br /&gt;
*image&lt;br /&gt;
*tiled-box&lt;br /&gt;
*tiled-horizontal&lt;br /&gt;
*tiled-vertical&lt;br /&gt;
The decorator type none is a reserved name that represents no decorator. For example, in the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
button&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: tiled-horizontal;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the RCSS is attaching a decorator of type tiled-horizontal called ‘icon’ to all button elements. Note that the name ‘icon’ could be anything; it is only used to uniquely identify the decorator for applying properties to it.&lt;br /&gt;
&lt;br /&gt;
Decorator types can be overridden like any other property. So, in the example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
h1&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: image;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
h1:hover&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all h1 tags will have an image decorator attached, except when they are being hovered, when the decorator will not be rendered.&lt;br /&gt;
&lt;br /&gt;
==Decorator properties==&lt;br /&gt;
Decorators have their own property specifications with properties and shorthands, and these can be defined for declared decorators just like any other property. Decorator properties are set in the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;-&amp;lt;property&amp;gt;: &amp;lt;value&amp;gt;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;name&amp;gt; is the name the decorator was declared under, &amp;lt;property&amp;gt; is the name of the decorator’s property to set, and &amp;lt;value&amp;gt; is the value of the property. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
h1&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: image;&lt;br /&gt;
	icon-image-src: ../images/header_arrow.png;&lt;br /&gt;
	icon-image-s-begin: 5px;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
an image decorator is declared, called ‘icon’. On this decorator, the properties &amp;lt;name&amp;gt;-image-src is set to ‘../images/header_arrow.png’ and &amp;lt;name&amp;gt;-image-s-begin is set to ‘5px’. The other properties in the image specification are left to their defaults.&lt;br /&gt;
&lt;br /&gt;
The decorator properties behave like other properties, so are subject to precedence and the cascade. For example, if the following RCSS was loaded after the previous example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
h1&lt;br /&gt;
{&lt;br /&gt;
	icon-image-s-begin: 3px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
h1:first-child&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: none;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all h1 tags will have their ‘icon’ decorators defined with an &amp;lt;name&amp;gt;-s-begin property of ‘3px’ instead of ‘5px’, and an h1 that is a first child will have no decorator.&lt;br /&gt;
&lt;br /&gt;
Be careful of name conflicts! For example, in the following sample:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
h1&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: image;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.secondary&lt;br /&gt;
{&lt;br /&gt;
	icon-decorator: tiled-horizontal;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
an element of type h1 with a class of ‘secondary’ will have a single decorator, ‘icon’, of type tiled-horizontal. If the decorators had different names then they both would be present.&lt;br /&gt;
&lt;br /&gt;
Specifying render order&lt;br /&gt;
If an element has more than one decorator on it, you can use the ‘z-index’ decorator property to control the render order in a similar fashion to elements. For example, in this sample:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
button&lt;br /&gt;
{&lt;br /&gt;
	background-decorator: tiled-horizontal;&lt;br /&gt;
	background-z-index: 0;&lt;br /&gt;
&lt;br /&gt;
	icon-decorator: image;&lt;br /&gt;
	icon-z-index: 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the ‘icon’ decorator will appear on top of the ‘background’ decorator. If no z-index is specified on a decorator, it will have the default z-index of 0.&lt;br /&gt;
&lt;br /&gt;
Decorators and pseudo-classes&lt;br /&gt;
Because of the way libRocket compiles pseudo-class rules within style sheets, overriding decorator properties within dynamic pseudo-classes (:active, :hover and :focus, not any of the structural classes) might not always work the way you think it should.&lt;br /&gt;
&lt;br /&gt;
In a nutshell, each decorator will only process properties from their element’s base rules (ie, those not specifying dynamic pseudo-classes in their final simple selector) and one rule specifying a dynamic pseudo-class (or classes), that with the highest specificity. For example, in the following sample:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
button&lt;br /&gt;
{&lt;br /&gt;
	background-decorator: tiled-horizontal;&lt;br /&gt;
	background-image-src: ../button.png;&lt;br /&gt;
	background-image-s-end: 128px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
button:hover&lt;br /&gt;
{&lt;br /&gt;
	background-image-t-begin: 32px;&lt;br /&gt;
	background-image-t-end: 64px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
button:active&lt;br /&gt;
{&lt;br /&gt;
	background-image-s-begin: 128px;&lt;br /&gt;
	background-image-s-end: 256px;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
if both the :hover and :active pseudo-classes are active on a button element, the &amp;lt;name&amp;gt;-image-s-begin and &amp;lt;name&amp;gt;-image-s-end properties from the :active rule will be set, but the &amp;lt;name&amp;gt;-image-t-begin and &amp;lt;name&amp;gt;-image-t-end properties from the :hover rule will be ignored. The :active rule is used as it has higher precedence that the :hover rule, appearing further down the file. If you wanted both the s and t properties set, you could create another rule:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
button:active:hover&lt;br /&gt;
{&lt;br /&gt;
	background-image-t-begin: 32px;&lt;br /&gt;
	background-image-t-end: 64px;&lt;br /&gt;
	background-image-s-begin: 128px;&lt;br /&gt;
	background-image-s-end: 256px;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==libRocket decorators==&lt;br /&gt;
libRocket comes with several built-in decorators for displaying images and tiled images behind elements.&lt;br /&gt;
&lt;br /&gt;
*image decorator, for displaying a single stretched image.&lt;br /&gt;
*tiled-horizontal decorator, for tiling images horizontally.&lt;br /&gt;
*tiled-vertical decorator, for tiling images vertically.&lt;br /&gt;
*tiled-box decorator, for tiling images across a box.&lt;/div&gt;</summary>
		<author><name>MjnMixael</name></author>
	</entry>
</feed>