Even better titles
This commit is contained in:
@@ -39,11 +39,11 @@ class Layout extends React.Component {
|
|||||||
) : null }
|
) : null }
|
||||||
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
|
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
|
||||||
<div className={ styles.headerLeft }>
|
<div className={ styles.headerLeft }>
|
||||||
<Link to="/">{ store.team.name }</Link>
|
<Link to="/" className={ styles.team }>{ store.team.name }</Link>
|
||||||
|
<span className={ styles.title }>
|
||||||
|
{ this.props.title && (<span> / </span>) }{ this.props.title }
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<Flex align="center" className={ styles.title }>
|
|
||||||
{ this.props.title }
|
|
||||||
</Flex>
|
|
||||||
<Flex direction="row" className={ styles.headerRight }>
|
<Flex direction="row" className={ styles.headerRight }>
|
||||||
<Flex align="center" className={ styles.actions }>
|
<Flex align="center" className={ styles.actions }>
|
||||||
{ this.props.actions }
|
{ this.props.actions }
|
||||||
|
|||||||
@@ -10,10 +10,9 @@
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
position: relative;
|
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
height: $headerHeight;
|
height: $headerHeight;
|
||||||
@@ -32,34 +31,32 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
|
||||||
a {
|
|
||||||
color: $textColor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerLeft {
|
.headerLeft {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
position: absolute;
|
.team {
|
||||||
left: 20px;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
a {
|
|
||||||
font-family: 'Atlas Grotesk';
|
font-family: 'Atlas Grotesk';
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: $textColor;
|
color: $textColor;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
color: #ccc;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: $textColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerRight {
|
.headerRight {
|
||||||
position: absolute;
|
|
||||||
right: 20px;
|
|
||||||
margin-top: -1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
Reference in New Issue
Block a user