Skip to content

Commit

Permalink
increase space between fieldsset rows (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored Nov 18, 2016
1 parent b961c95 commit 2c068a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class FieldSetRow extends React.Component {
render() {
const colSize = NUM_COLUMNS / this.props.fieldSets.length;
return (
<div className="row">
<div className="row space-2">
{this.props.fieldSets.map((fs) => {
const fieldData = this.getFieldData(fs);
return (
Expand Down
9 changes: 9 additions & 0 deletions superset/assets/stylesheets/less/cosmo/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -412,3 +412,12 @@ a.list-group-item {
hr {
margin: 10px 0;
}

// generate space-n classes for vertical spacing
.space-loop(@counter) when (@counter > 0) {
.space-loop((@counter - 1)); // next iteration
.space-@{counter} {
margin-bottom: (10px * @counter); // code for each iteration
}
}
.space-loop(6);

0 comments on commit 2c068a1

Please sign in to comment.