Skip to content

CSS: tabs.tab

.tab — 单个选项卡按钮(InstUI Tabs.Tab,通过父级 Tabs 的选项卡列表配置);-selected 标记为活动项。

父级 tabs-variant-secondary 修饰符将此成员重样式为圆角「文件夹」选项卡 — 有关该修饰符,请参见 tabs 的文档。

用法

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/tabs.tab.css";

修饰符

修饰符描述
.-disabled不可交互;样式与 [aria-disabled="true"]/:disabled 相同。
.-selected活动选项卡;样式与 [aria-selected="true"] 相同。

状态

状态描述
[aria-disabled="true"]
[aria-selected="true"]
:disabled
:state(selected)

消耗代币

Token类型
--instui-component-tabs-panel-border-width<length>0.0625rem
--instui-component-tabs-tab-default-hover-border-color<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-tabs-tab-default-selected-border-color<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-default-text-color<color>LightDarklight-dark(#273540, #ffffff)
--instui-component-tabs-tab-font-family[ <font-family-name> | <generic-font-family> ]#Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif
--instui-component-tabs-tab-font-size<length>1rem
--instui-component-tabs-tab-font-weight<integer>400
--instui-component-tabs-tab-line-height<percentage>125%
--instui-component-tabs-tab-secondary-selected-background<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-secondary-selected-border-color<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-tabs-tab-secondary-selected-text-color<color>LightDarklight-dark(#ffffff, #1C222B)
--instui-component-tabs-tab-secondary-text-color<color>LightDarklight-dark(#273540, #ffffff)