Put border around lists
This commit is contained in:
parent
161725cb28
commit
ff86e45e0a
5 changed files with 52 additions and 47 deletions
|
@ -354,8 +354,6 @@ class Collection extends React.Component {
|
|||
}
|
||||
</h2>
|
||||
|
||||
<p className="collection-metadata__user">By {owner.username}</p>
|
||||
|
||||
<p className="collection-metadata__description">
|
||||
{
|
||||
this.isOwner() ?
|
||||
|
@ -368,6 +366,8 @@ class Collection extends React.Component {
|
|||
}
|
||||
</p>
|
||||
|
||||
<p className="collection-metadata__user">Collection by {owner.username}</p>
|
||||
|
||||
<p className="collection-metadata__user">{items.length} sketch{items.length === 1 ? '' : 'es'}</p>
|
||||
</div>
|
||||
|
||||
|
@ -404,7 +404,7 @@ class Collection extends React.Component {
|
|||
const hasCollectionItems = this.props.collection != null && this.props.collection.items.length > 0;
|
||||
|
||||
if (!isLoading && !hasCollectionItems) {
|
||||
return (<p className="sketches-table__empty">No sketches in collection</p>);
|
||||
return (<p className="collection-empty-message">No sketches in collection</p>);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -434,16 +434,15 @@ class Collection extends React.Component {
|
|||
const title = this.hasCollection() ? this.getCollectionName() : null;
|
||||
|
||||
return (
|
||||
<section className="collection-container">
|
||||
<section className="collection-container" data-has-items={this.hasCollectionItems() ? 'true' : 'false'}>
|
||||
<Helmet>
|
||||
<title>{this.getTitle()}</title>
|
||||
</Helmet>
|
||||
<div className="">
|
||||
{this._renderLoader()}
|
||||
{this.hasCollection() && this._renderCollectionMetadata()}
|
||||
<div className="collection-table-wrapper">
|
||||
{this._renderEmptyTable()}
|
||||
{this.hasCollectionItems() &&
|
||||
<div className="collection-table-wrapper">
|
||||
<table className="sketches-table" summary="table containing all collections">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -464,7 +463,6 @@ class Collection extends React.Component {
|
|||
/>))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
}
|
||||
{
|
||||
this.state.isAddingSketches && (
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
.collection-container {
|
||||
|
||||
width: 1012px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.collection-metadata {
|
||||
margin: 0px #{56 / $base-font-size}rem;
|
||||
padding: #{24 / $base-font-size}rem #{10 / $base-font-size}rem;
|
||||
|
||||
@include themify() {
|
||||
background-color: getThemifyVariable('modal-background-color');
|
||||
border-bottom: 1px dotted getThemifyVariable('modal-border-color');
|
||||
}
|
||||
}
|
||||
|
||||
.collection-metadata__columns {
|
||||
|
@ -109,3 +105,22 @@
|
|||
@extend %primary-button;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.collection-table-wrapper {
|
||||
min-height: 100%;
|
||||
|
||||
@include themify() {
|
||||
border: 1px solid getThemifyVariable('modal-border-color');
|
||||
}
|
||||
}
|
||||
|
||||
[data-has-items=false] .collection-table-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.collection-empty-message {
|
||||
text-align: center;
|
||||
font-size: #{16 / $base-font-size}rem;
|
||||
}
|
||||
|
|
|
@ -72,11 +72,6 @@
|
|||
align-items: center;
|
||||
margin-bottom: #{24 / $base-font-size}rem;
|
||||
padding: #{24 / $base-font-size}rem #{10 / $base-font-size}rem;
|
||||
|
||||
@include themify() {
|
||||
background-color: getThemifyVariable('modal-background-color');
|
||||
border-bottom: 1px dotted getThemifyVariable('modal-border-color');
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-header__actions > *:not(:first-child) {
|
||||
|
|
|
@ -95,9 +95,6 @@
|
|||
font-weight: normal;
|
||||
}
|
||||
|
||||
.sketches-table__row--is-add-mode {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sketch-list__dropdown-button {
|
||||
width:#{25 / $base-font-size}rem;
|
||||
|
@ -124,10 +121,6 @@
|
|||
right: calc(100% - 26px);
|
||||
}
|
||||
|
||||
.sketch-list__action-option {
|
||||
|
||||
}
|
||||
|
||||
.sketches-table__empty {
|
||||
text-align: center;
|
||||
font-size: #{16 / $base-font-size}rem;
|
||||
|
|
|
@ -14,4 +14,8 @@
|
|||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
|
||||
@include themify() {
|
||||
border: 1px solid getThemifyVariable('modal-border-color');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue