Stylesheet confusion

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
BrianB

Stylesheet confusion

Post by BrianB »

OK, I'm officially confused by how CMSms handles stylesheets.

I've got a couple of templates in use, currently one for the front page & one for everything else, but the CSS is identical - the differences are all in the HTML. Rather than maintaining two sets of stylesheets I created one sheet in Layout->Stylesheet and linked it to both templates.

However, the CSS that appears when you edit the templates is still overriding the linked CSS, which is hardly going to save me any work...

I've taken the somewhat drastic step of deleting all the contents of both template's CSS, and while this works, it seems like a hack... but it does let me edit just one stylesheet to make global changes again...

I'm still running 0.10.3 - has this changed in 0.11.1?
westis

Re: Stylesheet confusion

Post by westis »

BrianB wrote: I'm still running 0.10.3 - has this changed in 0.11.1?
Yes, this has changed a bit in 0.11.1, see here.

In 0.10.x you could use both the stylesheet on the template page and/or attach stylesheets separately. If the stylesheet on the template page was not empty it was overriding the separately attached stylesheets if the same css was in both.

But you could also just empty the stylesheet on the template page and only use the external stylesheet (as in 0.11.x), which would let you achieve what you are looking for.

Hope that helps.

:D
Locked

Return to “CMSMS Core”