From ccf17c6444e2d9afbcc7692ce831a04c4d868476 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 19 Mar 2026 12:47:17 +0800 Subject: [PATCH] fix(assets): enhance tablist-wrapper styles --- assets/css/_page/_single/_shortcodes/_tabs.scss | 8 ++++++++ layouts/_partials/init/index.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/css/_page/_single/_shortcodes/_tabs.scss b/assets/css/_page/_single/_shortcodes/_tabs.scss index 00c1a928..5e737090 100644 --- a/assets/css/_page/_single/_shortcodes/_tabs.scss +++ b/assets/css/_page/_single/_shortcodes/_tabs.scss @@ -51,6 +51,10 @@ tab-container { } } + &::part(tablist-wrapper) { + display: contents; + } + &::part(tablist-tab-wrapper) { flex: 1 0 auto; } @@ -138,6 +142,10 @@ tab-container { pointer-events: none; } + &:has(> .tab-button[aria-selected='false']:hover)::part(tablist-tab-wrapper)::before { + opacity: 0.7; + } + &[placement='top'], &[placement='bottom'] { gap: 0.5rem; diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index f9f18dd8..7707befb 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.4-20260319034216-0bf5d3a4" -}} +{{- hugo.Store.Set "version" "v0.4.4-20260319044718-9bac69b2" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}