Skip to content

Commit

Permalink
feat: mobile support for navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Jun 26, 2018
1 parent ae8f1be commit 477d422
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,16 @@
color: var(--text-on-primary);
background: var(--primary);
}

.dcl.hamburger {
cursor: pointer;
}

.dcl.active-page {
color: var(--text);
display: inline-block;
text-transform: uppercase;
padding-left: 0.5em;
transform: translateY(4px);
cursor: pointer;
}
4 changes: 2 additions & 2 deletions src/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Icon, Menu, Responsive, Sidebar } from 'semantic-ui-react'
import { Header, Icon, Menu, Responsive, Sidebar } from 'semantic-ui-react'
import { Blockie, Logo, Mana } from '../..'
import './Navbar.css'

Expand Down Expand Up @@ -119,7 +119,7 @@ export class Navbar extends React.PureComponent<Props, State> {
onClick={this.handleToggle}
>
<Icon name="content" size="large" className="dcl hamburger" />
{activePage}
<Header className="dcl active-page">{activePage}</Header>
</Responsive>
<Responsive {...Responsive.onlyMobile}>
<Sidebar
Expand Down

0 comments on commit 477d422

Please sign in to comment.