diff --git a/client/homebrew/navbar/issue.navitem.jsx b/client/homebrew/navbar/issue.navitem.jsx index 3631ce7..60adf4e 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/pages/newPage/newPage.jsx b/client/homebrew/pages/newPage/newPage.jsx index 9d7c028..2560c8b 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 6439548..0f7ce49 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 94ce5ca..de26c01 100644 --- a/shared/naturalcrit/nav/nav.less +++ b/shared/naturalcrit/nav/nav.less @@ -49,10 +49,30 @@ 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; + span{ + white-space: nowrap; + width : 0%; + display: inline-block; + overflow: hidden; + visibility: hidden; + } + &:hover{ + span{ + visibility: visible; + width : auto; + } + } + } + &.tealLight:hover{ background-color : @tealLight }; &.teal:hover{ background-color : @teal }; &.greenLight:hover{ background-color : @greenLight };