UNPKG

@elastic/eui

Version:

Elastic UI Component Library

44 lines (42 loc) 2.25 kB
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ import { css } from '@emotion/react'; import { logicalCSS } from '../../global_styling'; /** * Styles cast to <li> element */ var _ref = process.env.NODE_ENV === "production" ? { name: "1k7t4ns-isCollapsed", styles: "flex-shrink:0;label:isCollapsed;" } : { name: "1k7t4ns-isCollapsed", styles: "flex-shrink:0;label:isCollapsed;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; var _ref2 = process.env.NODE_ENV === "production" ? { name: "p0bcva-isTruncated", styles: "overflow:hidden;label:isTruncated;" } : { name: "p0bcva-isTruncated", styles: "overflow:hidden;label:isTruncated;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; export var euiBreadcrumbStyles = function euiBreadcrumbStyles(euiThemeContext) { var euiTheme = euiThemeContext.euiTheme; return { euiBreadcrumb: /*#__PURE__*/css("align-items:center;display:flex;", logicalCSS( // See .euiBreadcrumbs__list's negative margin-bottom 'margin-bottom', euiTheme.size.xs), ";;label:euiBreadcrumb;"), isTruncated: _ref2, isCollapsed: _ref, // Types page: /*#__PURE__*/css("&:not(:last-of-type){&::after{background:", euiTheme.colors.lightShade, ";content:'';flex-shrink:0;", logicalCSS('margin-top', euiTheme.size.xs), " ", logicalCSS('margin-bottom', 0), " ", logicalCSS('margin-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.base), " ", logicalCSS('width', '1px'), " transform:translateY(-1px) rotate(15deg);}};label:page;"), application: /*#__PURE__*/css("&:not(:last-of-type){", logicalCSS('margin-right', "-".concat(euiTheme.size.xs)), ";};label:application;") }; };