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

99 lines
1.8 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);
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;
2016-06-19 07:21:43 +00:00
position: static;
.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 {
border-left-color: transparent;
}
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
}
2016-04-05 05:35:21 +00:00
.ReactTabs__Tab--selected {
2016-08-29 17:58:59 +00:00
border: 1px solid @border-color;
2016-04-17 22:46:17 +00:00
border-bottom-color: transparent;
* {
2016-04-05 05:35:21 +00:00
color: inherit;
}
}
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
}
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
}