2020-09-15 07:30:17 +00:00
|
|
|
#tab-bar-container {
|
2023-04-08 22:19:46 +00:00
|
|
|
// These variables can be overridden in platform styles to set platform-specific safe areas
|
|
|
|
--safe-area-start: 0;
|
|
|
|
--safe-area-end: 0;
|
2023-10-16 11:40:59 +00:00
|
|
|
--tab-border: .5px solid var(--tab-border);
|
2023-04-08 22:19:46 +00:00
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
min-height: 30px;
|
2023-04-08 22:19:46 +00:00
|
|
|
|
|
|
|
&:not([hidden]) {
|
|
|
|
// display: flex overrides the hidden attribute
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
min-width: var(--safe-area-start);
|
|
|
|
// Add bottom border to safe area space
|
2023-10-16 11:40:59 +00:00
|
|
|
border-bottom: var(--tab-border);
|
2023-04-08 22:19:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
min-width: var(--safe-area-end);
|
|
|
|
// Add bottom border to safe area space
|
2023-10-16 11:40:59 +00:00
|
|
|
border-bottom: var(--tab-border);
|
2023-04-08 22:19:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2020-09-15 07:30:17 +00:00
|
|
|
}
|
|
|
|
|
2022-04-19 22:51:32 +00:00
|
|
|
.tab-bar-inner-container {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.tabs-wrapper {
|
|
|
|
position: relative;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-start-arrow, .scroll-end-arrow {
|
|
|
|
height: 30px;
|
|
|
|
padding: 0 3px;
|
|
|
|
align-items: center;
|
|
|
|
z-index: 1;
|
2023-10-16 11:40:59 +00:00
|
|
|
color: var(--fill-tertiary);
|
2022-04-19 22:51:32 +00:00
|
|
|
display: none;
|
|
|
|
box-shadow: none;
|
2023-04-08 22:19:46 +00:00
|
|
|
// Add bottom border to scroll arrows,
|
|
|
|
// and negate the extra vertical pixel added by the border with a negative margin
|
2023-10-16 11:40:59 +00:00
|
|
|
border-bottom: var(--tab-border);
|
2023-04-08 22:19:46 +00:00
|
|
|
margin-bottom: -1px;
|
|
|
|
box-sizing: border-box;
|
2022-04-19 22:51:32 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2023-10-16 11:40:59 +00:00
|
|
|
color: var(--fill-secondary);
|
2022-04-19 22:51:32 +00:00
|
|
|
&:hover {
|
2023-10-16 11:40:59 +00:00
|
|
|
background-color: var(--fill-quinary);
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-start-arrow {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-right: var(--material-border-transparent);
|
2022-04-19 22:51:32 +00:00
|
|
|
&.active {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-right: var(--material-panedivider);
|
|
|
|
box-shadow: 3px 0 3px -3px rgba(0, 0, 0, .3);
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-end-arrow {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-left: var(--material-border-transparent);
|
2022-04-19 22:51:32 +00:00
|
|
|
&.active {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-left: var(--material-panedivider);
|
|
|
|
box-shadow: -3px 0 3px -3px rgba(0, 0, 0, .3)
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-03 05:21:59 +00:00
|
|
|
|
|
|
|
.pinned-tabs {
|
|
|
|
display: none;
|
|
|
|
.tab {
|
|
|
|
max-width: 110px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.scrollable {
|
|
|
|
.tabs-wrapper > .tabs > :first-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-start-arrow, .scroll-end-arrow {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-tabs {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tabs {
|
|
|
|
display: flex;
|
2022-04-19 22:51:32 +00:00
|
|
|
position: absolute;
|
|
|
|
overflow: hidden;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2020-09-15 07:30:17 +00:00
|
|
|
|
2020-10-22 10:12:31 +00:00
|
|
|
&:before {
|
|
|
|
content: "";
|
2023-04-08 22:19:46 +00:00
|
|
|
width: 0;
|
|
|
|
min-width: 0;
|
2023-10-16 11:40:59 +00:00
|
|
|
border-inline-end: var(--tab-border);
|
2020-10-22 10:12:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
2023-04-08 22:19:46 +00:00
|
|
|
flex: 1 0 0;
|
2020-10-22 10:12:31 +00:00
|
|
|
width: 100%;
|
2023-04-08 22:19:46 +00:00
|
|
|
min-width: 0;
|
|
|
|
// Add bottom border to the space between the last tab and the spacer in #tab-bar-container::after
|
2023-10-16 11:40:59 +00:00
|
|
|
border-bottom: var(--tab-border);
|
|
|
|
border-inline-start: var(--tab-border);
|
2020-10-22 10:12:31 +00:00
|
|
|
}
|
2020-09-21 09:50:00 +00:00
|
|
|
}
|
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tab {
|
2020-12-22 11:05:00 +00:00
|
|
|
box-sizing: border-box;
|
2020-09-18 06:45:41 +00:00
|
|
|
-moz-appearance: none;
|
2020-09-24 14:47:47 +00:00
|
|
|
max-width: 200px;
|
2020-10-22 10:12:31 +00:00
|
|
|
flex: 1 1 200px;
|
2020-09-15 07:30:17 +00:00
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
position: relative;
|
2023-10-16 11:40:59 +00:00
|
|
|
color: var(--fill-primary);
|
2020-09-24 14:47:47 +00:00
|
|
|
text-align: center;
|
2022-04-22 06:07:18 +00:00
|
|
|
padding: 0 22px;
|
|
|
|
min-width: 110px;
|
2020-09-15 07:30:17 +00:00
|
|
|
|
2020-09-21 09:50:00 +00:00
|
|
|
&:not(:last-child) {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-inline-end: var(--tab-border);
|
2020-09-21 09:50:00 +00:00
|
|
|
}
|
|
|
|
|
2020-09-18 06:45:41 +00:00
|
|
|
&.selected {
|
2023-10-16 11:40:59 +00:00
|
|
|
background: var(--material-button);
|
|
|
|
box-shadow: 0px 0px 0px 0.5px rgba(0, 0, 0, 0.05), 0px 0.5px 2.5px 0px rgba(0, 0, 0, 0.30);
|
2020-09-18 06:45:41 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 05:21:59 +00:00
|
|
|
&.dragging {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-inline-start: var(--tab-border);
|
2021-08-26 05:21:59 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging + & {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-inline-start: var(--tab-border);
|
2021-08-26 05:21:59 +00:00
|
|
|
}
|
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tab-name {
|
|
|
|
line-height: 30px;
|
2020-09-24 14:47:47 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -moz-box;
|
2022-06-09 13:41:24 +00:00
|
|
|
-moz-box-pack: center;
|
2020-09-24 14:47:47 +00:00
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
2020-12-22 11:05:00 +00:00
|
|
|
overflow-y: hidden;
|
2022-05-03 05:21:59 +00:00
|
|
|
|
|
|
|
.icon-bg {
|
|
|
|
margin-inline-end: 7px;
|
|
|
|
margin-top: -2px;
|
|
|
|
}
|
2020-09-15 07:30:17 +00:00
|
|
|
}
|
2020-12-22 11:05:00 +00:00
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tab-close {
|
|
|
|
position: absolute;
|
2022-11-20 23:23:17 +00:00
|
|
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
right: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
left: 6px;
|
|
|
|
}
|
|
|
|
|
2020-12-22 11:05:00 +00:00
|
|
|
top: 6px;
|
2020-09-15 07:30:17 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 16px;
|
2020-12-22 11:05:00 +00:00
|
|
|
border-radius: 3px;
|
2022-04-19 22:51:32 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: flex;
|
|
|
|
}
|
2020-12-22 11:05:00 +00:00
|
|
|
|
|
|
|
&:hover {
|
2023-10-16 11:40:59 +00:00
|
|
|
background-color: var(--fill-quinary);
|
2020-12-22 11:05:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-10-16 11:40:59 +00:00
|
|
|
background-color: var(--fill-quarternary);
|
2020-12-22 11:05:00 +00:00
|
|
|
}
|
2020-09-15 07:30:17 +00:00
|
|
|
}
|
2022-05-03 05:21:59 +00:00
|
|
|
|
2020-12-22 11:05:00 +00:00
|
|
|
&:first-child .tab-close {
|
|
|
|
display: none;
|
2020-09-15 07:30:17 +00:00
|
|
|
}
|
2020-10-22 10:12:31 +00:00
|
|
|
|
|
|
|
&:not(.selected) {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-bottom: var(--tab-border);
|
2020-10-22 10:12:31 +00:00
|
|
|
}
|
|
|
|
}
|