1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2026-01-09 07:49:15 +00:00

Converted a few nav items over

This commit is contained in:
Scott Tolksdorf
2017-03-21 00:15:24 -04:00
parent ee1827eab0
commit 1946a50ce0
3 changed files with 21 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ var Nav = require('naturalcrit/nav/nav.jsx');
module.exports = function(props){
return <Nav.item
{...props}
className='patreon'
newTab={true}
href='https://www.patreon.com/stolksdorf'

View File

@@ -24,10 +24,10 @@ const HomePage = React.createClass({
renderNavbar : function(){
return <Navbar>
<Nav.section>
<PatreonNavItem />
<IssueNavItem />
<Nav.item newTab={true} href='/changelog' color='purple' icon='fa-file-text-o'>
Changelog
<PatreonNavItem collaspe={true} />
<IssueNavItem collaspe={true} />
<Nav.item newTab={true} href='/changelog' color='purple' icon='fa-star' collaspe={true}>
What's new
</Nav.item>
<RecentNavItem.both />
<AccountNavItem />

View File

@@ -1,3 +1,4 @@
nav{
background-color : #333;
.navContent{
@@ -41,6 +42,7 @@ nav{
}
.navItem{
.animate(background-color);
display : inline-block;
padding : 8px 12px;
cursor : pointer;
background-color : #333;
@@ -49,30 +51,32 @@ nav{
color : white;
text-decoration : none;
text-transform : uppercase;
display: inline-block;
i{
margin-left : 5px;
font-size : 13px;
}
&.collaspe{
//width : 60px;
overflow: hidden;
background-color: red;
overflow : hidden;
i{
margin-left : 0px;
}
span{
white-space: nowrap;
width : 0%;
display: inline-block;
overflow: hidden;
visibility: hidden;
display : inline-block;
visibility : hidden;
overflow : hidden;
width : 0px;
white-space : nowrap;
}
&:hover{
span{
visibility: visible;
width : auto;
visibility : visible;
width : auto;
}
i{
margin-left : 5px;
}
}
}
&.tealLight:hover{ background-color : @tealLight };
&.teal:hover{ background-color : @teal };
&.greenLight:hover{ background-color : @greenLight };