UNPKG

@elastic/eui

Version:

Elastic UI Component Library

28 lines (27 loc) 1.96 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/css'; import { logicalCSS, euiAnimFadeIn } from '../../global_styling'; export var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) { var euiTheme = _ref.euiTheme, highContrastMode = _ref.highContrastMode; return { euiOverlayMask: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('left', 0), " ", logicalCSS('right', 0), " ", logicalCSS('bottom', 0), " display:flex;align-items:center;justify-content:center;animation:", euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in forwards;animation-iteration-count:1;background:", highContrastMode ? euiTheme.components.overlayMaskBackgroundHighContrast : euiTheme.components.overlayMaskBackground, ";;label:euiOverlayMask;"), aboveHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.mask, ";;label:aboveHeader;"), belowHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.maskBelowHeader, ";", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), ";;label:belowHeader;"), noAnimation: /*#__PURE__*/css(process.env.NODE_ENV === "production" ? { name: "lqr4xc-noAnimation", styles: "animation:none;label:noAnimation;" } : { name: "lqr4xc-noAnimation", styles: "animation:none;label:noAnimation;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }) }; };