ploneCustom.css ?

A place for users and developers of the Xataface to discuss and receive support.

Postby Aoirthoir » Mon Aug 21, 2006 7:44 am

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).
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Mon Aug 21, 2006 8:08 am

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.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Re: ploneCustom.css ?

Postby xyloweb » Wed Jan 11, 2012 8:33 am

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 ?
xyloweb
 
Posts: 11
Joined: Tue Oct 11, 2011 5:27 am

Re: ploneCustom.css ?

Postby xyloweb » Wed Jan 11, 2012 8:36 am

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.
xyloweb
 
Posts: 11
Joined: Tue Oct 11, 2011 5:27 am

Re: ploneCustom.css ?

Postby lawrence » Fri Jan 13, 2012 4:34 pm

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
lawrence
 
Posts: 1
Joined: Fri Jan 13, 2012 4:23 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 10 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved