Changes between Version 1 and Version 2 of documentation/RCSS/FontEffects

Show
Ignore:
Author:
peterc (IP: 203.96.63.172)
Timestamp:
04/29/08 12:05:19 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/RCSS/FontEffects

    v1 v2  
     1[[PageOutline(1-5, Contents)]] 
    12= Font Effects = 
     3 
     4Font effects are an extension to CSS for RCSS for applying effects, such as outlining or shadowing, to text. Similarly to [wiki:documentation/RCSS/Decorators decorators], font effects are declared and named in a style sheet like a property, and configured with font-effect-specific properties. Custom font effects can be developed to apply arbitrary effects onto text. 
     5 
     6== Properties == 
     7 
     8Font effects are declared and configured within style sheets in exactly the same manner as [wiki:documentation/RCSS/Decorators decorators], including the 'z-index' property to resolve an ambiguous render order. The only exceptions are noted below: 
     9 
     10=== Colour === 
     11 
     12All font effects have a 'color' property which is applied multiplicatively over the entire effect. 
     13 
     14=== Inheritance === 
     15 
     16Unlike decorators, font effects are inherited from parent elements. For example, the following declaration: 
     17 
     18{{{ 
     19h1 
     20{ 
     21    header-font-effect: outline; 
     22    header-width: 2px; 
     23    header-color: black; 
     24} 
     25}}} 
     26 
     27will add an outline effect on the text within all 'h1' elements and their descendants. To prevent inheritance, override the effect with 'none'. For example, to prevent the 'h1' outline effect from affecting 'span' elements, you could specify the following: 
     28 
     29{{{ 
     30h1 span 
     31{ 
     32    header-font-effect: none; 
     33} 
     34}}}