@@ -96,26 +96,43 @@ $_tab-v-margin: 6px; // symmetric top/bottom gap inside SceneBar
9696 }
9797 }
9898
99- & :only-child ,
100- & :only-child #{&} --active {
101- cursor : default ;
102- }
103-
104- // Active state
99+ // Active state — same fill as .bitfun-nav-panel__item.is-active (no left rail on horizontal tabs)
105100 & --active {
106101 color : var (--color-text-primary );
107102 font-weight : 500 ;
108- background : var (--element-bg-base );
103+ background : var (--element-bg-soft );
109104
110105 .bitfun-scene-tab__icon {
111- color : var (--color-primary );
106+ color : var (--color-text-primary );
107+ opacity : 1 ;
112108 }
113109
114110 & :hover .bitfun-scene-tab__close {
115111 opacity : 1 ;
116112 }
117113 }
118114
115+ // Single tab: no pill background (same whether active or not).
116+ & :only-child {
117+ cursor : default ;
118+ background : transparent ;
119+ box-shadow : none ;
120+
121+ & :hover {
122+ background : transparent ;
123+ color : var (--color-text-secondary );
124+ }
125+
126+ & .bitfun-scene-tab--active {
127+ background : transparent ;
128+ box-shadow : none ;
129+
130+ & :hover {
131+ background : transparent ;
132+ }
133+ }
134+ }
135+
119136 & :focus-visible {
120137 outline : 2px solid var (--color-accent-500 );
121138 outline-offset : -2px ;
@@ -226,47 +243,61 @@ $_tab-v-margin: 6px; // symmetric top/bottom gap inside SceneBar
226243 opacity : 0.94 ;
227244}
228245
229- // Light themes: inactive tabs use tiered bg.* tokens; active is a gentle step brighter
230- // (not full scene white + cast shadow) so it does not read as a separate floating card.
246+ // Light themes: inactive = former active (soft tint on chrome); active = former inactive (lifted pill + edge).
231247:root [data-theme-type = ' light' ] .bitfun-scene-tab {
232- background : var (--color-bg-tertiary );
233- color : var (--color-text-secondary );
248+ background : var (--element-bg-soft );
249+ color : var (--color-text-primary );
250+ box-shadow : none ;
234251
235252 & :hover {
236- background : var (--color-bg-quaternary );
237- color : var (--color-text-secondary );
253+ background : var (--element-bg-medium );
254+ color : var (--color-text-primary );
255+ box-shadow : none ;
256+ }
257+
258+ .bitfun-scene-tab__icon {
259+ opacity : 1 ;
238260 }
239261
240262 & --active {
241- color : var (--color-text-primary );
242- // Softer than full scene white + drop shadow: stays in the same family as idle tabs
243- background : color-mix (in srgb , var (--color-bg-scene ) 72% , var (--color-bg-tertiary ));
244- box-shadow : 0 0 0 1px color-mix (in srgb , var (--border-subtle ) 42% , transparent );
263+ background : var (--color-bg-secondary );
264+ color : color-mix (in srgb , var (--color-text-primary ) 86% , var (--color-text-muted ));
265+ box-shadow : 0 0 0 1px color-mix (in srgb , var (--border-subtle ) 38% , transparent );
245266
246267 & :hover {
247- background : color-mix (in srgb , var (--color-bg-scene ) 76% , var (--color-bg-tertiary ));
268+ background : color-mix (in srgb , var (--color-bg-secondary ) 82% , var (--color-bg-quaternary ));
269+ color : color-mix (in srgb , var (--color-text-primary ) 90% , var (--color-text-muted ));
270+ box-shadow : 0 0 0 1px color-mix (in srgb , var (--border-subtle ) 48% , transparent );
248271 }
249- }
250272
251- // Single tab: still a visible chip when inactive; when active, align with scene card.
252- & :only-child:not (.bitfun-scene-tab--active ) {
253- background : var (--color-bg-tertiary );
254- box-shadow : none ;
255- color : var (--color-text-secondary );
273+ .bitfun-scene-tab__icon {
274+ color : inherit ;
275+ }
276+
277+ .bitfun-scene-tab__subtitle {
278+ color : var (--color-text-muted );
279+ }
256280 }
257281
258- & :only-child .bitfun-scene-tab--active {
259- background : color-mix ( in srgb , var ( --color-bg-scene ) 72 % , var ( --color-bg-tertiary )) ;
260- box-shadow : 0 0 0 1 px color-mix ( in srgb , var ( --border-subtle ) 42 % , transparent ) ;
261- color : var (--color-text-primary );
282+ & :only-child {
283+ background : transparent ;
284+ box-shadow : none ;
285+ color : color-mix ( in srgb , var (--color-text-primary ) 86 % , var ( --color-text-muted ) );
262286
263287 & :hover {
264- background : color-mix (in srgb , var (--color-bg-scene ) 76% , var (--color-bg-tertiary ));
288+ background : transparent ;
289+ color : color-mix (in srgb , var (--color-text-primary ) 90% , var (--color-text-muted ));
265290 }
266- }
267291
268- & :only-child:not (.bitfun-scene-tab--active ):hover {
269- background : var (--color-bg-quaternary );
292+ & .bitfun-scene-tab--active {
293+ background : transparent ;
294+ box-shadow : none ;
295+ color : var (--color-text-primary );
296+
297+ & :hover {
298+ background : transparent ;
299+ }
300+ }
270301 }
271302}
272303
0 commit comments