sjohnsonaz / BuildJS-Full

A simple utility for class definition, inheritance, dynamic loading, MVVM, Widgets, and backend MVC.
http://buildjs.com
0 stars 0 forks source link

Create CSS class scheme. #5

Open sjohnsonaz opened 10 years ago

sjohnsonaz commented 10 years ago

A base CSS reset should be used. Currently this is normalize.css.

Some base elements, such as tables and buttons, may have specialized styling. We should determine if this styling needs to be added to the elements themselves, or as a class. The advantage of adding it directly, is we guarantee the styles are used without additional work. However in some cases these elements may be used in other contexts, and the extra styling would need to be removed.

We can attach classes to Widgets via manipulating classes on the elements. We can then use CSS classes both on Widget.element, and on its internal elements.

We should avoid using LESS to attach class names to Widgets.

Inline styles may be used in specific cases where additional styling will unlikely occur. For example, this includes toggling display: none;. However, this can just as easily be done by toggling a class, in which case more properties may be controller at once.