zotero/scss/components/_tabBar.scss

176 lines
2.6 KiB
SCSS
Raw Normal View History

2020-09-15 07:30:17 +00:00
#tab-bar-container {
min-height: 30px;
}
.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;
color: #bebebe;
display: none;
box-shadow: none;
.icon {
display: flex;
}
&.active {
color: #505050;
&:hover {
background-color: rgba(0, 0, 0, 0.08);
}
}
}
.scroll-start-arrow {
border-right: 1px solid transparent;
&.active {
border-right: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: 1px 0 0 0 rgba(0,0,0,0.05);
}
}
.scroll-end-arrow {
border-left: 1px solid transparent;
&.active {
border-left: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: -1px 0 0 0 rgba(0,0,0,0.05);
}
}
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;
}
}
}
2020-09-15 07:30:17 +00:00
.tabs {
display: flex;
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: "";
width: 0px;
min-width: 0px;
border-bottom: $tab-border;
border-inline-end: $tab-border;
}
&:after {
content: "";
flex: 1 0 0%;
width: 100%;
min-width: 0px;
border-bottom: $tab-border;
border-inline-start: $tab-border;
}
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;
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;
background: #f9f9f9;
2020-09-18 06:45:41 +00:00
border-top: 2px solid transparent;
2020-09-15 07:30:17 +00:00
color: #000;
text-align: center;
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) {
2020-10-22 10:12:31 +00:00
border-inline-end: $tab-border;
2020-09-21 09:50:00 +00:00
}
2020-09-18 06:45:41 +00:00
&.selected {
border-top: 2px solid $tab-background-color-selected;
2020-09-18 06:45:41 +00:00
}
&.dragging {
border-inline-start: $tab-border;
z-index: 1;
}
&.dragging + & {
border-inline-start: $tab-border;
}
2020-09-15 07:30:17 +00:00
.tab-name {
line-height: 30px;
overflow-x: hidden;
text-overflow: ellipsis;
display: -moz-box;
2022-06-09 13:41:24 +00:00
-moz-box-pack: center;
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;
2020-12-22 11:05:00 +00:00
right: 6px;
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;
.icon {
display: flex;
}
2020-12-22 11:05:00 +00:00
&:hover {
background-color: rgba(0, 0, 0, 0.08);
}
&:active {
background-color: rgba(0, 0, 0, 0.16);
}
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) {
border-bottom: $tab-border;
}
}