Even better titles

This commit is contained in:
Jori Lallo
2016-06-06 00:23:38 -07:00
parent 5c0649569f
commit bbab274338
2 changed files with 18 additions and 21 deletions

View File

@@ -39,11 +39,11 @@ class Layout extends React.Component {
) : null }
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
<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>&nbsp;/&nbsp;</span>) }{ this.props.title }
</span>
</div>
<Flex align="center" className={ styles.title }>
{ this.props.title }
</Flex>
<Flex direction="row" className={ styles.headerRight }>
<Flex align="center" className={ styles.actions }>
{ this.props.actions }

View File

@@ -10,10 +10,9 @@
.header {
display: flex;
justify-content: space-around;
justify-content: space-between;
align-items: center;
position: relative;
padding: 0 20px;
height: $headerHeight;
@@ -32,34 +31,32 @@
}
}
.title {
a {
color: $textColor;
}
}
.headerLeft {
display: flex;
align-items: center;
position: absolute;
left: 20px;
top: 0;
bottom: 0;
a {
.team {
font-family: 'Atlas Grotesk';
font-weight: bold;
color: $textColor;
text-decoration: none;
font-size: 16px;
}
.title {
color: #ccc;
a {
color: #ccc;
}
a:hover {
color: $textColor;
}
}
}
.headerRight {
position: absolute;
right: 20px;
margin-top: -1px;
}
.content {