Multiple line description for dapps and Masonry like layout (#2905) (#3058)

This commit is contained in:
Nicolas Gotchac 2016-11-01 17:47:02 +01:00 committed by Jaco Greeff
parent 9e7313afc8
commit 6fc89f69c1
3 changed files with 17 additions and 20 deletions

View File

@ -16,9 +16,14 @@
*/
.byline {
color: #aaa;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
position: relative;
line-height: 1.2em;
max-height: 2.4em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.title {

View File

@ -32,15 +32,17 @@ export default class Title extends Component {
}
render () {
const { className } = this.props;
const { className, title, byline } = this.props;
return (
<div className={ className }>
<h3 className={ styles.title }>
{ this.props.title }
{ title }
</h3>
<div className={ styles.byline }>
<span title={ this.props.byline }>{ this.props.byline }</span>
<span title={ byline }>
{ byline }
</span>
</div>
</div>
);

View File

@ -15,8 +15,8 @@
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
*/
.list {
display: flex;
flex-wrap: wrap;
column-count: 2;
column-gap: 0.25em;
}
.list+.list {
@ -24,17 +24,7 @@
}
.item {
flex: 0 1 50%;
width: 50%;
position: relative;
box-sizing: border-box;
padding-bottom: 0.25em;
}
.item:nth-child(odd) {
padding-right: 0.125em;
}
.item:nth-child(even) {
padding-left: 0.125em;
display: inline-block;
margin: 0 0 0.25em;
width: 100%;
}