UI Improvements II (Simplification)
//Documentation in progress!
The objective here is to simplify the UI piece in our SCORE platform. New updates need to be addressed in two areas:
- HTML markup
- LESS/Sass styling (via inheritance)
- The first class name could simply be called ".score". All score components are automatically delegated with the ".score" class.
- The second class name would be the actual component name; ".score-highlight", or ".score-hero", or whatever.
- The third class name would be any class selection name. If one component has the ability to accept a class selection, then they all should. With this in place, any UI dev would have a tremendous advantage over control and portability of all SCORE components. (Right now we are doing this with our grid, ".score-page/.score-structural". Why not apply this to all of our inherited components?)
As of now, our jumbotron/hero component looks like this (in respect to the HTML output):
<div class="jumbotron score-section-hero score-component score-content score-image score-hero (class selection)">
Needs to be simplified to this:
<div class="score score-hero (class selection)">
- simplify our HTML output
- simultaneously create versatility and portability
- to be included in our next release of SCORE
CONTAINERS
Page Elements
<header></header> //no class needed
<footer></footer> //no class needed
Page Layout
<div class="container"> //.score-container is not needed
<div class="score score-column(col) (class selection)"></div> //.score-page is no longer needed
</div>
Inner Layout
<div class="score score-column(col) (class selection)"></div> //.score-structural is no longer needed
CONTENT
Typical Component
<div class="score score-component-name (class selection)"></div>
NAVIGATION