suomifi-ui-components
Version:
Suomi.fi UI component library
13 lines (10 loc) • 1.64 kB
JavaScript
import { __makeTemplateObject } from 'tslib';
import { css } from 'styled-components';
import { element } 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\n & .fi-checkbox-group_legend {\n &--with-margin {\n margin-bottom: ", ";\n }\n .fi-hint-text {\n margin-bottom: 0;\n }\n }\n\n & .fi-checkbox-group_label--with-margin {\n margin-bottom: 10px;\n }\n\n & .fi-checkbox-group_container {\n & > .fi-checkbox {\n margin-bottom: ", ";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n & .fi-checkbox--large {\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n"], ["\n ", "\n ", "\n ", "\n\n & .fi-checkbox-group_legend {\n &--with-margin {\n margin-bottom: ", ";\n }\n .fi-hint-text {\n margin-bottom: 0;\n }\n }\n\n & .fi-checkbox-group_label--with-margin {\n margin-bottom: 10px;\n }\n\n & .fi-checkbox-group_container {\n & > .fi-checkbox {\n margin-bottom: ", ";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n & .fi-checkbox--large {\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n"])), element(theme), buildSpacingCSS(globalMargins), buildSpacingCSS(propMargins, true), theme.spacing.xs, theme.spacing.xs, theme.spacing.xxs, theme.spacing.s);
};
var templateObject_1;
export { baseStyles };
//# sourceMappingURL=CheckboxGroup.baseStyles.js.map