summaryrefslogtreecommitdiffstats
path: root/src/styles/components/_visited-indicator.scss
blob: 7aa1f385c0f6f3e071edfcb1aefd67243fb2abeb (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 "pkg:iro-sass/bem";
@use "pkg:iro-sass/props";
@use "pkg:iro-design" as iro;

@mixin styles {
	@include bem.component("with-visited-indicator") {
		@include bem.elem("indicator") {
			block-size: 1.4em;
			color: props.get(iro.$core--theme, --text);

			&::after {
				content: "";
				display: block;
				block-size: 100%;
				inline-size: props.get(iro.$core--border-width--thick);
				border-radius: 10em;
				background-color: currentColor;
			}
		}

		&:visited {
			@include bem.elem("indicator") {
				color: props.get(iro.$core--theme, --border-mute);
			}
		}
	}
}