mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Force piece and edition layout to be two columns
This commit is contained in:
parent
c4da6a2dfc
commit
8ec7023b8f
@ -57,11 +57,11 @@ let Edition = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Row>
|
<Row>
|
||||||
<Col md={6}>
|
<Col md={6} className="ascribe-print-col-left">
|
||||||
<MediaContainer
|
<MediaContainer
|
||||||
content={this.props.edition}/>
|
content={this.props.edition}/>
|
||||||
</Col>
|
</Col>
|
||||||
<Col md={6} className="ascribe-edition-details">
|
<Col md={6} className="ascribe-edition-details ascribe-print-col-right">
|
||||||
<div className="ascribe-detail-header">
|
<div className="ascribe-detail-header">
|
||||||
<hr style={{marginTop: 0}}/>
|
<hr style={{marginTop: 0}}/>
|
||||||
<h1 className="ascribe-detail-title">{this.props.edition.title}</h1>
|
<h1 className="ascribe-detail-title">{this.props.edition.title}</h1>
|
||||||
|
@ -34,12 +34,12 @@ let Piece = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Row>
|
<Row>
|
||||||
<Col md={6}>
|
<Col md={6} className="ascribe-print-col-left">
|
||||||
<MediaContainer
|
<MediaContainer
|
||||||
refreshObject={this.updateObject}
|
refreshObject={this.updateObject}
|
||||||
content={this.props.piece}/>
|
content={this.props.piece}/>
|
||||||
</Col>
|
</Col>
|
||||||
<Col md={6} className="ascribe-edition-details">
|
<Col md={6} className="ascribe-edition-details ascribe-print-col-right">
|
||||||
{this.props.header}
|
{this.props.header}
|
||||||
{this.props.subheader}
|
{this.props.subheader}
|
||||||
{this.props.buttons}
|
{this.props.buttons}
|
||||||
|
@ -14,4 +14,14 @@
|
|||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Force left and right columns
|
||||||
|
.ascribe-print-col-left {
|
||||||
|
width: 50% !important;
|
||||||
|
float: left !important;
|
||||||
|
}
|
||||||
|
.ascribe-print-col-right {
|
||||||
|
width: 50% !important;
|
||||||
|
float: right !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user