insomnia/app/ui/css/components/tabs.less

139 lines
2.6 KiB
Plaintext
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/colors';
@import '../constants/dimensions';
2017-01-23 22:41:31 +00:00
@border-color: var(--hl-md);
2016-04-17 22:46:17 +00:00
2016-03-20 04:00:40 +00:00
.ReactTabs {
2016-05-01 19:56:30 +00:00
width: 100%;
height: 100%;
display: grid;
2016-09-20 20:53:34 +00:00
grid-template-rows: auto minmax(0, 1fr);
2016-09-15 22:45:08 +00:00
grid-template-columns: 100%;
2016-05-01 19:56:30 +00:00
align-content: stretch;
2016-03-23 05:26:27 +00:00
.ReactTabs__TabList {
2016-05-01 19:56:30 +00:00
display: flex;
flex-direction: row;
width: 100%;
2016-05-01 20:46:11 +00:00
height: 100%;
2016-07-07 20:10:55 +00:00
box-sizing: border-box;
background-color: var(--color-bg);
overflow: auto;
2017-06-16 22:21:41 +00:00
2017-06-17 19:31:21 +00:00
@scrollbar-height: @padding-sm;
2017-06-17 18:33:09 +00:00
&::-webkit-scrollbar {
2017-06-17 18:33:09 +00:00
height: @scrollbar-height;
2017-06-17 19:31:21 +00:00
border-radius: @scrollbar-height / 2;
2017-06-17 18:33:09 +00:00
}
&::-webkit-scrollbar-track {
background-color: var(--color-bg);
}
&::-webkit-scrollbar-thumb {
2017-06-17 19:31:21 +00:00
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: var(--hl-xxs);
}
&:hover::-webkit-scrollbar-thumb {
2017-06-17 18:33:09 +00:00
background-color: var(--hl-sm);
}
2016-04-17 22:46:17 +00:00
&::after {
width: 100%;
2016-08-29 17:58:59 +00:00
height: @line-height-sm;
2016-04-17 22:46:17 +00:00
content: "";
2016-08-29 17:58:59 +00:00
border-bottom: 1px solid @border-color;
2016-04-17 22:46:17 +00:00
}
2016-03-23 05:26:27 +00:00
}
2016-04-05 05:35:21 +00:00
.ReactTabs__Tab {
2016-08-29 17:58:59 +00:00
height: @line-height-sm;
border: 1px solid transparent;
2016-08-29 17:58:59 +00:00
border-bottom: 1px solid @border-color;
2016-04-17 22:46:17 +00:00
border-top: 0 !important;
2016-05-01 19:56:30 +00:00
white-space: nowrap;
2016-06-12 00:00:52 +00:00
display: flex;
2017-06-16 22:21:41 +00:00
position: relative;
&:not(.ReactTabs__Tab--selected)::after {
content: ' ';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.bubble {
position: relative;
bottom: 0.4em;
2017-03-29 02:21:49 +00:00
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);
}
2016-04-17 22:46:17 +00:00
&:first-child {
2017-06-17 18:33:09 +00:00
border-left: 0 !important;
2016-04-17 22:46:17 +00:00
}
2016-04-06 07:19:36 +00:00
2016-04-18 05:58:58 +00:00
&:focus {
outline: 0;
}
& > * {
2016-08-29 17:58:59 +00:00
color: @hl;
2016-04-17 22:46:17 +00:00
height: 100%;
2016-08-29 17:58:59 +00:00
padding-left: @padding-md / 4;
padding-right: @padding-md / 4;
&:first-child {
2016-08-29 17:58:59 +00:00
padding-left: @padding-md;
}
&:last-child {
2016-08-29 17:58:59 +00:00
padding-right: @padding-md;
}
2016-04-05 05:35:21 +00:00
}
2016-03-20 04:00:40 +00:00
2017-06-17 18:33:09 +00:00
&:not(.ReactTabs__Tab--selected) .dropdown i.fa {
2017-06-16 22:31:22 +00:00
opacity: @opacity-super-subtle;
}
&.ReactTabs__Tab--selected {
border: 1px solid @border-color;
border-bottom-color: transparent;
2016-04-17 22:46:17 +00:00
2017-06-16 22:31:22 +00:00
* {
color: inherit;
}
2016-04-05 05:35:21 +00:00
}
}
2016-04-06 07:19:36 +00:00
.ReactTabs__Tab > button,
.ReactTabs__Tab > .dropdown > button {
background: transparent;
2016-04-05 05:35:21 +00:00
}
.ReactTabs__Tab > button > a {
color: inherit;
}
2016-05-01 19:56:30 +00:00
.ReactTabs__TabPanel {
2016-04-10 06:59:05 +00:00
width: 100%;
height: 100%;
2016-09-21 00:03:26 +00:00
position: relative;
2016-05-01 19:56:30 +00:00
box-sizing: border-box;
2016-04-10 06:59:05 +00:00
}
2016-03-20 04:00:40 +00:00
}