UNPKG

@jupyter/web-components

Version:

A component library for building extensions in Jupyter frontends.

27 lines (25 loc) 858 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 { display } from '@microsoft/fast-foundation'; import { designUnit, neutralStrokeDividerRest, strokeWidth } from '../design-tokens.js'; /** * Styles for Divider * @public */ export const dividerStyles = (context, definition) => css ` ${display('block')} :host { box-sizing: content-box; height: 0; margin: calc(${designUnit} * 1px) 0; border-top: calc(${strokeWidth} * 1px) solid ${neutralStrokeDividerRest}; border-left: none; } :host([orientation='vertical']) { height: 100%; margin: 0 calc(${designUnit} * 1px); border-top: none; border-left: calc(${strokeWidth} * 1px) solid ${neutralStrokeDividerRest}; } `;