@neu-ui/web-components
Version:
A Neumorphic web component library built with @microsoft/fast-element and Vite using javascript
82 lines (71 loc) • 1.82 kB
JavaScript
import { css as t } from "@microsoft/fast-element";
import { styles as e } from "../../styles/styles.es.js";
import { neumorphicLightStyles as o } from "../../styles/neu-ui-light.es.js";
const r = t`
${e}
${o}
:not(:defined) {
visibility: hidden;
}
:host {
display: inline-flex;
position: relative;
cursor: pointer;
}
:host .button {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: var(--gap);
width: auto;
font-size: var(--font-size);
font-weight: var(--font-weight);
font-family: var(--font-family);
line-height: var(--line-height);
color: var(--color);
text-align: center;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
user-select: none;
padding: var(--padding);
border-radius: var(--border-radius);
border: var(--border);
background: var(--background-light);
background-blend-mode: var(--background-blend-mode);
box-shadow: var(--drop-light-shadow); /* Default drop shadow */
}
:host .button:active:not([disabled]) {
box-shadow: var(--inner-light-shadow); /* Default inner shadow */
}
:host .button:focus-visible {
outline: none;
box-shadow: var(--inner-light-shadow); /* Default inner shadow */
}
:host .button .content {
display: flex;
justify-content: center;
flex: 1;
}
/* Disabled Style */
:host .button[disabled] {
cursor: not-allowed;
opacity: 0.6;
}
/* Expand Style */
:host .button[expand] {
width: 100%;
}
/* Size Style */
:host .button[size="s"] {
padding: var(--padding-small);
font-size: var(--font-size-small);
}
:host .button[size="l"] {
padding: var(--padding-large);
font-size: var(--font-size-large);
}
`;
export {
r as styles
};