From b3373a74ac9505602545545e25a6c42f8d8a8d47 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 15 Nov 2024 21:46:18 +0100 Subject: Add collapse style --- src/objects/_tabs.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/objects') diff --git a/src/objects/_tabs.scss b/src/objects/_tabs.scss index 37bec71..5526f95 100644 --- a/src/objects/_tabs.scss +++ b/src/objects/_tabs.scss @@ -19,6 +19,10 @@ block-size: 100%; padding-inline: props.get(vars.$tab--pad-i); + @include bem.elem('caret') { + display: none; + } + @include bem.elem('tab') { position: relative; display: flex; @@ -91,5 +95,19 @@ } } } + + @include bem.is('collapsed') { + @include bem.elem('tab') { + display: none; + } + + @include bem.elem('caret') { + display: block; + } + + @include bem.is('selected') { + display: flex; + } + } } } -- cgit v1.2.3-70-g09d2