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 { .byline {
color: #aaa; color: #aaa;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden; overflow: hidden;
position: relative;
line-height: 1.2em;
max-height: 2.4em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
} }
.title { .title {

View File

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

View File

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