diff --git a/public/css/gogs.css b/public/css/gogs.css
index c8c5d87b8d..74dce472e2 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -97,11 +97,11 @@ html, body {
 }
 
 /* gogits nav item active status */
-.nav .active {
+#masthead .nav .active {
     color: #fff;
 }
 
-.nav .active:after {
+#masthead .nav .active:after {
     position: absolute;
     bottom: -1px;
     left: 50%;