[SOLVED] Call a CSS instead of inherit

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Get Involved
Locked
OMC-SAPPER
Registered User
Posts: 34
Joined: Fri Feb 28, 2014 8:00 am

[SOLVED] Call a CSS instead of inherit

Post by OMC-SAPPER »

Im a total n00b but am trying to help with the bugfixing of a released theme (WoW LOD)

The rules page (installed rules mod) needs tweaking and i have made an update to the boardrules_controller.css

There is not currently that file in this theme so it inherits from Prosilver. How do i change it so that it recognises and uses the new CSS file?
OMC-SAPPER
Registered User
Posts: 34
Joined: Fri Feb 28, 2014 8:00 am

Re: [SOLVED] Call a CSS instead of inherit

Post by OMC-SAPPER »

Would you know, i fixed it as soon as i asked for help.

The CSS file is not part of the prosilver theme but is included as part of the extension (as i should have figured).

I just browsed to the EXT folder and found the CSS in the extension styles folder, removed the code for the background colour and all fixed :)
Khaos-Rage
Registered User
Posts: 71
Joined: Sun Jul 13, 2008 4:31 am

Re: [SOLVED] Call a CSS instead of inherit

Post by Khaos-Rage »

OMC-SAPPER wrote:I just browsed to the EXT folder and found the CSS in the extension styles folder, removed the code for the background colour and all fixed :)
You shouldn't change the code within the extensions folder, it can break if the extension gets updated. Just create an extensions.css in your style and make whatever css changes you need.

Example:
https://github.com/PayBas/style-PBTech/ ... nsions.css
OMC-SAPPER
Registered User
Posts: 34
Joined: Fri Feb 28, 2014 8:00 am

Re: [SOLVED] Call a CSS instead of inherit

Post by OMC-SAPPER »

Thanks for the tip.

I only changed a background-colour:#ebebeb so i doubt it will kill it but its good to know the correct way
OMC-SAPPER
Registered User
Posts: 34
Joined: Fri Feb 28, 2014 8:00 am

Re: [SOLVED] Call a CSS instead of inherit

Post by OMC-SAPPER »

I am a total novice, but how do you call the extensions.css?

I have made one like the above but it doesnt seem to work.
User avatar
Prosk8er
Registered User
Posts: 1510
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [SOLVED] Call a CSS instead of inherit

Post by Prosk8er »

Add extensions.css to stylesheet.css like how the other calls to different css files are
Locked

Return to “[3.1.x] Styles Support & Discussion”