mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
37 lines
729 B
SCSS
37 lines
729 B
SCSS
//
|
|
// Copyright 2021 Google LLC
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// go/keep-sorted start
|
|
@use 'sass:map';
|
|
// go/keep-sorted end
|
|
// go/keep-sorted start
|
|
@use '../../sass/theme';
|
|
@use '../../tokens';
|
|
// go/keep-sorted end
|
|
|
|
$_custom-property-prefix: 'text-button';
|
|
|
|
@mixin theme($tokens) {
|
|
$tokens: theme.validate-theme(tokens.md-comp-text-button-values(), $tokens);
|
|
|
|
@each $token, $value in $tokens {
|
|
--md-text-button-#{$token}: #{$value};
|
|
}
|
|
}
|
|
|
|
@mixin styles() {
|
|
$tokens: tokens.md-comp-text-button-values();
|
|
|
|
:host {
|
|
@each $token, $value in $tokens {
|
|
--_#{$token}: #{$value};
|
|
}
|
|
|
|
--_container-color: none;
|
|
--_disabled-container-color: none;
|
|
--_disabled-container-opacity: 0;
|
|
}
|
|
}
|