mirror of
https://github.com/empayre/fleet.git
synced 2024-11-08 09:43:51 +00:00
c2700ee5c6
- This if the 1st PR as part of the of the Align components in Fleet UI with design system in Figma #539 - These changes replace all the color variables in /styles/var/colors.scss with new colors and naming convention used in Figma.
68 lines
1.3 KiB
SCSS
68 lines
1.3 KiB
SCSS
@import '../../../../node_modules/react-tabs/style/react-tabs.scss';
|
|
|
|
.settings-wrapper {
|
|
padding: 25px 30px 50px; // different to pad sticky subnav properly
|
|
|
|
&__nav-header {
|
|
padding-top: 15px;
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: $core-white;
|
|
z-index: 2;
|
|
}
|
|
|
|
h1 {
|
|
margin-bottom: $pad-half;
|
|
}
|
|
|
|
.body-wrap {
|
|
padding: 0;
|
|
}
|
|
|
|
.react-tabs {
|
|
.react-tabs__tab-list {
|
|
border-bottom: 1px solid $ui-gray;
|
|
}
|
|
|
|
&__tab {
|
|
font-size: $x-small;
|
|
border: none;
|
|
padding: 0 0 $pad-base 0;
|
|
margin-left: 40px;
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
&:focus {
|
|
box-shadow: none;
|
|
outline: auto;
|
|
}
|
|
|
|
// Bolding text when the tab is active causes a layout shift
|
|
// so we add a hidden pseudo element with the same text string
|
|
&:before {
|
|
content: attr(data-text);
|
|
height: 0;
|
|
visibility: hidden;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
font-weight: $bold;
|
|
}
|
|
|
|
&:after {
|
|
background-color: transparent;
|
|
}
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
&__tab--selected, &__tab--selected:focus {
|
|
font-weight: $bold;
|
|
border-bottom: 1px solid $core-vibrant-blue;
|
|
}
|
|
}
|
|
}
|