MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / buildGradientBorderPseudoStyle

Function buildGradientBorderPseudoStyle

packages/extension/utils/css.ts:578–590  ·  view source on GitHub ↗
(spec: GradientBorderSpec)

Source from the content-addressed store, hash-verified

576}
577
578function buildGradientBorderPseudoStyle(spec: GradientBorderSpec): Record<string, string> {
579 return {
580 content: '""',
581 position: 'absolute',
582 inset: spec.inset,
583 padding: spec.borderWidth,
584 'border-radius': 'inherit',
585 background: spec.gradient,
586 'pointer-events': 'none',
587 mask: RING_MASK,
588 'mask-composite': 'exclude'
589 }
590}
591
592function formatJsObjectKey(key: string): string {
593 if (JS_IDENTIFIER_RE.test(key)) {

Callers 1

serializeCSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected