style: adds form negative margin back in, adds padding to sticky header
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
.form {
|
||||
@include row;
|
||||
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sticky-header {
|
||||
@include gutter;
|
||||
}
|
||||
|
||||
> .btn {
|
||||
@include gutter;
|
||||
}
|
||||
|
||||
@@ -6,21 +6,26 @@ import RenderFields from '../../RenderFields';
|
||||
import './index.scss';
|
||||
|
||||
const Group = (props) => {
|
||||
const { label, fields, name, defaultValue } = props;
|
||||
const {
|
||||
label, fields, name, defaultValue,
|
||||
} = props;
|
||||
|
||||
return (
|
||||
<Section
|
||||
heading={label}
|
||||
className="field-group"
|
||||
>
|
||||
<RenderFields fields={fields.map((subField) => {
|
||||
return {
|
||||
...subField,
|
||||
name: `${name}.${subField.name}`,
|
||||
defaultValue: defaultValue[subField.name],
|
||||
};
|
||||
})} />
|
||||
</Section>
|
||||
<div className="field-type group">
|
||||
<Section
|
||||
heading={label}
|
||||
className="field-group"
|
||||
>
|
||||
<RenderFields fields={fields.map((subField) => {
|
||||
return {
|
||||
...subField,
|
||||
name: `${name}.${subField.name}`,
|
||||
defaultValue: defaultValue[subField.name],
|
||||
};
|
||||
})}
|
||||
/>
|
||||
</Section>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
section.section {
|
||||
@include shadow;
|
||||
margin: base(1) 0;
|
||||
transition: 300ms ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 22px 65px rgba(0,0,0,.15);
|
||||
|
||||
Reference in New Issue
Block a user