From 1946a50ce0a78bf8b35ea80831e5a94bebdaae1b Mon Sep 17 00:00:00 2001 From: Scott Tolksdorf Date: Tue, 21 Mar 2017 00:15:24 -0400 Subject: [PATCH] Converted a few nav items over --- client/homebrew/navbar/patreon.navitem.jsx | 1 + client/homebrew/pages/homePage/homePage.jsx | 8 +++--- shared/naturalcrit/nav/nav.less | 28 ++++++++++++--------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/client/homebrew/navbar/patreon.navitem.jsx b/client/homebrew/navbar/patreon.navitem.jsx index a7a53d3..36a51d1 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/shared/naturalcrit/nav/nav.less b/shared/naturalcrit/nav/nav.less index de26c01..72d3027 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; @@ -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 };