@universal-material/web
Version:
Material web components
63 lines (57 loc) • 1.75 kB
JavaScript
import { css } from 'lit';
export const styles = css `
:host {
--_color-primary: var(--u-color-primary, rgb(103, 80, 164));
-webkit-tap-highlight-color: transparent;
--u-elevation-level: 0;
position: relative;
display: inline-block;
font-family: var(--u-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
appearance: none !important;
}
:host([disabled]) {
--u-elevation-level: 0 !important;
background-color: var(--u-button-disabled-bg-color, color-mix(in srgb, var(--u-color-on-surface, rgb(29, 27, 32)) var(--u-button-disabled-background-opacity, 12%), transparent)) !important;
color: var(--u-button-disabled-text-color, color-mix(in srgb, var(--u-color-on-surface, rgb(29, 27, 32)) var(--u-button-disabled-opacity, 38%), transparent)) !important;
}
:host([disabled]) .button {
cursor: default;
}
* {
color: inherit;
}
u-elevation {
z-index: -1;
}
.button {
cursor: pointer;
position: absolute;
inset-inline-start: 0;
inset-block-start: 0;
width: 100%;
height: 100%;
font-family: inherit;
border-radius: inherit;
color: inherit;
border: none;
margin: 0;
padding: 0;
text-align: center;
white-space: nowrap;
background: transparent;
user-select: none;
text-decoration: none;
outline: 0;
z-index: 0;
}
.content {
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
border-radius: inherit;
width: 100%;
height: 100%;
}
`;
//# sourceMappingURL=button-wrapper.styles.js.map