UNPKG

@neu-ui/web-components

Version:

A Neumorphic web component library built with @microsoft/fast-element and Vite using javascript

60 lines (53 loc) 1.34 kB
import { css as o } from "@microsoft/fast-element"; import { styles as e } from "../../styles/styles.es.js"; import { neumorphicLightStyles as r } from "../../styles/neu-ui-light.es.js"; const n = o` ${e} ${r} :not(:defined) { visibility: hidden; } :host { display: inline-flex; flex-direction: column; gap: var(--gap); position: relative; width: 100%; cursor: text; } :host .textarea-wrapper { position: relative; width: 100%; } :host .textarea { display: inline-flex; align-items: center; justify-content: center; gap: var(--gap); font-size: var(--font-size); font-weight: var(--font-weight); font-family: var(--font-family); line-height: var(--line-height); color: var(--color); cursor: text; 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 */ box-sizing: border-box; width: 100%; } :host .textarea:focus-visible { outline: none; box-shadow: var(--inner-light-shadow); /* Default inner shadow */ } :host .textarea[disabled] { cursor: not-allowed; opacity: 0.6; } `; export { n as styles };