UNPKG

@elastic/eui

Version:

Elastic UI Component Library

50 lines (48 loc) 2.38 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__ }; var _ref3 = process.env.NODE_ENV === "production" ? { name: "c4wfaq-euiBreadcrumb", styles: "align-items:center;display:flex;label:euiBreadcrumb;" } : { name: "c4wfaq-euiBreadcrumb", styles: "align-items:center;display:flex;label:euiBreadcrumb;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; export var euiBreadcrumbStyles = function euiBreadcrumbStyles(euiThemeContext) { var euiTheme = euiThemeContext.euiTheme; return { euiBreadcrumb: _ref3, isTruncated: _ref2, isCollapsed: _ref, // Types page: /*#__PURE__*/css("&:not(:last-of-type){&::after{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('border-right', euiTheme.border.thin), " transform:translateY(-", euiTheme.border.width.thin, ") rotate(15deg);}};label:page;"), application: /*#__PURE__*/css("&:not(:last-of-type){", logicalCSS('margin-right', "-".concat(euiTheme.size.xs)), ";};label:application;") }; };