UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

41 lines 1.26 kB
import { TooltipDelay } from './Tooltip.types'; import { AnimationClassNames } from '../../Styling'; export var getStyles = function (props) { var className = props.className, delay = props.delay, maxWidth = props.maxWidth, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; return { root: [ 'ms-Tooltip', AnimationClassNames.fadeIn200, { background: palette.white, padding: '8px', animationDelay: '300ms', maxWidth: maxWidth }, delay === TooltipDelay.zero && { animationDelay: '0s' }, delay === TooltipDelay.long && { animationDelay: '500ms' }, className ], content: [ 'ms-Tooltip-content', fonts.small, palette.neutralPrimary, { wordWrap: 'break-word', overflowWrap: 'break-word' } ], subText: [ 'ms-Tooltip-subtext', { margin: 0 } ] }; }; //# sourceMappingURL=Tooltip.styles.js.map