Centered common text on mobile
This commit is contained in:
@@ -17,7 +17,6 @@ Patch
|
|||||||
|
|
||||||
* Game Balance.
|
* Game Balance.
|
||||||
* Images to social media instead of links.
|
* Images to social media instead of links.
|
||||||
* Center the common links on mobile.
|
|
||||||
|
|
||||||
Wishlist
|
Wishlist
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -301,6 +301,10 @@ pre {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.centered.mobile {
|
||||||
|
text-align: initial;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 480px) {
|
@media screen and (max-width: 480px) {
|
||||||
.show.mobile {
|
.show.mobile {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -309,6 +313,10 @@ pre {
|
|||||||
.hide.mobile {
|
.hide.mobile {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.centered.mobile {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.central p.equipmentTextPadding {
|
.central p.equipmentTextPadding {
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ class CommonLinks extends React.Component {
|
|||||||
if (this.props.loggedIn) {
|
if (this.props.loggedIn) {
|
||||||
return (
|
return (
|
||||||
<div className='panel'>
|
<div className='panel'>
|
||||||
<p><Link to='/profile' onClick={this.props.onClickProfile}>Your Kingdom</Link></p>
|
<p className='mobile centered'><Link to='/profile' onClick={this.props.onClickProfile}>Your Kingdom</Link></p>
|
||||||
<p><Link to='/equipment' onClick={this.props.onClickCombatLog}>Your Equipment</Link></p>
|
<p className='mobile centered'><Link to='/equipment' onClick={this.props.onClickCombatLog}>Your Equipment</Link></p>
|
||||||
<p><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
|
<p className='mobile centered'><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
|
||||||
<p><Link to='/combatlog' onClick={this.props.onClickCombatLog}>Combat Log</Link></p>
|
<p className='mobile centered'><Link to='/combatlog' onClick={this.props.onClickCombatLog}>Combat Log</Link></p>
|
||||||
<p><Link to='/passwordchange' onClick={this.props.onClickPasswordChange}>Change Password</Link></p>
|
<p className='mobile centered'><Link to='/passwordchange' onClick={this.props.onClickPasswordChange}>Change Password</Link></p>
|
||||||
<p><Link to='/tasklist' onClick={this.props.onClickTaskList}>Task List</Link></p>
|
<p className='mobile centered'><Link to='/tasklist' onClick={this.props.onClickTaskList}>Task List</Link></p>
|
||||||
<p><Link to='/patronlist' onClick={this.props.onClickTaskList}>Patron List</Link></p>
|
<p className='mobile centered'><Link to='/patronlist' onClick={this.props.onClickTaskList}>Patron List</Link></p>
|
||||||
|
|
||||||
<Extra />
|
<Extra />
|
||||||
|
|
||||||
@@ -44,12 +44,12 @@ class CommonLinks extends React.Component {
|
|||||||
} else { //if not logged in
|
} else { //if not logged in
|
||||||
return (
|
return (
|
||||||
<div className='panel'>
|
<div className='panel'>
|
||||||
<p><Link to='/signup' onClick={this.props.onClickSignup}>Sign Up</Link></p>
|
<p className='mobile centered'><Link to='/signup' onClick={this.props.onClickSignup}>Sign Up</Link></p>
|
||||||
<p><Link to='/login' onClick={this.props.onClickLogin}>Login</Link></p>
|
<p className='mobile centered'><Link to='/login' onClick={this.props.onClickLogin}>Login</Link></p>
|
||||||
<p><Link to='/passwordrecover' onClick={this.props.onClickPasswordRecover}>Recover Password</Link></p>
|
<p className='mobile centered'><Link to='/passwordrecover' onClick={this.props.onClickPasswordRecover}>Recover Password</Link></p>
|
||||||
<p><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
|
<p className='mobile centered'><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
|
||||||
<p><Link to='/tasklist' onClick={this.props.onClickTaskList}>Task List</Link></p>
|
<p className='mobile centered'><Link to='/tasklist' onClick={this.props.onClickTaskList}>Task List</Link></p>
|
||||||
<p><Link to='/patronlist' onClick={this.props.onClickTaskList}>Patron List</Link></p>
|
<p className='mobile centered'><Link to='/patronlist' onClick={this.props.onClickTaskList}>Patron List</Link></p>
|
||||||
|
|
||||||
<Extra />
|
<Extra />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user