UNPKG

@jupyter/web-components

Version:

A component library for building extensions in Jupyter frontends.

28 lines (25 loc) 702 B
// 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 { neutralFillRest, neutralStrokeDividerRest, strokeWidth } from '../design-tokens.js'; /** * Styles for Data Grid row * @public */ export const dataGridRowStyles = (context, definition) => css ` :host { display: grid; padding: 1px 0; box-sizing: border-box; width: 100%; border-bottom: calc(${strokeWidth} * 1px) solid ${neutralStrokeDividerRest}; } :host(.header) { } :host(.sticky-header) { background: ${neutralFillRest}; position: sticky; top: 0; } `;