Elizabeth Mitchell 6c2aef6901 chore(all): add keep-sorted comments to Sass imports
PiperOrigin-RevId: 509583504
2023-02-14 11:10:23 -08:00

57 lines
1.0 KiB
SCSS

//
// Copyright 2023 Google LLC
// SPDX-License-Identifier: Apache-2.0
//
// go/keep-sorted start
@use '../../sass/theme';
@use '../../tokens';
// go/keep-sorted end
@mixin theme($tokens) {
$tokens: theme.validate-theme(tokens.md-comp-divider-values(), $tokens);
$tokens: theme.create-theme-vars($tokens, 'divider');
@include theme.emit-theme-vars($tokens);
}
@mixin styles() {
$tokens: tokens.md-comp-divider-values();
$tokens: theme.create-theme-vars($tokens, 'divider');
:host {
@each $token, $value in $tokens {
--_#{$token}: #{$value};
}
box-sizing: border-box;
color: var(--_color);
display: flex;
height: var(--_thickness);
width: 100%;
}
:host([inset]),
:host([inset-start]) {
padding-inline-start: 16px;
}
:host([inset]),
:host([inset-end]) {
padding-inline-end: 16px;
}
:host::before {
background: currentColor;
content: '';
height: 100%;
width: 100%;
}
@media (forced-colors: active) {
:host::before {
background: CanvasText;
}
}
}