Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 3b27187

Browse files
author
vikasrohit
committed
#60 Styling "Login" and "Register" buttons in logged out state
1 parent 42e619a commit 3b27187

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

app/layout/header/header.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
img(ng-switch-when="true", ng-if="vm.profile.photoURL && vm.profile.photoURL.length", class="user-avatar", ng-src="{{vm.profile.photoURL}}")
1616
img(ng-switch-when="true", ng-if="!vm.profile.photoURL || !vm.profile.photoURL.length", class="user-avatar", ng-src="/images/ico-user-default.svg")
1717

18-
span(ng-switch-when="false" class="btn-link") JOIN
18+
span(ng-switch-when="false" class="tc-btn tc-btn-s") JOIN
1919

2020
ul.main-menu
2121
li.menu-item.search-wrapper
@@ -43,7 +43,7 @@
4343
ng-class="{'underline': vm.selectedGroup() == 'user'}"
4444
) {{vm.userHandle}}
4545

46-
a.btn-link.btn-edit-profile.show-small(ui-sref="settings.profile") EDIT
46+
a.tc-btn.tc-btn-s.btn-edit-profile.show-small(ui-sref="settings.profile") EDIT
4747

4848
ul.submenu
4949
header-menu-item(ng-repeat="item in vm.userMenu" item="item")
@@ -55,9 +55,9 @@
5555

5656
// links for anonymous user
5757
.menu-item-header(ng-switch-when="false")
58-
a.btn-link(ui-sref="register") REGISTER
58+
a.tc-btn.tc-btn-s.btn-link(ui-sref="register") JOIN
5959

60-
a.btn-link.secondary-link(ui-sref="login") LOGIN
60+
a.tc-btn.tc-btn-s.tc-btn-ghost.btn-link(ui-sref="login") LOG IN
6161

6262
//- a(ng-click="launchIntro();", ng-show="!!vm.introOptions") Intro
6363

assets/css/layout/header.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,7 @@
8888
}
8989

9090
.btn-link {
91-
color: #fff;
92-
font-size: 12px;
93-
line-height: 1.2em;
94-
border-radius: 4px;
95-
background-color: #00AEFf;
9691
display: inline-block;
97-
padding: 8px 20px;
98-
text-decoration: none;
99-
100-
&.secondary-link {
101-
background-color: #d1d3d4;
102-
}
10392
}
10493

10594
.user-link .user-avatar, .user-link .btn-join {

0 commit comments

Comments
 (0)