Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

What's the justification for including a theme's typography.css file in the CMS?


Go to End


3 Posts   2724 Views

Avatar
Tatey

Community Member, 18 Posts

23 October 2007 at 1:48am

Edited: 23/10/2007 1:50am

After creating a new theme for my Silverstripe powered site, I noticed that the text and hyperlink colours in the CMS administration panel were all skewed.

After poking around, I recognised that CMS was pulling the typography.css file from my theme. Subsequently, this resulted in abnormally large text and unexpected colours while browsing the administration interface.

I'm interested to hear the justification for doing this. I was under the impression that published site and administration panel were entirely different.

At any rate, you can prevent this happening by commenting out line 68 in cms/CMSMain.php with SS 2.1.

Avatar
Ingo

Forum Moderator, 801 Posts

23 October 2007 at 4:23am

its basically a way of not repeating style-rules given in some "sandbox"-rules.
see http://doc.silverstripe.com/doku.php?id=typography for a more in-depth explanation.

Avatar
Tatey

Community Member, 18 Posts

23 October 2007 at 1:29pm

Okay, I understand what you're doing. Thanks Ingo.