You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/12/22 16:17:10 UTC
[jira] (MSKINS-87) Add possibility to refer to external CSS in
fluido skin configuration
[ https://jira.codehaus.org/browse/MSKINS-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359491#comment-359491 ]
Michael Osipov edited comment on MSKINS-87 at 12/22/14 9:15 AM:
----------------------------------------------------------------
You can use this [technique|http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html#Adding_Extra_Resources] and nest {{@import}} in your custom CSS or apply [this|http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Inject_xhtml_into_head] one. That should solve the issue.
was (Author: michael-o):
You can use the [technique|http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html#Adding_Extra_Resources] described here and nest {{@import}} in your custom CSS or apply [this|http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Inject_xhtml_into_head] one. That should solve the issue.
> Add possibility to refer to external CSS in fluido skin configuration
> ---------------------------------------------------------------------
>
> Key: MSKINS-87
> URL: https://jira.codehaus.org/browse/MSKINS-87
> Project: Maven Skins
> Issue Type: Improvement
> Components: Fluido Skin
> Affects Versions: fluido-1.3.0
> Reporter: Laurent Gauthier
>
> This is a proposed and tested enhancement to the fluido skin custom config to allow the addition of one or more links to CSS files in generated html. The enhanced custom config supports a <cssLinks> element as in the following example:
> <custom>
> <fluidoSkin>
> <topBarEnabled>true</topBarEnabled>
> <topBarIcon>
> <!-- To be completed -->
> </topBarIcon>
> <cssLinks>
> Â Â Â Â <cssLink>
> http://server.name.domaine/path/to/stylesheet.css</cssLink>
> Â Â </cssLinks>
> Â Â </fluidoSkin>
> </custom>
> The site.vm velocity template file must be modified to include the following snippet at line 783 (v1.3.0):
> #if ( $decoration.custom.getChild( 'fluidoSkin' )
> Â Â Â && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'cssLinks' ))
> Â Â #foreach( $item in $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'cssLinks').getChildren() )
> Â Â Â Â Â Â Â Â <link rel="stylesheet" href="$item.getValue()" /> Â Â Â Â Â Â
>   #end     Â
> #end
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)