Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make new section class #5

Merged
merged 1 commit into from
Aug 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
text-align: center;
}

.app_section {
margin: 20px 0;
}
table tr th {
height: 40px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/disease-contributions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class DiseaseContributions extends Component {
return <></>;

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Contributions for{' '}
Expand All @@ -33,7 +33,7 @@ export class DiseaseContributions extends Component {
}
}}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/disease-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DiseaseInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -32,7 +32,7 @@ export class DiseaseInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/disease-prediction-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class DiseasePredictionInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -49,7 +49,7 @@ export class DiseasePredictionInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/disease-predictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class DiseasePredictions extends Component {
return <></>;

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Predictions for{' '}
Expand Down Expand Up @@ -162,7 +162,7 @@ export class DiseasePredictions extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/diseases.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Diseases extends Component {
// display component
render() {
return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='table_attic'>
<span className='small light'>
{toComma(this.props.diseases.length)} entries
Expand Down Expand Up @@ -137,7 +137,7 @@ export class Diseases extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/feature-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class FeatureInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -31,7 +31,7 @@ export class FeatureInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/feature-prediction-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class FeaturePredictionInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -43,7 +43,7 @@ export class FeaturePredictionInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/feature-predictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class FeaturePredictions extends Component {
return <></>;

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Predictions for{' '}
Expand Down Expand Up @@ -162,7 +162,7 @@ export class FeaturePredictions extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Features extends Component {
// display component
render() {
return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='table_attic'>
<span className='small light'>
{toComma(this.props.features.length)} entries
Expand Down Expand Up @@ -119,7 +119,7 @@ export class Features extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/gene-contributions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class GeneContributions extends Component {
return <></>;

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Contributions for{' '}
Expand All @@ -33,7 +33,7 @@ export class GeneContributions extends Component {
}
}}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/gene-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class GeneInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -41,7 +41,7 @@ export class GeneInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/gene-prediction-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class GenePredictionInfo extends Component {
];

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Info about{' '}
Expand All @@ -38,7 +38,7 @@ export class GenePredictionInfo extends Component {
</b>
</p>
<InfoTable bodyContents={bodyContents} />
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/gene-predictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class GenePredictions extends Component {
return <></>;

return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<hr />
<p className='left'>
Predictions for{' '}
Expand Down Expand Up @@ -152,7 +152,7 @@ export class GenePredictions extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}
4 changes: 2 additions & 2 deletions src/genes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Genes extends Component {
// display component
render() {
return (
<section style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='app_section' style={{ display: this.props.visible ? 'block' : 'none' }}>
<div className='table_attic'>
<span className='small light'>
{toComma(this.props.genes.length)} entries
Expand Down Expand Up @@ -120,7 +120,7 @@ export class Genes extends Component {
]}
bodyClasses={['', 'small left', 'left']}
/>
</section>
</div>
);
}
}