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
|
|
|
|
2023-12-20 11:29:28 +00:00
|
|
|
background: var(--material-tabbar);
|
|
|
|
-moz-window-dragging: drag;
|
2023-12-14 08:43:11 +00:00
|
|
|
min-height: var(--tab-min-height);
|
2023-12-20 11:29:28 +00:00
|
|
|
|
|
|
|
@include macOS-inactive-opacity;
|
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
|
|
|
}
|
|
|
|
|
2023-12-15 09:51:39 +00:00
|
|
|
#zotero-tabs-toolbar {
|
|
|
|
background: var(--material-tabbar);
|
|
|
|
}
|
|
|
|
|
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 {
|
2023-12-14 08:43:11 +00:00
|
|
|
padding: 0 4px;
|
2022-04-19 22:51:32 +00:00
|
|
|
align-items: center;
|
2023-12-14 08:43:11 +00:00
|
|
|
color: var(--fill-secondary);
|
2022-04-19 22:51:32 +00:00
|
|
|
display: none;
|
|
|
|
box-shadow: none;
|
2023-12-14 08:43:11 +00:00
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
> button {
|
|
|
|
width: auto;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
height: 28px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2022-04-19 22:51:32 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: flex;
|
2023-12-14 08:43:11 +00:00
|
|
|
fill: var(--fill-tertiary);
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2023-12-14 08:43:11 +00:00
|
|
|
button {
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--fill-quinary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var(--fill-quarternary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--fill-secondary);
|
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);
|
2023-12-14 08:43:11 +00:00
|
|
|
border-left: var(--material-border-quarternary);
|
|
|
|
|
2022-04-19 22:51:32 +00:00
|
|
|
&.active {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-right: var(--material-panedivider);
|
2023-12-14 08:43:11 +00:00
|
|
|
box-shadow: 0.5px 0.5px 0px -0.5px rgba(0, 0, 0, 0.05), 3px 0px 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);
|
2023-12-14 08:43:11 +00:00
|
|
|
|
2022-04-19 22:51:32 +00:00
|
|
|
&.active {
|
2023-10-16 11:40:59 +00:00
|
|
|
border-left: var(--material-panedivider);
|
2023-12-14 08:43:11 +00:00
|
|
|
box-shadow: -0.5px 0.5px 0px -0.5px rgba(0, 0, 0, 0.05), -3px 0 3px -3px rgba(0, 0, 0, .3)
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
transform: rotate(180deg);
|
2022-04-19 22:51:32 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-03 05:21:59 +00:00
|
|
|
|
|
|
|
.pinned-tabs {
|
|
|
|
display: none;
|
2023-12-14 08:43:11 +00:00
|
|
|
padding-right: 8px;
|
|
|
|
|
|
|
|
.tabs {
|
|
|
|
overflow: unset;
|
|
|
|
}
|
|
|
|
|
2022-05-03 05:21:59 +00:00
|
|
|
.tab {
|
2023-12-14 08:43:11 +00:00
|
|
|
max-width: 100px;
|
2022-05-03 05:21:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.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;
|
2023-12-14 08:43:11 +00:00
|
|
|
padding: 4px 1px;
|
|
|
|
column-gap: 4px;
|
2023-12-20 11:29:28 +00:00
|
|
|
-moz-window-dragging: drag;
|
2020-09-15 07:30:17 +00:00
|
|
|
|
2023-12-14 08:43:11 +00:00
|
|
|
.pinned-tabs & {
|
|
|
|
padding: 4px 0;
|
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-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
|
|
|
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;
|
2023-12-14 08:43:11 +00:00
|
|
|
min-width: 100px;
|
|
|
|
height: 28px;
|
|
|
|
line-height: 16px;
|
2024-01-29 18:57:39 +00:00
|
|
|
padding-right: 22px;
|
|
|
|
padding-left: 6px;
|
2023-12-14 08:43:11 +00:00
|
|
|
display: flex;
|
2024-01-29 18:57:39 +00:00
|
|
|
align-items: center;
|
2023-12-14 08:43:11 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
transition: background-color 0.1s ease-out;
|
2023-12-20 11:29:28 +00:00
|
|
|
-moz-window-dragging: no-drag;
|
|
|
|
|
|
|
|
@include macOS-inactive-opacity;
|
2023-12-14 08:43:11 +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
|
|
|
}
|
2023-12-14 08:43:11 +00:00
|
|
|
|
2021-08-26 05:21:59 +00:00
|
|
|
&.dragging {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2023-12-14 08:43:11 +00:00
|
|
|
&:not(:last-child) {
|
|
|
|
border-inline-end: var(--tab-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.selected):hover {
|
|
|
|
background-color: var(--fill-quinary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding: 6px; // no 22px padding for X button because pinned tab cannot be closed
|
|
|
|
|
|
|
|
.tab-close {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-08-26 05:21:59 +00:00
|
|
|
}
|
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tab-name {
|
2023-12-14 08:43:11 +00:00
|
|
|
background: linear-gradient(to left, transparent 0px, var(--fill-primary) 20px) text;
|
|
|
|
flex: 1 1 100%;
|
2024-01-29 18:57:39 +00:00
|
|
|
line-height: 1.38461538em;
|
2023-12-14 08:43:11 +00:00
|
|
|
margin-inline-start: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: left;
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
@include state('.tab:first-child') {
|
|
|
|
background: linear-gradient(to left, transparent 0px, var(--fill-primary) 10px) text;
|
2022-05-03 05:21:59 +00:00
|
|
|
}
|
2020-09-15 07:30:17 +00:00
|
|
|
}
|
2020-12-22 11:05:00 +00:00
|
|
|
|
2023-12-14 08:43:11 +00:00
|
|
|
.tab-icon {
|
|
|
|
flex: 0 0 16px;
|
2024-01-29 18:57:39 +00:00
|
|
|
height: 16px;
|
2023-12-14 08:43:11 +00:00
|
|
|
}
|
|
|
|
|
2020-09-15 07:30:17 +00:00
|
|
|
.tab-close {
|
|
|
|
position: absolute;
|
2023-12-14 08:43:11 +00:00
|
|
|
transition: background-color 0.1s ease-out;
|
2022-11-20 23:23:17 +00:00
|
|
|
|
|
|
|
&:dir(ltr) {
|
|
|
|
right: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
left: 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-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
|
|
|
}
|
|
|
|
}
|