UNPKG

@ddsys/material

Version:

<p> <a href="https://bhp-dev.gitlab.io/dds-digital-design-system/">Read the docs</a> · <a href="mailto:UserExperience@bhpbilliton.com">Request feature</a> </p>

41 lines (34 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (theme) { var colors = theme.colors, variables = theme.variables; var common = variables.common, fonts = variables.fonts, popover = variables.popover; return { style: { marginBottom: 0, fontSize: fonts.size.normal + "rem", borderBottom: "1px solid " + colors.gray_200, borderRadius: 5, maxWidth: popover.maxWidth }, title: { padding: common.spacing * 0.5 + "rem " + common.spacing * 0.75 + "rem", backgroundColor: (0, _color2.default)(colors.light).darken(0.05).string(), color: colors.dark, fontWeight: fonts.weight.bold, lineHeight: fonts.size.normal * 1.2 + "rem" }, body: { padding: common.spacing * 0.5 + "rem " + common.spacing * 0.75 + "rem", backgroundColor: colors.light } }; }; var _color = require("color"); var _color2 = _interopRequireDefault(_color); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }