mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 06:02:41 +00:00
Adjust styling for unusual browser widths
This commit is contained in:
@@ -47,16 +47,26 @@ const MetadataNav = createClass({
|
|||||||
if(!this.state.showMetaWindow) return null;
|
if(!this.state.showMetaWindow) return null;
|
||||||
|
|
||||||
return <div className='dropdown'>
|
return <div className='dropdown'>
|
||||||
<h4>Description</h4>
|
<div className='row'>
|
||||||
<p>{this.props.brew.description || 'No description.'}</p>
|
<h4>Description</h4>
|
||||||
<h4>Authors</h4>
|
<p>{this.props.brew.description || 'No description.'}</p>
|
||||||
<p>{this.getAuthors()}</p>
|
</div>
|
||||||
<h4>Tags</h4>
|
<div className='row'>
|
||||||
<p>{this.getTags()}</p>
|
<h4>Authors</h4>
|
||||||
<h4>Systems</h4>
|
<p>{this.getAuthors()}</p>
|
||||||
<p>{this.getSystems()}</p>
|
</div>
|
||||||
<h4>Last Updated</h4>
|
<div className='row'>
|
||||||
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
|
<h4>Tags</h4>
|
||||||
|
<p>{this.getTags()}</p>
|
||||||
|
</div>
|
||||||
|
<div className='row'>
|
||||||
|
<h4>Systems</h4>
|
||||||
|
<p>{this.getSystems()}</p>
|
||||||
|
</div>
|
||||||
|
<div className='row'>
|
||||||
|
<h4>Last Updated</h4>
|
||||||
|
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
|
||||||
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -187,23 +187,30 @@
|
|||||||
align-content: baseline;
|
align-content: baseline;
|
||||||
padding: 10px 10px 0px;
|
padding: 10px 10px 0px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
h4{
|
.row{
|
||||||
display: block;
|
display : flex;
|
||||||
box-sizing: border-box;
|
flex-flow : row wrap;
|
||||||
padding: 5px 0px;
|
width : 100%;
|
||||||
color: #bbb;
|
h4{
|
||||||
text-align: center;
|
display : block;
|
||||||
border-top: 1px solid #888;
|
box-sizing : border-box;
|
||||||
flex-basis: 20%;
|
padding : 5px 0px;
|
||||||
}
|
color : #bbb;
|
||||||
p{
|
text-align : center;
|
||||||
font-family : 'Open Sans', sans-serif;
|
border-top : 1px solid #888;
|
||||||
font-size : 10px;
|
flex-basis : 20%;
|
||||||
font-weight : normal;
|
flex-grow : 1;
|
||||||
text-transform : initial;
|
}
|
||||||
padding: 5px 0;
|
p{
|
||||||
flex-basis: 80%;
|
font-family : 'Open Sans', sans-serif;
|
||||||
border-top: 1px solid #888;
|
font-size : 10px;
|
||||||
|
font-weight : normal;
|
||||||
|
text-transform : initial;
|
||||||
|
padding : 5px 0;
|
||||||
|
flex-basis : 80%;
|
||||||
|
flex-grow : 1;
|
||||||
|
border-top : 1px solid #888;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user