suomifi-ui-components
Version:
Suomi.fi UI component library
15 lines (11 loc) • 1.68 kB
JavaScript
'use strict';
var tslib = require('tslib');
var styled = require('styled-components');
var index = require('../../theme/reset/index.js');
var spacing = require('../../theme/utils/spacing.js');
var baseStyles = function baseStyles(theme, globalMargins, propMargins) {
return styled.css(templateObject_1 || (templateObject_1 = tslib.__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"])), index.element(theme), spacing.buildSpacingCSS(globalMargins), spacing.buildSpacingCSS(propMargins, true), theme.spacing.xs, theme.spacing.xs, theme.spacing.xxs, theme.spacing.s);
};
var templateObject_1;
exports.baseStyles = baseStyles;
//# sourceMappingURL=CheckboxGroup.baseStyles.js.map