0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 15:12:43 +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){ module.exports = function(props){
return <Nav.item return <Nav.item
{...props}
className='patreon' className='patreon'
newTab={true} newTab={true}
href='https://www.patreon.com/stolksdorf' href='https://www.patreon.com/stolksdorf'

View File

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

View File

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