mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +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 (
|
||||
<Row>
|
||||
<Col md={6}>
|
||||
<Col md={6} className="ascribe-print-col-left">
|
||||
<MediaContainer
|
||||
content={this.props.edition}/>
|
||||
</Col>
|
||||
<Col md={6} className="ascribe-edition-details">
|
||||
<Col md={6} className="ascribe-edition-details ascribe-print-col-right">
|
||||
<div className="ascribe-detail-header">
|
||||
<hr style={{marginTop: 0}}/>
|
||||
<h1 className="ascribe-detail-title">{this.props.edition.title}</h1>
|
||||
|
@ -34,12 +34,12 @@ let Piece = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<Row>
|
||||
<Col md={6}>
|
||||
<Col md={6} className="ascribe-print-col-left">
|
||||
<MediaContainer
|
||||
refreshObject={this.updateObject}
|
||||
content={this.props.piece}/>
|
||||
</Col>
|
||||
<Col md={6} className="ascribe-edition-details">
|
||||
<Col md={6} className="ascribe-edition-details ascribe-print-col-right">
|
||||
{this.props.header}
|
||||
{this.props.subheader}
|
||||
{this.props.buttons}
|
||||
|
@ -14,4 +14,14 @@
|
||||
margin: 0.5em 0;
|
||||
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