insomnia/app/css/components/tabs.scss
Gregory Schier aba31448fa Style tweaks
2016-05-01 13:01:19 -07:00

83 lines
1.4 KiB
SCSS

@import '../constants/colors';
@import '../constants/dimensions';
$border-color: $hl-md;
.ReactTabs {
width: 100%;
height: 100%;
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 1fr;
align-content: stretch;
.ReactTabs__TabList {
display: flex;
flex-direction: row;
height: $line-height-sm;
width: 100%;
z-index: 1; // HACK: put border above panel's
&::after {
width: 100%;
height: $line-height-sm;
content: "";
border-bottom: 1px solid $border-color;
}
}
.ReactTabs__Tab {
height: $line-height-sm;
border: 1px solid transparent;
border-bottom: 1px solid $border-color;
border-top: 0 !important;
white-space: nowrap;
* {
color: $hl-xxl;
}
&:first-child {
border-left-color: transparent;
}
&:focus {
outline: 0;
}
& > * {
height: 100%;
padding-left: $padding-md / 4;
padding-right: $padding-md / 4;
&:first-child {
padding-left: $padding-md;
}
&:last-child {
padding-right: $padding-md;
}
}
}
.ReactTabs__Tab--selected {
border: 1px solid $border-color;
border-bottom-color: transparent;
* {
color: inherit;
}
& > button:hover {
background: transparent;
}
}
.ReactTabs__TabPanel {
width: 100%;
height: 100%;
box-sizing: border-box;
}
}