From c1e28224aa2e1450031669d9a7e359b63e04687d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Jul 2026 19:40:59 +0200 Subject: Init --- src/styles/objects/_toc.scss | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/styles/objects/_toc.scss (limited to 'src/styles/objects/_toc.scss') diff --git a/src/styles/objects/_toc.scss b/src/styles/objects/_toc.scss new file mode 100644 index 0000000..aefb0c5 --- /dev/null +++ b/src/styles/objects/_toc.scss @@ -0,0 +1,27 @@ +@use "sass:list"; + +@use "pkg:iro-sass/bem"; +@use "pkg:iro-sass/props"; +@use "pkg:iro-design" as iro; + +@mixin styles { + @include bem.object("toc") { + @include bem.elem("item") { + @include bem.next-twin-elem { + margin-block-start: props.get(iro.$core--size--50); + } + + @include bem.is("active") { + @include bem.elem("item-link") { + font-weight: bold; + text-decoration-line: none; + color: props.get(iro.$core--theme, --heading); + + &:hover { + text-decoration-line: underline; + } + } + } + } + } +} -- cgit v1.3.1