Fixed header title position
This commit is contained in:
@@ -38,13 +38,13 @@ class Layout extends React.Component {
|
|||||||
<LoadingIndicator />
|
<LoadingIndicator />
|
||||||
) : null }
|
) : null }
|
||||||
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
|
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
|
||||||
<div className={ styles.teamName }>
|
<div className={ styles.headerLeft }>
|
||||||
<Link to="/">{ store.team.name }</Link>
|
<Link to="/">{ store.team.name }</Link>
|
||||||
</div>
|
</div>
|
||||||
<Flex align="center" className={ styles.title }>
|
<Flex align="center" className={ styles.title }>
|
||||||
{ this.props.title }
|
{ this.props.title }
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex direction="row">
|
<Flex direction="row" className={ styles.headerRight }>
|
||||||
<Flex align="center" className={ styles.actions }>
|
<Flex align="center" className={ styles.actions }>
|
||||||
{ this.props.actions }
|
{ this.props.actions }
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -10,8 +10,10 @@
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-around;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
||||||
height: $headerHeight;
|
height: $headerHeight;
|
||||||
@@ -36,12 +38,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.teamName a {
|
.headerLeft {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerRight {
|
||||||
|
position: absolute;
|
||||||
|
right: 20px;
|
||||||
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
Reference in New Issue
Block a user