UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

43 lines 1.56 kB
define(["require", "exports", "./Tooltip.types", "../../Styling"], function (require, exports, Tooltip_types_1, Styling_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.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', Styling_1.AnimationClassNames.fadeIn200, { background: palette.white, padding: '8px', animationDelay: '300ms', maxWidth: maxWidth }, delay === Tooltip_types_1.TooltipDelay.zero && { animationDelay: '0s' }, delay === Tooltip_types_1.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