suomifi-ui-components
Version:
Suomi.fi UI component library
13 lines (10 loc) • 1.24 kB
JavaScript
import { __makeTemplateObject } from 'tslib';
import { css } from 'styled-components';
import { font } from '../../theme/reset/index.js';
import { buildSpacingCSS } from '../../theme/utils/spacing.js';
var baseStyles = function baseStyles(theme, globalMargins, propMargins) {
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n\n &.fi-label {\n & .fi-label_label-span {\n ", ";\n display: inline-block;\n vertical-align: middle;\n color: ", ";\n\n & .fi-label_optional-text {\n ", ";\n }\n & .fi-tooltip {\n margin-left: ", ";\n }\n }\n }\n"], ["\n ", "\n ", "\n\n &.fi-label {\n & .fi-label_label-span {\n ", ";\n display: inline-block;\n vertical-align: middle;\n color: ", ";\n\n & .fi-label_optional-text {\n ", ";\n }\n & .fi-tooltip {\n margin-left: ", ";\n }\n }\n }\n"])), buildSpacingCSS(globalMargins), buildSpacingCSS(propMargins, true), font(theme)('actionElementInnerTextBold'), theme.colors.blackBase, theme.typography.bodyTextSmall, theme.spacing.insetS);
};
var templateObject_1;
export { baseStyles };
//# sourceMappingURL=Label.baseStyles.js.map