Skip to content

Instantly share code, notes, and snippets.

@gonzalad
Created February 28, 2012 11:47
Show Gist options
  • Save gonzalad/1932088 to your computer and use it in GitHub Desktop.
Save gonzalad/1932088 to your computer and use it in GitHub Desktop.
<u:selector name="body .blocAuthentificationInterieure">
<u:style name="background-image">
<f:resource f:key="SphinxGradient">
<f:attribute name="gradientHeight" value="100px"/>
<f:attribute name="height" value="150px"/>
<f:attribute name="gradientColor" skin="blocConnexionInterieureBackgroundColor"/>
</f:resource>
</u:style>
<u:style name="background-repeat" value="repeat"/>
<u:style name="background-position" value="0 50%"/>
</u:selector>
@gonzalad
Copy link
Author

migrated to

body .blocAuthentificationInterieure{
background-image:"url(#{resource['SphinxGradient?gradientHeight=100px&height=150px&gradientColor=Skin.blocConnexionInterieureBackgroundColor']})";
background-repeat:repeat;
background-position:0 70%;
}

@gonzalad
Copy link
Author

Possible solution :

add in resource-mappings :
com.natixis.sphinx.ce.internet.images:blocAuthentificationInterieureBackGroundImage.png=org.richfaces.renderkit.html.BaseGradient
{gradientHeight=100, height=150, gradientColorParam=blocConnexionInterieureBackgroundColor'}

and then in the ecss :

background-image:"url(#{resource['com.natixis.sphinx.ce.internet.images:blocAuthentificationInterieureBackGroundImage.png']})";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment