Page 1 of 1
Posted:
Mon Aug 21, 2006 7:44 am
by Aoirthoir
Looking over the plone.css it suggests making our changes in ploneCustom.css, but does not make a call to it anywhere. Does Dataface make such a call currently? (I am going to add an include at the bottom of plone.css).
Posted:
Mon Aug 21, 2006 8:08 am
by Aoirthoir
Neber mind... It worked...
all you have to do is place this at the beginning of the plone.css:
@import url(ploneCustom.css);
Really you could put whatever you want there. Import to your hearts content...long and the short is, its the only change you have to make to the plone.css, rather than buggerin through it to make all the changes each time..or if you update dataface, and some changes to plone.css are part of the dataface main...then you can keep those and have yours as well. Tis better than just having a plone.css of your own and overwriting the update.
Re: ploneCustom.css ?
Posted:
Wed Jan 11, 2012 8:33 am
by xyloweb
Hi,
I try to import my ploneCustom css for override some html attributs
W3C says :
The '@import' rule allows users to import style rules from other style sheets. In CSS 2.1, any @import rules must precede all other rules (except the @charset rule, if present)
But if I do this, plone.css overrides my ploneCustom.css !!!!
How to do ?
Re: ploneCustom.css ?
Posted:
Wed Jan 11, 2012 8:36 am
by xyloweb
To work fine I must do this :
1) create ploneDefault.css with contents of initial plone.css
2) create ploneCustom.css
3) update plone.css like this :
@import url(ploneDefault.css);
@import url(ploneCustom.css);
and now, it works fine.
Re: ploneCustom.css ?
Posted:
Fri Jan 13, 2012 4:34 pm
by lawrence
Put ploneCustom.css into your application directory (and link in slot name="custom_stylesheets" in Dataface_Main_Template.html) and whatever's in it will override same entry in plone.css