open-consul/ui/packages/consul-ui/app/styles/components
John Cowen cf63afaddb
ui: Re-organize our %h* placeholders (#9584)
We've always had this idea of being able to markup up information
semantically without thinking about what it should look like, then
applying our %h* placeholder styles to control what the information
should look like.

Back when we originally made our set of %h* placeholders, we tried to
follow Structure as much as possible, which defined the largest header
(which we thought would have been the h1 style) as a super large 3.5rem.

Therefore we made our set of %h* placeholders the same as Structure
beginning at a huge 3.5 size. We then re-overwrote those sizes only in
Consul specific CSS files thinking that this was due to us existing
before Structure did.

Lately we saw an extra clue in Structure - the extra large 3.5 header was
called 'h0'.

This commit moves all our headers to use a zero based scale, and
additionally uses our 3 digit scale as opposed to 1 digit (h1 vs h100),
similar to our color scales (note we don't use a hypen, which we can
alter later if need be), which means we can insert additional h150 etc
if need be.

Additional we stop styling our headers globally (h1 { @extend %h100; }
). This means there is no reason not to use headers for marking up
content depending on what it is rather than what it should look like,
and as a consequence means we can be more purposeful in ordering h*
tags.

Lastly, we use the new scale over the entire codebase and update a
couple of places where we were using using header tags due to what the
styleing for them looked like rather than what the meaning/order was.
2021-01-26 17:53:45 +00:00
..
app-view ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
auth-form ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
auth-modal ui: Intention "Action change" warning modal (#9108) 2020-11-06 14:57:19 +00:00
brand-loader ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
card ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
code-editor ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
composite-row ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
confirmation-dialog ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
definition-table ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
dom-recycling-table ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
empty-state ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
expanded-single-select ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
flash-message ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
footer ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
icon-definition ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
list-row ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
loader ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
oidc-select ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
progress ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
radio-card ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
secret-button ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tabular-details ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tag-list ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tooltip-panel ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
anchors.scss ui: Accessibility scan improvements (#9485) 2021-01-05 10:05:59 +00:00
app-view.scss ui: Sidebar navigation / redesign (#9553) 2021-01-26 17:40:33 +00:00
auth-form.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
auth-modal.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
brand-loader.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
breadcrumbs.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
buttons.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
code-editor.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
composite-row.scss ui: Modifier based tooltips (#9288) 2020-11-30 16:52:13 +00:00
confirmation-dialog.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
definition-table.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
empty-state.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
flash-message.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
footer.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
form-elements.scss ui: Intention "Action change" warning modal (#9108) 2020-11-06 14:57:19 +00:00
icon-definition.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
list-collection.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
loader.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
menu-panel.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
more-popover-menu.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
oidc-select.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
pill.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
popover-select.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
progress.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
radio-card.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
secret-button.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
table.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tabular-collection.scss ui: Fixup CSS for create pages (#9019) 2020-10-23 15:41:36 +01:00
tabular-details.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tag-list.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
tooltip-panel.scss ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00