revises top-down data within collection views

This commit is contained in:
James
2018-08-01 16:55:30 -04:00
parent 6723dee304
commit 1af2270e8d
8 changed files with 45 additions and 24 deletions

View File

@@ -9,11 +9,12 @@
}
a {
border: 0;
}
> * {
margin-right: rem(.25);
border: 0;
label {
cursor: pointer;
}
}
> label {

View File

@@ -0,0 +1,24 @@
import React, { Component } from 'react';
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
class CollectionArchive extends Component {
constructor(props) {
super(props);
}
render() {
return (
<article className="collection-archive">
<SetStepNav nav={ [
{
url: '/collections',
label: this.props.collection
}
] } />
{this.props.children}
</article>
);
}
}
export default CollectionArchive;

View File

@@ -11,11 +11,11 @@ class CollectionEdit extends Component {
<article className="collection-edit">
<SetStepNav nav={ [
{
url: '/collections/pages',
label: 'Pages'
url: `/collections/${this.props.collection}`,
label: this.props.collection
},
{
url: `/collections/pages/${this.props.id}`,
url: `/collections/${this.props.collection}/${this.props.id}`,
label: this.props.id
}
] } />

View File

@@ -79,7 +79,7 @@
%label {
text-transform: uppercase;
letter-spacing: rem(.1);
font-size: rem(.275);
font-size: rem(.3);
font-family: $font-label;
-webkit-font-smoothing: auto;