@neu-ui/web-components
Version:
A Neumorphic web component library built with @microsoft/fast-element and Vite using javascript
58 lines (51 loc) • 1.33 kB
JavaScript
import { css as o } from "@microsoft/fast-element";
import { styles as e } from "../../styles/styles.es.js";
import { neumorphicLightStyles as i } from "../../styles/neu-ui-light.es.js";
const d = o`
${e}
${i}
:not(:defined) {
visibility: hidden;
}
:host {
display: inline-flex;
position: relative;
width: 100%;
}
:host .card {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: calc(var(--gap) * 4);
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-decoration: none;
vertical-align: middle;
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 .card:focus-visible {
outline: none;
box-shadow: var(--inner-light-shadow); /* Default inner shadow */
}
:host .card .header {
border-bottom: 1px solid black;
width: 100%;
}
:host .card .footer {
border-top: 1px solid black;
width: 100%;
}
`;
export {
d as styles
};