diff --git a/client/homebrew/navbar/issue.navitem.jsx b/client/homebrew/navbar/issue.navitem.jsx index 3631ce71f..60adf4ed7 100644 --- a/client/homebrew/navbar/issue.navitem.jsx +++ b/client/homebrew/navbar/issue.navitem.jsx @@ -2,7 +2,12 @@ var React = require('react'); var Nav = require('naturalcrit/nav/nav.jsx'); module.exports = function(props){ - return + return report issue }; \ No newline at end of file diff --git a/client/homebrew/navbar/patreon.navitem.jsx b/client/homebrew/navbar/patreon.navitem.jsx index a7a53d34e..36a51d12a 100644 --- a/client/homebrew/navbar/patreon.navitem.jsx +++ b/client/homebrew/navbar/patreon.navitem.jsx @@ -3,6 +3,7 @@ var Nav = require('naturalcrit/nav/nav.jsx'); module.exports = function(props){ return - - - - Changelog + + + + What's new diff --git a/client/homebrew/pages/newPage/newPage.jsx b/client/homebrew/pages/newPage/newPage.jsx index 9d7c028e0..2560c8bc0 100644 --- a/client/homebrew/pages/newPage/newPage.jsx +++ b/client/homebrew/pages/newPage/newPage.jsx @@ -47,7 +47,7 @@ const NewPage = React.createClass({ get PDF - + diff --git a/shared/naturalcrit/nav/nav.jsx b/shared/naturalcrit/nav/nav.jsx index 6439548b3..0f7ce49ed 100644 --- a/shared/naturalcrit/nav/nav.jsx +++ b/shared/naturalcrit/nav/nav.jsx @@ -38,28 +38,29 @@ var Nav = { href : null, newTab : false, onClick : function(){}, - color : null + color : null, + collaspe : false }; }, handleClick : function(){ this.props.onClick(); }, render : function(){ - var classes = cx('navItem', this.props.color, this.props.className); + var classes = cx('navItem', this.props.color, this.props.className, {collaspe : this.props.collaspe}); var icon; if(this.props.icon) icon = ; - const props = _.omit(this.props, ['newTab']); + const props = _.omit(this.props, ['newTab', 'collaspe']); if(this.props.href){ return - {this.props.children} + {this.props.children} {icon} }else{ return
- {this.props.children} + {this.props.children} {icon}
} diff --git a/shared/naturalcrit/nav/nav.less b/shared/naturalcrit/nav/nav.less index 94ce5ca7c..72d3027ad 100644 --- a/shared/naturalcrit/nav/nav.less +++ b/shared/naturalcrit/nav/nav.less @@ -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; @@ -53,6 +55,28 @@ nav{ margin-left : 5px; font-size : 13px; } + &.collaspe{ + overflow : hidden; + i{ + margin-left : 0px; + } + span{ + display : inline-block; + visibility : hidden; + overflow : hidden; + width : 0px; + white-space : nowrap; + } + &:hover{ + span{ + visibility : visible; + width : auto; + } + i{ + margin-left : 5px; + } + } + } &.tealLight:hover{ background-color : @tealLight }; &.teal:hover{ background-color : @teal }; &.greenLight:hover{ background-color : @greenLight };