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
Janne Savolainen 589472c2b5
Shorten license header to reduce amount of clutter in top of the files (#4709)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-18 10:18:10 +02:00

83 lines
1.4 KiB
SCSS

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
.Tabs {
display: flex;
user-select: none;
-webkit-user-select: none; /* safari */
-moz-user-select: none; /* firefox */
&.withBorder {
border-bottom: 1px solid var(--borderFaintColor);
}
&.wrap {
flex-wrap: wrap;
}
&.center {
> :first-child {
margin-left: auto;
}
> :last-child {
margin-right: auto;
}
}
&.scrollable {
@include hidden-scrollbar;
}
}
.Tab {
--color-active: var(--layoutTabsActiveColor);
--line-color-active: var(--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 * 0.5;
transition: width 150ms;
background: currentColor;
color: var(--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);
}
}
}
}