Hi All-
I optmized Default.css today and took out the Edit-in-Place section. We found that most of our users were very confused by the in-line editor, so we disable it by default. If you want to use it, that's fine, just make sure you grab them from the original file if you want to use this condensed version.
This CSS file assumes you've used your basic CSS reset styles in skin.css and you are using font-size:62.5% to reset everything to 10px, so it's easier to use EMs, and that you've declared your own global font-family. .Normal is blank because it seems to interfere with styles that we code into skin.css.
Also, I'm using a green color for classes like SubHead instead of the blue, but you can just Find & Replace against "#036", because this optimization was for a client of ours.
I noticed a lot of inconsistencies in how the file was created. Looks like it was written by different authors throughout the style sheet. Anyway, I got it down from 17k to 6.5k, tested it on my own copy of DNN 4.8 and it didn't seem to hurt the styles at all.
A couple notes for the DNN core team:
- It's not necessary to declare "background-color: transparent" that's a default property of all elements
- You don't have to put a measuring unit on 0, like 0px.
- padding:25px 25px 25px 25px = padding:25px; (read more about CSS shorthand)
- It would be nice if all the "admin-specific" styles would include themselves only to administrators logged in.
Here is the file for anyone interested. It is minified, so a little harder to read, but take the time to study the differences.
Thanks, and let me know if you find any errors or problems and I will try to apply fixes to it.