summaryrefslogtreecommitdiffstats
path: root/src/objects/_icon.scss
blob: 7baa3f888d122346ce6d4625d5cc3b75a27962c1 (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
@use "sass:meta";
@use "pkg:iro-sass/bem";
@use "pkg:iro-sass/props";
@use "../props" as *;

@forward "icon.vars";
@use "icon.vars" as vars;

@mixin styles {
	@include materialize-at-root(meta.module-variables("vars"));

	@include bem.object("icon") {
		display: inline;
		inline-size: props.get(vars.$size);
		block-size: props.get(vars.$size);
		vertical-align: props.get(vars.$valign);
		stroke-width: props.get(vars.$stroke-width);
		stroke-linecap: round;
		stroke-linejoin: round;

		@include bem.modifier("block") {
			display: block;
		}
	}
}