mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 10:52:46 +00:00
Converted a few nav items over
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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 />
|
||||||
|
|||||||
@@ -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;
|
i{
|
||||||
background-color: red;
|
margin-left : 0px;
|
||||||
|
}
|
||||||
span{
|
span{
|
||||||
white-space: nowrap;
|
display : inline-block;
|
||||||
width : 0%;
|
visibility : hidden;
|
||||||
display: inline-block;
|
overflow : hidden;
|
||||||
overflow: hidden;
|
width : 0px;
|
||||||
visibility: hidden;
|
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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user