Cleans up AIO's Sass files by: * Switching them all over to the `@use`-based API from Angular Material. * Removing the import of the Material theming API in a bunch of places that weren't using it. * Migrating the new usages of Sass utility functions to the new syntax (e.g. `map.get` vs `map-get`). * Fixing a few files that were using 4 spaces for indentation instead of 2. PR Close #42442
22 lines
448 B
SCSS
22 lines
448 B
SCSS
@use 'sass:map';
|
|
@use '../../constants';
|
|
|
|
@mixin theme($theme) {
|
|
.symbol {
|
|
box-shadow: 0 1px 2px rgba(constants.$black, 0.24);
|
|
color: constants.$white;
|
|
|
|
// SYMBOL TYPES
|
|
// Symbol mapping variables in *constants*
|
|
@each $name, $symbol in constants.$api-symbols {
|
|
&.#{$name} {
|
|
background: map.get($symbol, background);
|
|
|
|
&:before {
|
|
content: map.get($symbol, content);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|