UNPKG

@elastic/eui

Version:

Elastic UI Component Library

19 lines (18 loc) 1.05 kB
/* * 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 { euiFontSize, logicalCSS } from '../../global_styling'; import { transparentize } from '../../services'; export var euiImageCaptionStyles = function euiImageCaptionStyles(euiThemeContext) { var euiTheme = euiThemeContext.euiTheme; return { // Base euiImageCaption: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('margin-top', euiTheme.size.xs), ";;label:euiImageCaption;"), isOnOverlayMask: /*#__PURE__*/css("color:", euiTheme.colors.textGhost, ";text-shadow:0 1px 2px ", transparentize(euiTheme.colors.plainDark, 0.6), ";[class*='euiLink']{color:", euiTheme.colors.textGhost, ";};label:isOnOverlayMask;") }; };