5093 Posts in 1516 Topics by 1113 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 531 Views |
-
The Required Stylesheets, SilverStripeNavigator Specifically

16 July 2011 at 12:17am
Hi,
So I understand that there are a few required stylesheets that get inserted at the bottom of the header. I understand the importance of these. Once you login into the admin the SilverStripeNavigator stylesheet is also added to this group.
Is it possible for this stylesheet to be added to beginning of the head area as opposed to the end? It is overriding some of my other style sheets. Keeping the website styles in tact is more important to me than the styles of the navigator.
I know my other options are to 1) remove the navigator all together 2) examine the CSS and resolve any conflicts.
Any input would be great.
Thanks!
-
Re: The Required Stylesheets, SilverStripeNavigator Specifically

5 August 2011 at 10:18am
The stylesheets are included in the order that they are requested, and duplicate inclusions are ignored, so one way of doing this is to force the navigator stylesheet to be included before anything else. Page_Controller::init() would work.
Put this into your Page_Controller::init():
if(Director::isDev() || Permission::check('CMS_ACCESS_CMSMain') || Permission::check('VIEW_DRAFT_CONTENT')) {
Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css');
} -
Re: The Required Stylesheets, SilverStripeNavigator Specifically

5 August 2011 at 10:20am
I find it a little surprising that the navigator CSS conflicts with your CSS, though, because all of its rules start with #SilverStripeNavigator, #SilverStripeNavigatorMessage, or #SilverStripeNavigatorLinkPopup.
We've tried to make SilverStripeNavigator.css "safe", and if it's not, we should probably fix that.
What is the nature of the conflict?
| 531 Views | ||
|
Page:
1
|
Go to Top |


