|
|
@@ -107,24 +107,24 @@ function onMouseDown(e: MouseEvent, tab: TabConfig) {
|
|
|
<!-- divider -->
|
|
|
<div
|
|
|
v-if="i !== 0 && tab.key !== active"
|
|
|
- class="tabs-chrome__divider bg-border absolute left-[var(--gap)] top-1/2 z-0 h-4 w-[1px] translate-y-[-50%] transition-all"
|
|
|
+ class="tabs-chrome__divider absolute left-[var(--gap)] top-1/2 z-0 h-4 w-[1px] translate-y-[-50%] bg-border transition-all"
|
|
|
></div>
|
|
|
<!-- background -->
|
|
|
<div
|
|
|
class="tabs-chrome__background absolute z-[-1] size-full px-[calc(var(--gap)-1px)] py-0 transition-opacity duration-150"
|
|
|
>
|
|
|
<div
|
|
|
- class="tabs-chrome__background-content group-[.is-active]:bg-primary/15 dark:group-[.is-active]:bg-accent h-full rounded-tl-[var(--gap)] rounded-tr-[var(--gap)] duration-150"
|
|
|
+ class="tabs-chrome__background-content h-full rounded-tl-[var(--gap)] rounded-tr-[var(--gap)] duration-150 group-[.is-active]:bg-primary/15 dark:group-[.is-active]:bg-accent"
|
|
|
></div>
|
|
|
<svg
|
|
|
- class="tabs-chrome__background-before group-[.is-active]:fill-primary/15 dark:group-[.is-active]:fill-accent absolute bottom-0 left-[-1px] fill-transparent transition-all duration-150"
|
|
|
+ class="tabs-chrome__background-before absolute bottom-0 left-[-1px] fill-transparent transition-all duration-150 group-[.is-active]:fill-primary/15 dark:group-[.is-active]:fill-accent"
|
|
|
height="7"
|
|
|
width="7"
|
|
|
>
|
|
|
<path d="M 0 7 A 7 7 0 0 0 7 0 L 7 7 Z" />
|
|
|
</svg>
|
|
|
<svg
|
|
|
- class="tabs-chrome__background-after group-[.is-active]:fill-primary/15 dark:group-[.is-active]:fill-accent absolute bottom-0 right-[-1px] fill-transparent transition-all duration-150"
|
|
|
+ class="tabs-chrome__background-after absolute bottom-0 right-[-1px] fill-transparent transition-all duration-150 group-[.is-active]:fill-primary/15 dark:group-[.is-active]:fill-accent"
|
|
|
height="7"
|
|
|
width="7"
|
|
|
>
|
|
|
@@ -139,19 +139,19 @@ function onMouseDown(e: MouseEvent, tab: TabConfig) {
|
|
|
<!-- close-icon -->
|
|
|
<X
|
|
|
v-show="!tab.affixTab && tabsView.length > 1 && tab.closable"
|
|
|
- class="hover:bg-accent stroke-accent-foreground/80 hover:stroke-accent-foreground text-accent-foreground/80 group-[.is-active]:text-accent-foreground mt-[2px] size-3 cursor-pointer rounded-full transition-all"
|
|
|
+ class="mt-[2px] size-3 cursor-pointer rounded-full stroke-accent-foreground/80 text-accent-foreground/80 transition-all hover:bg-accent hover:stroke-accent-foreground group-[.is-active]:text-accent-foreground"
|
|
|
@click.stop="() => emit('close', tab.key)"
|
|
|
/>
|
|
|
<Pin
|
|
|
v-show="tab.affixTab && tabsView.length > 1 && tab.closable"
|
|
|
- class="hover:text-accent-foreground text-accent-foreground/80 group-[.is-active]:text-accent-foreground mt-[1px] size-3.5 cursor-pointer rounded-full transition-all"
|
|
|
+ class="mt-[1px] size-3.5 cursor-pointer rounded-full text-accent-foreground/80 transition-all hover:text-accent-foreground group-[.is-active]:text-accent-foreground"
|
|
|
@click.stop="() => emit('unpin', tab)"
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
<!-- tab-item-main -->
|
|
|
<div
|
|
|
- class="tabs-chrome__item-main group-[.is-active]:text-primary dark:group-[.is-active]:text-accent-foreground text-accent-foreground z-[2] mx-[calc(var(--gap)*2)] my-0 flex h-full items-center overflow-hidden rounded-tl-[5px] rounded-tr-[5px] pl-2 pr-4 duration-150"
|
|
|
+ class="tabs-chrome__item-main z-[2] mx-[calc(var(--gap)*2)] my-0 flex h-full items-center overflow-hidden rounded-tl-[5px] rounded-tr-[5px] pl-2 pr-4 text-accent-foreground duration-150 group-[.is-active]:text-primary dark:group-[.is-active]:text-accent-foreground"
|
|
|
>
|
|
|
<VbenIcon
|
|
|
v-if="showIcon"
|
|
|
@@ -190,7 +190,7 @@ function onMouseDown(e: MouseEvent, tab: TabConfig) {
|
|
|
@apply pb-[2px];
|
|
|
|
|
|
&-content {
|
|
|
- @apply bg-accent mx-[2px] rounded-md;
|
|
|
+ @apply mx-[2px] rounded-md bg-accent;
|
|
|
}
|
|
|
}
|
|
|
}
|