OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



rt.css and articleView.css

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

rt.css and articleView.css

Postby nef » Thu Oct 25, 2007 1:17 pm

Hi
Today you can overwrite the common.css. I will suggest that you give us the same opportunity regarding the rt.css and articleView.css.
If I make changes in the common.css it will now automatically 'overwrite' the other css-files, and that is not desirable. Cf. my question under OJS Support - Wed Oct 24, 2007 10:12 am 'Abstract page moves to the left '

Regards
nef
 
Posts: 257
Joined: Fri Jun 01, 2007 2:56 am
Location: Aarhus, Denmark

Re: rt.css and articleView.css

Postby asmecher » Thu Oct 25, 2007 4:51 pm

Hi nef,

Generally, I wouldn't recommend editing the site-wide common.css file; you should be able to selectively override those styles by applying a journal stylesheet, which can be uploaded in Journal Setup step 5. This stylesheet should override any of the built-in styles.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: rt.css and articleView.css

Postby nef » Fri Oct 26, 2007 12:32 am

Hi Alec
That's the way I've done it, by uploading in Journal Setup step 5. But the new style sheet - journalStyleSheet.css - overwrites rt.css and articleView.css and that's not desirable, e.g. the body tag on the Abstract page changes from 580px to 800px.

Regards
nef
 
Posts: 257
Joined: Fri Jun 01, 2007 2:56 am
Location: Aarhus, Denmark

Re: rt.css and articleView.css

Postby asmecher » Fri Oct 26, 2007 10:37 am

Hi nef,

Are you using different widths than those specified in styles/common.css? If not, I'd suggest removing the widths from your uploaded stylesheet and allowing common.css to provide those details. That way the additional styles in rt.css and articleView.css won't get clobbered.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: rt.css and articleView.css

Postby nef » Fri Oct 26, 2007 12:40 pm

Thank you so much. It works - perfect.

Regards
nef
 
Posts: 257
Joined: Fri Jun 01, 2007 2:56 am
Location: Aarhus, Denmark


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest