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

Show
Ignore:
Author:
peterc (IP: 203.96.63.172)
Timestamp:
04/03/08 13:05:24 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/RCSS/Text

    v1 v2  
    4242The colour of any decoration is the same as the font colour. Note that 'overline' and 'line-through' is not yet supported in RCSS. 
    4343 
    44 === Text shadows: the 'text-shadow' property === 
     44=== Text shadows: the 'shadow' font effect === 
    4545 
    46 Text can have a coloured shadow applied behind it. The shadow is defined by three variables: an offset along x, an offset along y, and a colour. 
    47  
    48 ''text-shadow-x'', ''text-shadow-y'' 
    49 || ''Value:'' || <length> || 
    50 || ''Initial:'' || 0px || 
    51 || ''Applies to:'' || all elements || 
    52 || ''Inherited:'' || yes || 
    53 || ''Percentages:'' || N/A || 
    54  
    55 'text-shadow-x' and 'text-shadow-y' define the horizontal and vertical offset of the shadow from its text. If they are both '0' (the default), then no shadow will be rendered. 
    56  
    57 ''text-shadow-color'' 
    58 || ''Value:'' || <color> || 
    59 || ''Initial:'' || black || 
    60 || ''Applies to:'' || all elements || 
    61 || ''Inherited:'' || yes || 
    62 || ''Percentages:'' || N/A || 
    63  
    64 ''text-shadow''[[BR]] 
    65 A shorthand for specifying all three shadow parameters at once. 
     46Instead of using the CSS-standard 'text-shadow' property, text-shadowing is implemented in libRocket using the more generic font effect system. Below is an example of how to specify a shadow for an element of text. 
    6647 
    6748{{{ 
    6950h1 
    7051{ 
    71     text-shadow: 2px 2px grey; 
     52    darken-font-effect: shadow; 
     53    darken-offset: 2px 2px; 
     54    darken-color: grey; 
    7255} 
    7356}}} 
    74  
    75 Note that in RCSS you can only specify a single text shadow, and shadow blurring is not yet supported. 
    7657 
    7758== Whitespace: the 'white-space' property ==