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`
41 lines
828 B
SCSS
41 lines
828 B
SCSS
%button {
|
|
position: relative;
|
|
}
|
|
%button .progress.indeterminate {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
margin-left: -12px;
|
|
margin-top: -12px;
|
|
}
|
|
%button:disabled .progress + * {
|
|
visibility: hidden;
|
|
}
|
|
%button:empty {
|
|
padding-right: 0 !important;
|
|
padding-left: 18px !important;
|
|
margin-right: 5px;
|
|
}
|
|
%button:empty::before {
|
|
left: 1px;
|
|
}
|
|
%button:not(:empty) {
|
|
display: inline-flex;
|
|
text-align: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: calc(0.375em - 1px) calc(2.2em - 1px);
|
|
height: 2.55em;
|
|
min-width: 100px;
|
|
}
|
|
%button:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
%button-compact {
|
|
/* @extend %button;*/
|
|
padding-left: calc(1.6em - 1px) !important;
|
|
padding-right: calc(1.6em - 1px) !important;
|
|
padding-top: calc(0.35em - 1px) !important;
|
|
height: 2.3em !important;
|
|
}
|