UNPKG

@vscode/webview-ui-toolkit

Version:

A component library for building webview-based extensions in Visual Studio Code.

16 lines (15 loc) 533 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { css } from '@microsoft/fast-element'; import { display, } from '@microsoft/fast-foundation'; import { borderWidth, designUnit, dividerBackground } from '../design-tokens.js'; export const dividerStyles = (context, definition) => css ` ${display('block')} :host { border: none; border-top: calc(${borderWidth} * 1px) solid ${dividerBackground}; box-sizing: content-box; height: 0; margin: calc(${designUnit} * 1px) 0; width: 100%; } `;