mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
thumbnail is not croped anymore
This commit is contained in:
parent
e3c3afcefa
commit
8d560fb664
@ -11,15 +11,14 @@ let AccordionListItem = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
console.log(this.props.content);
|
||||
return (
|
||||
<div className="row">
|
||||
<div className={this.props.className}>
|
||||
<div className="wrapper">
|
||||
<div className="thumbnail-wrapper">
|
||||
<div className="col-md-4 thumbnail-wrapper">
|
||||
<img src={this.props.content.thumbnail} />
|
||||
</div>
|
||||
<div className="info-wrapper">
|
||||
<div className="col-md-8">
|
||||
<h1>{this.props.content.title}</h1>
|
||||
<h3>{getLangText('by %s', this.props.content.artist_name)}</h3>
|
||||
<h3>{this.props.content.date_created.split('-')[0]}</h3>
|
||||
|
@ -21,29 +21,20 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
|
||||
height:100%;
|
||||
// ToDo: Include media queries for thumbnail
|
||||
.thumbnail-wrapper {
|
||||
float:left;
|
||||
height:100%;
|
||||
width:$ascribe-accordion-list-item-height;
|
||||
overflow:hidden;
|
||||
margin-left:0;
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
|
||||
img {
|
||||
display:block;
|
||||
height: $ascribe-accordion-list-item-height;
|
||||
}
|
||||
}
|
||||
.info-wrapper {
|
||||
float:left;
|
||||
font-family: $ascribe-accordion-list-font;
|
||||
margin-left: 2em;
|
||||
h1 {
|
||||
margin-top: .5em;
|
||||
font-size: 2.25em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.1em;
|
||||
margin: .7em 0 0 0;
|
||||
}
|
||||
h1 {
|
||||
margin-top: .3em;
|
||||
font-size: 2.25em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.1em;
|
||||
margin: .7em 0 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user