[xwiki-devs] CSS content placeholder when customizing a skin
Hello Xwiki devs, I want to customize the COLIBRI skin.. for the very beginning just the colibry.css file. Basically I've just added a few lines to the original file. I don't want to paste into the 'style' text area ( http://localhost:8080/xwiki/bin/edit/XWiki/RtSkin?editor=object) the whole content of the css file because like I said it has minor additions not modifications. Furthermore when a modification is done to the default colibry.css file, mine's will be deprecated! So do you happen to know if there is a placeholder for the default colibry.css file? To make myself clear, I've painted a pictogram : Style________________________________ | %{placeholder for original Colibry.css}% | | AND here are my additions | |____________________________________| -- ing. Flueras Bogdan
Hi Bogdan, On Oct 13, 2010, at 5:16 PM, Bogdan Flueras wrote:
Hello Xwiki devs,
I want to customize the COLIBRI skin.. for the very beginning just the colibry.css file. Basically I've just added a few lines to the original file.
I don't want to paste into the 'style' text area ( http://localhost:8080/xwiki/bin/edit/XWiki/RtSkin?editor=object) the whole content of the css file because like I said it has minor additions not modifications. Furthermore when a modification is done to the default colibry.css file, mine's will be deprecated! So do you happen to know if there is a placeholder for the default colibry.css file?
To make myself clear, I've painted a pictogram :
Style________________________________ | %{placeholder for original Colibry.css}% | | AND here are my additions | |____________________________________|
Does this answer your question: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HE.Addingnewcomponen... ? Thanks -Vincent
You might be interested in the css @import rule. http://www.w3.org/TR/CSS2/cascade.html#at-import Caleb On 10/13/2010 11:16 AM, Bogdan Flueras wrote:
Hello Xwiki devs,
I want to customize the COLIBRI skin.. for the very beginning just the colibry.css file. Basically I've just added a few lines to the original file.
I don't want to paste into the 'style' text area ( http://localhost:8080/xwiki/bin/edit/XWiki/RtSkin?editor=object) the whole content of the css file because like I said it has minor additions not modifications. Furthermore when a modification is done to the default colibry.css file, mine's will be deprecated! So do you happen to know if there is a placeholder for the default colibry.css file?
To make myself clear, I've painted a pictogram :
Style________________________________ | %{placeholder for original Colibry.css}% | | AND here are my additions | |____________________________________|
Hi Bogdan, A skin extension http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial might be the answer to your problem too. Hope this helps, Marius On 10/13/2010 06:16 PM, Bogdan Flueras wrote:
Hello Xwiki devs,
I want to customize the COLIBRI skin.. for the very beginning just the colibry.css file. Basically I've just added a few lines to the original file.
I don't want to paste into the 'style' text area ( http://localhost:8080/xwiki/bin/edit/XWiki/RtSkin?editor=object) the whole content of the css file because like I said it has minor additions not modifications. Furthermore when a modification is done to the default colibry.css file, mine's will be deprecated! So do you happen to know if there is a placeholder for the default colibry.css file?
To make myself clear, I've painted a pictogram :
Style________________________________ | %{placeholder for original Colibry.css}% | | AND here are my additions | |____________________________________|
Indeed, all the replies are a solution to my problem; so thank you! Browsing the web I found an interesting site related on how the browser loads the stylesheets: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/ Conclusion: for performance improvements use link not import... but don't forget that "premature optimization is the root of all evil". -- View this message in context: http://xwiki.475771.n2.nabble.com/CSS-content-placeholder-when-customizing-a... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (4)
-
Bogdan Flueras -
Caleb James DeLisle -
Marius Dumitru Florea -
Vincent Massol