mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Expanding tolerations div width Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding tolerations table Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fixing tolerations table styles Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding <PodTolerations/> tests Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Add new line at the end of the file for linter Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
75 lines
1.1 KiB
SCSS
75 lines
1.1 KiB
SCSS
.DrawerItem {
|
|
--drawer-item-title-width: 30%;
|
|
|
|
display: grid;
|
|
grid-template-columns: minmax(var(--drawer-item-title-width), min-content) auto;
|
|
border-bottom: 1px solid $borderFaintColor;
|
|
padding: $padding 0;
|
|
|
|
> .name {
|
|
padding-right: $padding;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: $drawerItemNameColor;
|
|
}
|
|
|
|
> .value {
|
|
color: $drawerItemValueColor;
|
|
word-break: break-word;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
|
|
&:empty:after {
|
|
content: '—'
|
|
}
|
|
|
|
p {
|
|
margin-bottom: $margin;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $primary;
|
|
}
|
|
}
|
|
|
|
&.labelsOnly {
|
|
$spacing: $margin / 2;
|
|
|
|
> .value {
|
|
margin: -$spacing;
|
|
|
|
&:empty {
|
|
margin: 0;
|
|
}
|
|
|
|
.Badge {
|
|
float: left;
|
|
margin: $spacing;
|
|
|
|
&:after {
|
|
content: " ";
|
|
display: block;
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.DrawerItem {
|
|
&:last-of-type {
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
> .name {
|
|
font-weight: $font-weight-bold;
|
|
}
|
|
}
|
|
} |