material-web/elevation/lib/_elevation-overlay-theme.scss
Material Web Team 41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00

32 lines
642 B
SCSS

//
// Copyright 2021 Google LLC
// SPDX-License-Identifier: Apache-2.0
//
// stylelint-disable selector-class-pattern --
// Selector '.md3-*' should only be used in this project.
@use 'sass:map';
$transparent-theme: (
overlay-opacity: 0,
surface-tint-layer-color: transparent,
);
@mixin theme-styles($theme) {
@include _overlay-color(map.get($theme, surface-tint-layer-color));
@include _overlay-opacity(map.get($theme, overlay-opacity));
}
@mixin _overlay-color($color) {
.md3-elevation-overlay {
background-color: $color;
}
}
@mixin _overlay-opacity($opacity) {
.md3-elevation-overlay {
opacity: $opacity;
}
}