mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
35 lines
778 B
SCSS
35 lines
778 B
SCSS
//
|
|
// Copyright 2022 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';
|
|
@use '../../elevationold/lib/elevation-theme';
|
|
@use '../../sass/resolvers';
|
|
@use '../../sass/shape';
|
|
|
|
@mixin styles() {
|
|
.md3-autocomplete {
|
|
display: inline-flex;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
@function resolve-tokens($tokens) {
|
|
$tokens: elevation-theme.resolve-theme(
|
|
$tokens,
|
|
map.get(resolvers.$material, 'elevation'),
|
|
$shadow-color-token: 'menu-container-shadow-color',
|
|
$elevation-tokens: (menu-container-elevation)
|
|
);
|
|
$tokens: shape.resolve-theme(
|
|
$tokens,
|
|
map.get(resolvers.$material, shape),
|
|
text-field-container-shape
|
|
);
|
|
@return $tokens;
|
|
}
|