1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/tabs/tabs.scss
Roman b8994a453f
Allow user to select Kubeconfig from filesystem (#740)
* Allow user to select Kubeconfig from filesystem, fix #738

Signed-off-by: Roman <ixrock@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-28 08:43:51 +03:00

77 lines
1.2 KiB
SCSS

.Tabs {
display: flex;
user-select: none;
-webkit-user-select: none; /* safari */
-moz-user-select: none; /* firefox */
&.withBorder {
border-bottom: 1px solid $borderFaintColor;
}
&.wrap {
flex-wrap: wrap;
}
&.center {
> :first-child {
margin-left: auto;
}
> :last-child {
margin-right: auto;
}
}
&.scrollable {
@include hidden-scrollbar;
}
}
.Tab {
--color-active: #{$layoutTabsActiveColor};
--line-color-active: #{$primary};
--line-color-focus: currentColor;
position: relative;
padding: $padding $padding * 2;
white-space: nowrap;
&.disabled {
pointer-events: none;
opacity: .5;
}
&:not(.disabled) {
cursor: pointer;
&:after {
content: "";
position: absolute;
right: 0;
bottom: 0;
width: 0;
height: $unit /2;
transition: width 250ms;
background: currentColor;
color: $halfGray
}
&:focus {
&:after {
color: var(--line-color-focus);
}
}
&:hover,
&.active {
color: var(--color-active);
&:after {
width: 100%;
left: 0;
right: auto;
color: var(--line-color-active);
}
}
}
}