blob: 1768adc6860f05c46e8f82ad4500d6f34c7ea687 [file] [log] [blame]
Renovate botf591dcf2023-12-30 14:13:54 +00001@import 'variables';
2@import 'mixins';
Copybara botbe50d492023-11-30 00:16:42 +01003
Renovate botf591dcf2023-12-30 14:13:54 +00004@each $font-family
5 in (
6 'Material Icons',
7 'Material Icons Outlined',
8 'Material Icons Round',
9 'Material Icons Sharp',
10 'Material Icons Two Tone'
11 )
12{
13 $full-class-name: to-lower-case($font-family);
14 $full-class-name: material-icons-str-replace($full-class-name, ' ', '-');
15 $class-name: material-icons-str-replace(
16 $full-class-name,
17 'material-icons',
18 $material-icons-css-prefix
19 );
Copybara botbe50d492023-11-30 00:16:42 +010020
Renovate botf591dcf2023-12-30 14:13:54 +000021 /**
22 * @deprecated Use .#{$full-class-name} instead of .#{$class-name}
23 */
24 .#{$class-name} {
25 @include material-icons-font-class($font-family);
26 }
Copybara botbe50d492023-11-30 00:16:42 +010027}
28
29@each $name, $codepoint in $material-icons-codepoints {
30 $class-name: material-icons-str-replace(
31 $name,
32 $material-icons-css-search,
33 $material-icons-css-replace
34 );
35
36 .#{$material-icons-css-prefix}-#{$class-name} {
37 @include material-icon($name);
38 }
39}