1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/drawer/drawer-item.scss
Alex Andreev 68317453c1
Adding space after drawer badges (#1014)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-02 12:49:03 +03:00

73 lines
1.1 KiB
SCSS

.DrawerItem {
display: grid;
grid-template-columns: minmax(30%, 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;
}
}
}