insomnia/packages/insomnia-app/app/ui/css/components/tabs.less
Gregory Schier 549ce23ce8
Merge All Repositories into Monorepo for easier maintenance (#629)
* All projects into monorepo

* Update CI

* More CI updates

* Extracted a bunch of things into packages

* Publish

 - insomnia-plugin-base64@1.0.1
 - insomnia-plugin-default-headers@1.0.2
 - insomnia-plugin-file@1.0.1
 - insomnia-plugin-hash@1.0.1
 - insomnia-plugin-now@1.0.1
 - insomnia-plugin-request@1.0.1
 - insomnia-plugin-response@1.0.1
 - insomnia-plugin-uuid@1.0.1
 - insomnia-cookies@0.0.2
 - insomnia-importers@1.5.2
 - insomnia-prettify@0.0.3
 - insomnia-url@0.0.2
 - insomnia-xpath@0.0.2

* A bunch of small fixes

* Improved build script

* Fixed

* Merge dangling files

* Usability refactor

* Handle duplicate plugin names
2017-11-26 20:45:40 +00:00

142 lines
2.7 KiB
Plaintext

@import '../constants/colors';
@import '../constants/dimensions';
@border-color: var(--hl-md);
.react-tabs {
width: 100%;
height: 100%;
display: grid;
grid-template-rows: auto minmax(0, 1fr);
grid-template-columns: 100%;
align-content: stretch;
.react-tabs__tab-list {
display: flex;
flex-direction: row;
width: 100%;
height: 100%;
box-sizing: border-box;
background-color: var(--color-bg);
overflow: auto;
@scrollbar-height: @padding-sm;
&::-webkit-scrollbar {
height: @scrollbar-height;
border-radius: @scrollbar-height / 2;
}
&::-webkit-scrollbar-track {
background-color: var(--color-bg);
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: var(--hl-xxs);
}
&:hover::-webkit-scrollbar-thumb {
background-color: var(--hl-sm);
}
&::after {
width: 100%;
height: @line-height-sm;
content: "";
border-bottom: 1px solid @border-color;
}
}
.react-tabs__tab {
height: @line-height-sm;
border: 1px solid transparent;
border-bottom: 1px solid @border-color;
border-top: 0 !important;
white-space: nowrap;
display: flex;
position: relative;
&:not(.react-tabs__tab--selected)::after {
content: ' ';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.bubble {
position: relative;
bottom: 0.4em;
font-size: 0.8em;
min-width: 0.6em;
background: var(--hl-sm);
padding: 2px;
border-radius: 3px;
display: inline-block;
text-align: center;
line-height: 0.8em;
border: 1px solid var(--hl-xxs);
}
&:first-child {
border-left: 0 !important;
}
&:focus {
outline: 0;
}
& > * {
color: @hl;
height: 100%;
padding-left: @padding-md / 4;
padding-right: @padding-md / 4;
&:first-child {
padding-left: @padding-md;
}
&:last-child {
padding-right: @padding-md;
}
}
&:not(.react-tabs__tab--selected) .dropdown i.fa {
opacity: @opacity-super-subtle;
}
&.react-tabs__tab--selected {
border: 1px solid @border-color;
border-bottom-color: transparent;
* {
color: inherit;
}
}
}
.react-tabs__tab > button,
.react-tabs__tab > .dropdown > button {
background: transparent;
}
.react-tabs__tab > button > a {
color: inherit;
}
.react-tabs__tab-panel {
width: 100%;
height: 100%;
position: relative;
box-sizing: border-box;
&:not(.react-tabs__tab-panel--selected) {
display: none;
}
}
}