midas.css contaminates generic html formatting

Issue #110 resolved
dd1 created an issue

At the top of midas.css, it says "this css does not contaminate generic html formatting" and yet the first thing it does is overwrites generic css for "a" elements.

Contamination of generic html formatting makes it very hard to write web pages, because all web examples work differently from what is expected.

This was the main reason from moving away from mhttpd.css - all normal html code looked strange. I do not want to go back to that.

In addition by looking at a generic css overwrite, I have no idea what will happen if I change it. But is a distinctive class name is used "mcss" or "mnav", I can grep for it to find out which pages and which elements will be affected (and not affected).

If a midas web page needs special css settings, it should use use an "mxxx" css class.

Also it is a good idea to distinguish midas css settings from generic names that normal web page code may use. So say "mred" instead of "red".

K.O.

Comments (1)

  1. Stefan Ritt

    You are absolutely correct. I reworked the CSS file to only modify links inside any "mcss" class. I also removed some unused classes (such as for the footer which is gone). Can we now remove mhttpd.css?

  2. Log in to comment