1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/cluster-manager/clusters-menu.scss
Alex Andreev 3f0b78f557 Adding margin to last cluster icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-02 09:33:44 +03:00

70 lines
1.3 KiB
SCSS

.ClustersMenu {
$spacing: $padding * 2;
position: relative;
text-align: center;
background: $clusterMenuBackground;
border-right: 1px solid $clusterMenuBorderColor;
padding: $spacing 0;
min-width: 75px;
.is-mac &:before {
content: "";
height: 20px; // extra spacing for mac-os "traffic-light" buttons
}
.clusters {
@include hidden-scrollbar;
padding: 0 $spacing; // extra spacing for cluster-icon's badge
margin-bottom: $spacing;
> :last-child {
margin-bottom: $margin;
}
&:empty {
display: none;
}
}
> .add-cluster {
position: relative;
.Icon {
border-radius: $radius;
padding: $padding / 3;
color: $addClusterIconColor;
background: #ffffff66;
cursor: pointer;
&.active {
opacity: 1;
}
&:hover {
box-shadow: none;
background: #ffffff;
}
}
.Badge {
$boxSize: 17px;
$offset: -7px;
position: absolute;
font-size: $font-size-small;
right: $offset;
bottom: $offset;
line-height: $boxSize;
min-width: $boxSize;
min-height: $boxSize;
text-align: center;
color: white;
background: $colorSuccess;
font-weight: normal;
border-radius: $radius;
padding: 0;
pointer-events: none;
}
}
}