OpenEnergyDashboard / OED

Open Energy Dashboard (OED)
Mozilla Public License 2.0
73 stars 252 forks source link

CSS: centralize styles, combine, limit usage #1203

Open huss opened 2 months ago

huss commented 2 months ago

Is your feature request related to a problem? Please describe.

There is a modest amount of CSS styling done on pages. Doing it in a consistent way is desired.

Describe the solution you'd like

The following would be used for CSS:

  1. When the same styling is used in multiple places then it is defined in one place and reused. For example, formInputStyle is defined in multiple places.
  2. There are similar but slightly different styles in places. Decide if it really is necessary to do this.
  3. Some styles may have minimal effect. As a rule, OED should only custom CSS when really needed.

A careful sweep of the code to final all CSS styles will be needed to decide which ones can be modified.

Describe alternatives you've considered

Leave as is

Additional context

None