Products

Solutions

Learn More

Partners

Community

Blog

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Disable Default.cssDisable Default.css
Previous
 
Next
New Post
11/10/2014 7:24 PM
 
Hi Mike,

Some of the ones like what you specified are part of a CSS reset that nearly every skin/theme developer uses (check the link in the default.css comments) but, I can agree that there have been some things in the default.css that are a bit annoying. Back in DNN 5 and prior versions, I would unload the default.css, but then started noticing some issues w/ my edit views, so use the following technique w/ caution. Check out this skin object by 40Fingers. Its a very versatile tool. I haven't used the unload css feature in a while, so, not sure if its still applicable.

http://www.40fingers.net/WeblogsNews/...


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
11/11/2014 3:54 AM
 
Mike Ryckman wrote:
I just don't see any reason why this stuff would be included in a default css file. I'd totally get it if DNN wanted to have a css-reset.css file or something. But if you can't disable it, why is this here? Admittedly, this isn't really my area, but it seems that in a world of great competition for CMS systems and a move to a more agnostic design, that DNN would want to avoid creating extra work for people trying to develop DNN skins and modules.

Mike

I think most of us agree default.css should be cleaned up or removed.
It's an inheritance from the past (DNN 4/5).
The problem right now is that if you would change / remove it in the core, the skins that have been built directly  on DNN would fail because of the missing declarations in default.css

For now you can either use your own reset styling on top of skin.css or use our skin object mentioned before (which can also unload default.css only when not logged in).
Simply not loading it is a problem because there is styling for the editing components of DNN in there.



 
New Post
11/11/2014 8:56 AM
 
Thanks guys - and Timo, that makes sense. I definitely get the headaches with backwards compatibility stuff.

Just as a thought, maybe DNN could just make some options easier, but default to the legacy approach. For example, they could split the DNN core styles (things like "dnnFormItem") out from the css reset styles and make two separate files. Then, have both of those files load by default with every skin. Then, make some option to turn one or both of them off.

Mike
 
New Post
11/11/2014 9:07 AM
 
Mike Ryckman wrote:
Thanks guys - and Timo, that makes sense. I definitely get the headaches with backwards compatibility stuff.

Just as a thought, maybe DNN could just make some options easier, but default to the legacy approach. For example, they could split the DNN core styles (things like "dnnFormItem") out from the css reset styles and make two separate files. Then, have both of those files load by default with every skin. Then, make some option to turn one or both of them off.

Mike

Right, I agree, that should be the approach.
I though about adding a split up default.css to my stylehelper, but I'm a bit too busy ATM.. :-)

 
New Post
7/4/2017 6:45 AM
 
Bumping an old thread. Now on DNN 9.1.0, I noticed that default.css is still around, and it's 100K. Is this needed? Is there a recommended way to get rid of it?

Thanks for any insight.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Disable Default.cssDisable Default.css


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out