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

Commit 74abb46

Browse files
author
vikasrohit
committed
Merge branch 'dev' into release/v1.0.8
* dev: #60 Styling "Login" and "Register" buttons in logged out state 6 or so more fixes Nav: Blue arrow for active nav item is not aligned fixed hover for skills on profile a fix for image upload styling
2 parents 4131a51 + 3b27187 commit 74abb46

File tree

9 files changed

+38
-27
lines changed

9 files changed

+38
-27
lines changed

app/directives/track-toggle/track-toggle.directive.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
span.onoffswitch-inner
2525
span.onoffswitch-switch
2626

27-
hr
27+
hr.bottom

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

app/settings/edit-profile/edit-profile.controller.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
vm.updateProfile = updateProfile;
1616
vm.addSkill = addSkill;
1717
vm.deleteImage = deleteImage;
18+
vm.changeImage = changeImage;
1819

1920
activate();
2021

@@ -155,5 +156,10 @@
155156
toaster.pop('error', "Whoops!", "Something went wrong. Please try again later.");
156157
});
157158
}
159+
160+
function changeImage() {
161+
var fileInput = document.querySelector('#change-image-input');
162+
fileInput.click(); // Or, use the native click() of the file input.
163+
}
158164
}
159165
})();

app/settings/edit-profile/edit-profile.jade

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
img.profile-circle(ng-show="!vm.userData.photoURL || !vm.userData.photoURL.length", src="/images/ico-user-default.svg")
1717

1818
.buttons
19-
:verbatim
20-
<button class="file-upload tc-btn tc-btn-primary tc-btn-s"><span>Change Image</span><input type="file" name="image" on-file-change="on-file-change"/></button>
19+
button.file-upload.tc-btn.tc-btn-primary.tc-btn-s(ng-click="vm.changeImage()", type="button")
20+
span Change Image
21+
input(type='file', name='image', on-file-change='on-file-change', id="change-image-input", style="display: none;")
2122

2223
.file-delete
2324
button.tc-btn.tc-btn-secondary.tc-btn-s(ng-click="vm.deleteImage()", type="button") Delete
@@ -57,8 +58,8 @@
5758
track-toggle(tracks="vm.tracks")
5859

5960
.save-section
60-
button.tc-btn.tc-btn-primary.tc-btn-m(ng-show="!(vm.editProfile.$invalid || vm.editProfile.$pristine)", type="submit", tc-busy-button, tc-busy-when="vm.profileFormProcessing" ng-disabled="vm.editProfile.$invalid || vm.editProfile.$pristine", ng-class="{' ': vm.editProfile.$valid, 'disabled': disabled}") Save
61-
button.tc-btn.tc-btn-secondary.tc-btn-m.disabled(ng-show="vm.editProfile.$invalid || vm.editProfile.$pristine", type="button") Save
61+
button.tc-btn.tc-btn-primary.tc-btn-s(ng-show="!(vm.editProfile.$invalid || vm.editProfile.$pristine)", type="submit", tc-busy-button, tc-busy-when="vm.profileFormProcessing" ng-disabled="vm.editProfile.$invalid || vm.editProfile.$pristine", ng-class="{' ': vm.editProfile.$valid, 'disabled': disabled}") Save
62+
button.tc-btn.tc-btn-secondary.tc-btn-s.disabled(ng-show="vm.editProfile.$invalid || vm.editProfile.$pristine", type="button") Save
6263

6364
.settings-section.skills
6465
.section-info

assets/css/directives/track-toggle.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ track-toggle {
88
&.first {
99
margin-top: 0px;
1010
}
11+
&.bottom {
12+
margin-bottom: 0;
13+
}
1114
}
1215
.track {
1316
width: 100%;

assets/css/layout/header.scss

Lines changed: 1 addition & 12 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 {
@@ -431,7 +420,7 @@
431420
position: absolute;
432421
bottom: 5px;
433422
left: 50%;
434-
margin-left: -12px;
423+
margin-left: -6px;
435424
background-color: transparent;
436425
}
437426
&.hide {

assets/css/partials/_tc-inputs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ input.tc-input,
99
color: #231f20;
1010
outline: none;
1111
background: white;
12-
border: 1px solid #f0f0f0;
12+
border: 1px solid #b7b7b7;
1313
box-shadow: inset 0px 0px 2px 0px rgba(183,183,183,0.30);
1414
border-radius: 2px;
1515
cursor: auto;

assets/css/profile/about.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
margin-top: 20px;
120120
margin-right: 15px;
121121

122+
a:hover {
123+
cursor: default;
124+
}
125+
122126
+ .skill {
123127
margin-left: 15px;
124128
}
@@ -205,7 +209,6 @@
205209
display: flex;
206210
flex-direction: column;
207211
align-items: center;
208-
cursor: pointer;
209212

210213
&.noclick {
211214
cursor: default;
@@ -492,7 +495,6 @@
492495

493496
.track {
494497
width: 100%;
495-
cursor: pointer;
496498
padding-top: 30px;
497499
.name {
498500
img {

assets/css/settings/settings.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
font-weight: 400;
5050
padding-left: 15px;
5151
}
52+
textarea {
53+
padding-left: 10px;
54+
&:hover, &:focus {
55+
padding-left: 10px;
56+
}
57+
}
5258
input:focus, textarea:focus {
5359
outline: 1px solid #4cb5ff;
5460
}
@@ -146,11 +152,13 @@
146152
@media only screen and (min-width: 768px) {
147153
width: 270px;
148154
margin-right: 33px;
155+
margin-left: 30px;
149156
}
150157

151158
h2 {
152159
text-transform: uppercase;
153-
@include sofia-pro-light;
160+
font-family: 'Sofia Pro';
161+
font-weight: 500;
154162
font-size: 16px;
155163
}
156164

@@ -220,7 +228,7 @@
220228
margin: 10px;
221229
margin-left: 0;
222230
margin-top: 20px;
223-
width: 150px;
231+
width: 120px;
224232
input {
225233
position: absolute;
226234
top: 0;
@@ -271,6 +279,7 @@
271279
}
272280
.tracks {
273281
padding-bottom: 0px;
282+
border-bottom: none;
274283

275284
.section-fields {
276285
margin-top: 40px;
@@ -291,10 +300,11 @@
291300
button {
292301
margin-bottom: 15px;
293302
margin-top: 15px;
294-
width: 100px;
303+
width: 120px;
295304
}
296305
}
297306
.skills {
307+
border-top: 1px solid $gray-light;
298308
.section-fields {
299309
margin-top: 20px;
300310
display: flex;

0 commit comments

Comments
 (0)