UNPKG

@jupyter/web-components

Version:

A component library for building extensions in Jupyter frontends.

32 lines (31 loc) 1.1 kB
// Copyright (c) Jupyter Development Team. // Copyright (c) Microsoft Corporation. // Distributed under the terms of the Modified BSD License. import { css } from '@microsoft/fast-element'; import { display, forcedColorsStylesheetBehavior } from '@microsoft/fast-foundation'; import { SystemColors } from '@microsoft/fast-web-utilities'; import { controlCornerRadius, fillColor } from '../design-tokens.js'; import { elevation } from '../styles/index.js'; /** * Styles for Card * @public */ export const cardStyles = (context, definition) => css ` ${display('block')} :host { --elevation: 4; display: block; contain: content; height: var(--card-height, 100%); width: var(--card-width, 100%); box-sizing: border-box; background: ${fillColor}; border-radius: calc(${controlCornerRadius} * 1px); ${elevation} } `.withBehaviors(forcedColorsStylesheetBehavior(css ` :host { forced-color-adjust: none; background: ${SystemColors.Canvas}; box-shadow: 0 0 0 1px ${SystemColors.CanvasText}; } `));