Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Discussion on Default.cssDiscussion on Default.css
Previous
 
Next
New Post
11/22/2006 6:34 PM
 

Timo

I use find and replace all so it takes just a sec. to change all 40.

Jan

 
New Post
11/23/2006 6:06 AM
 
I know, but I thought CSS was created to prevent these kind of "search and replace" actions in documents...
and you can only replace a definition, not erase it (AFAIK).
But since I'm the only one.....
 
New Post
11/23/2007 5:48 PM
 

Timo - I'm with you on this one. 

I have emptied the default.css file but added an admin.css file for the DNN specific styles.  These styles are only really important to authenticated sessions so save the rest of the users from that grief.

All my heavy lifting is done by skin.css since that is closest logically to the design. It also gives me the greatest control over switching skin styles like homepage, admin or public skins.

I also empty portal.css and use it only to override tab/id specific styles like background images.  Some site wide styles can live in portal.css but i find the maintenance is much easier if the bulk is in skin.css.

My next step is to remove default.css and portal.css all together and save the extra server requests.

 
New Post
11/23/2007 6:03 PM
 

lancelong wrote

My next step is to remove default.css and portal.css all together and save the extra server requests.

This make me think... what if default.css and portal.css were admin options?  What if portal admins could turn these files off either portal wide or skin specific? 

Even better... what if there was markup that the skins designers could use to tell DNN what resources it needed like JS and CSS? 

It could use schemes to make the process simpler and more portable.  "Default" for a normal pages (also assumed for backward compatibility) and "admin" for advanced pages etc.  But a skinner would be able to tailor the resource to fit their needs like Custom JS files or a striped down CSS environment.

 
New Post
11/26/2007 4:18 PM
 

Timo Breumelhof wrotePersonally I don't like that, CSS is supposed to make life easier....
One of the advantages of CSS should be: Change the font in one place and the whole site.....

Or is there anybody that has another solution for this
(if you agree it's a problem in the first place)?   

It's the proverbial double-edged sword.  The default is there so that required CSS doesn't get missed by the designer of a skin, and to provide a base CSS.  But a skin designer who really wants the control will have to double the default.css in the skin to control everything.  Your option of it being an admin choice to use or not use the default.css, or even better to change the location of the default.css to a skin's folder, is sound.  The question is, will it be worth the modification to core behavior to satisfy this desire?  Personally, I don't see a performance difference when replicating all the default.css elements into the skin.css file, but I don't have any sites with enough traffic to really tell.  Is there a reason to do this other than convenience?

Jeff

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Discussion on Default.cssDiscussion on 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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out