summaryrefslogtreecommitdiffstats
path: root/src/styles/objects/_toc.scss
blob: aefb0c5bc1807da1e278091a05dc8ef15c03b8d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
					}
				}
			}
		}
	}
}