open-consul/ui-v2/app/styles/base/typography/base-placeholders.scss
John Cowen 1b5658d5ac ui: Use base fonts throughout the app (#6881)
We've had a set of %placeholders in our base styles for quite a while
but not butten the bullet to use them. This begins to use them.

We had to make a small amount of tweaks to base whilst doing this, but
its as we'd prefer there to be as few font placeholders as possible. We
might/should be able to reduce these further at somepoint, or
potentially rename them. We currently have six header fonts (or 4 header
fonts/2 strong body fonts) and 3 body fonts.

We also noticed an empty CSS file and deleted that while we were here.
We also noticed that the bottom border of structure tabs was a pixel
larger than ours so we tweaked that here also.
2019-12-18 12:26:45 +00:00

66 lines
810 B
SCSS

%typo-body {
font-size: $typo-size-600;
font-family: $typo-family-sans;
line-height: $typo-lead-700;
}
%typo-header {
line-height: $typo-lead-200;
}
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
@extend %typo-header;
}
%h1 {
font-weight: $typo-weight-bold;
}
%h2,
%h3,
%h4 {
font-weight: $typo-weight-semibold;
}
%h5,
%h6 {
font-weight: $typo-weight-medium;
}
%h1 {
font-size: $typo-size-100;
}
%h2 {
font-size: $typo-size-200;
}
%h3 {
font-size: $typo-size-300;
}
/*p1 strong, differing weights */
%h4,
%h5 {
font-size: $typo-size-600;
}
/*p2 strong */
%h6 {
font-size: $typo-size-700;
}
%typo-p {
line-height: inherit;
font-size: inherit;
}
%p,
%p1,
%p2,
%p3 {
@extend %typo-p;
}
%p1 {
font-size: $typo-size-600;
}
%p2 {
font-size: $typo-size-700;
}
%p3 {
font-size: $typo-size-800;
}