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`
46 lines
1,015 B
SCSS
46 lines
1,015 B
SCSS
@import '../base/components/pill/index';
|
|
td strong,
|
|
%tag-list span {
|
|
@extend %pill;
|
|
margin-right: 3px;
|
|
}
|
|
// For the moment pills with classes are iconed ones
|
|
%pill:not([class]) {
|
|
@extend %frame-gray-900;
|
|
}
|
|
%pill[class] {
|
|
padding-left: 0;
|
|
margin-right: 16px;
|
|
}
|
|
%pill[class]::before {
|
|
@extend %as-pseudo;
|
|
margin-right: 3px;
|
|
}
|
|
%pill.policy::before {
|
|
@extend %with-file-fill-icon;
|
|
opacity: 0.3;
|
|
}
|
|
%pill.policy-management::before {
|
|
@extend %with-star-icon;
|
|
}
|
|
%pill.policy-service-identity::before {
|
|
@extend %with-service-identity-icon;
|
|
}
|
|
%pill.role::before {
|
|
@extend %with-user-plain-icon;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
// TODO: These are related to the pill icons, but also to the tables
|
|
// All of this icon assigning stuff should probably go in the eventual
|
|
// refactored /components/icons.scss file
|
|
|
|
td.policy-service-identity a::after {
|
|
@extend %with-service-identity-icon, %as-pseudo;
|
|
margin-left: 3px;
|
|
}
|
|
td.policy-management a::after {
|
|
@extend %with-star-icon, %as-pseudo;
|
|
margin-left: 3px;
|
|
}
|