Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat(header): 2400 change / style nav icons
Browse files Browse the repository at this point in the history
 - use font awesome icons
 - increase font size
 - increase contrast

Closes #2400
  • Loading branch information
alex-wilmer committed May 13, 2016
1 parent e941a31 commit 3cd8f55
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 30 deletions.
2 changes: 1 addition & 1 deletion app/fonts/gdc-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions app/scripts/components/header/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@
</li>
<li data-ng-class="{ active: hc.$state.includes('projects') }"
id="header-projects">
<a ui-sref="projects.table" tabindex="0"><i class="fa fa-folder-o fa-hidden"></i>
<a ui-sref="projects.table" tabindex="0"><i class="icon-gdc-projects"></i>
<span class="hidden-sm" data-translate>Projects</span>
</a>
</li>
<li data-ng-class="{ active: hc.$state.includes('search') || hc.$state.includes('query') }"
id="header-data">
<a ui-sref="search.summary" tabindex="0"><i class="fa fa-database fa-hidden"></i>
<a ui-sref="search.summary" tabindex="0"><i class="icon-gdc-data"></i>
<span class="hidden-sm" data-translate>Data</span>
</a>
</li>
<li id="header-data">

<a href="https://gdc.nci.nih.gov/access-data/analytical-tools" tabindex="0" target="_blank">
<img class="fa-hidden" src="images/icon-GDC-Analysis.svg" alt="GDC Analysis"/>
<i class="fa fa-bar-chart"></i>
<span class="hidden-sm" data-translate>Analysis</span>
</a>
</li>
Expand All @@ -56,7 +57,7 @@
</li>
<li data-ng-if="!hc.UserService.currentUser" id="header-login">
<a login-button tabindex="0">
<i class="fa fa-sign-in fa-hidden"></i>
<i class="fa fa-sign-in"></i>
<span class="hidden-md hidden-sm" data-translate>Login</span>
</a>
</li>
Expand Down Expand Up @@ -106,7 +107,7 @@
</li>
<li ui-sref-active="active" class="nav-cart">
<a ui-sref="cart" tabindex="0">
<i class="fa fa-shopping-cart fa-hidden"></i>
<i class="fa fa-shopping-cart"></i>
<span class="hidden-md hidden-sm" data-translate>Cart</span>
<span class="label label-primary">{{ hc.getNumCartItems() }}</span>
</a>
Expand Down
24 changes: 0 additions & 24 deletions app/styles/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -635,15 +635,6 @@ pre code {
background:url(/images/icon-projects-off.png) no-repeat 2px 0;
}

/*---data---*/
.navbar-nav .fa-database {
background:url(/images/icon-data-off.png) no-repeat 2px 3px;
}
.navbar-nav .active .fa-database {
background:url(/images/icon-data-on.png) no-repeat 2px 3px;
}


/*---annotations---*/
.navbar-nav .fa-align-left {
background:url(/images/icon-annotations-off.png) no-repeat 0 0;
Expand All @@ -660,22 +651,7 @@ pre code {
background:url(/images/icon-reports-on.png) no-repeat 4px 2px;
}

/*---login---*/
.navbar-nav .fa-sign-in {
background:url(/images/icon-login-off.png) no-repeat 3px 2px;
}
.navbar-nav .active .fa-sign-in {
background:url(/images/icon-login-on.png) no-repeat 3px 2px;
}

/*---cart---*/
.navbar-nav .fa-shopping-cart {
background:url(/images/icon-cart-off.png) no-repeat 3px 2px;
}
.navbar-nav .active .fa-shopping-cart {
background:url(/images/icon-cart-on.png) no-repeat 3px 2px;
}

.navbar-nav .active.nav-cart .label-primary {
background-color:#fff;
color:#5b5151;
Expand Down
5 changes: 5 additions & 0 deletions app/styles/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@
color: #fff;
}

.nav i {
font-size: 1.2em;
margin-right: 0.4rem;
}

}

0 comments on commit 3cd8f55

Please sign in to comment.