81637e2138
Migrate roughly half of the base components into base Adds a target for easily formatting CSS Further CSS amends/migration (#5921) 1. tooltips within tables where a slightly bit troublesome due to a mix of `inline-flex`, `overflow` and the need for truncation. This refineds tooltips a slight bit more to work 'everywhere'. 2. We also move tooltip to use the correct color and min-width from structure, but we overwrite the min-width here until we get confirmation on widths/alignment of text within a tooltip. 3. Tiny fixes for breadcrumbs and toggle-buttons in tabular listings 4. Now we inline-flex our table cells, it means it is impossible to truncate text without wrapping it in another element. This wraps all Description like text in `<p>` tags. Generally the first column of text is already wrapped in an `<a>` tag. Other items such as consul tags and policy names etc get 'cutoff' rather than truncated. 5. We are now using all the icons from `@hashicorp/structure-icons`
52 lines
628 B
SCSS
52 lines
628 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 {
|
|
font-weight: $typo-weight-semibold;
|
|
}
|
|
%h1 {
|
|
font-size: $typo-size-100;
|
|
}
|
|
%h2 {
|
|
font-size: $typo-size-200;
|
|
}
|
|
%h3 {
|
|
font-size: $typo-size-300;
|
|
}
|
|
%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;
|
|
}
|