Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 03b8f10

Browse files
authored
Merge pull request #1786 from OpenBazaar/rotateAvatar
Rotate avatar
2 parents a293f44 + 8da694d commit 03b8f10

File tree

9 files changed

+49
-1231
lines changed

9 files changed

+49
-1231
lines changed

css/obBase.css

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ textarea {
138138

139139
input[type=range]{
140140
-webkit-appearance: none;
141+
width: 100%;
141142
}
142143

143144
input[type=range]::-webkit-slider-runnable-track {
@@ -150,7 +151,7 @@ input[type=range]::-webkit-slider-runnable-track {
150151

151152
input[type=range]::-webkit-slider-thumb {
152153
-webkit-appearance: none;
153-
border: #777;
154+
border: #777 1px solid;
154155
height: 16px;
155156
width: 16px;
156157
border-radius: 50%;
@@ -162,10 +163,6 @@ input[type=range]:focus {
162163
outline: none;
163164
}
164165

165-
input[type=range]:focus::-webkit-slider-runnable-track {
166-
background: rgba(255,255,255,0.9);
167-
}
168-
169166
textarea {
170167
background: none;
171168
outline: none;
@@ -4164,7 +4161,6 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
41644161
top: 0;
41654162
height: 38px;
41664163
line-height: 38px;
4167-
padding: 2px;
41684164
border-radius: 0;
41694165
overflow: hidden;
41704166
border-top-right-radius: 3px;
@@ -4379,6 +4375,18 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
43794375
margin-right: 0;
43804376
}
43814377
4378+
.cropit-preview.cropit-image-loading .spinner {
4379+
opacity: 1;
4380+
}
4381+
4382+
.cropit-preview.cropit-image-loaded .cropit-preview-image-container {
4383+
cursor: move;
4384+
}
4385+
4386+
.cropit-image-zoom-input[disabled] {
4387+
opacity: .2;
4388+
}
4389+
43824390
.cropit-image-preview.cropit-avatar {
43834391
background: url('../imgs/defaultUser.png');
43844392
background-size: cover;
@@ -6133,8 +6141,6 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
61336141
margin-right: auto;
61346142
}
61356143

6136-
6137-
61386144
#ov1 .heightAuto {
61396145
height: auto;
61406146
}

js/languages/en-US.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@
109109
"Facebook": "Facebook",
110110
"Instagram": "Instagram",
111111
"Twitter": "Twitter",
112-
"PGPKey": "PGP Key",
113-
"Signature": "PGP Signature",
114-
"SignaturePlaceholder": "A PGP Signature is required if you enter a PGP Key",
115112
"Snapchat": "Snapchat",
116113
"BUYNOW": "Buy Now",
117114
"Description": "Description",

js/models/userProfileMd.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ module.exports = Backbone.Model.extend({
4242
secondary_color: "#317DB8",
4343
text_color: "#ffffff",
4444
background_color: "#063753",
45-
pgp_key: "",
4645
nsfw: false,
4746
avatar_hash: "",
4847
handle: "",

js/templates/settings.html

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,24 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('Basic') %></h3>
262262
</div>
263263
</div>
264264
<div class="flexCol-9 borderRight0 custCol-border">
265-
<div id="settings-image-cropper" class="positionWrapper">
265+
<div id="settings-image-cropper" class="positionWrapper flexRow">
266266
<div class="statusBar navBar fadeOut positionAbsolute js-avatarLoading">
267267
<div class="pad20 rowTop20 width100"><h4 class="txt-center"><%= polyglot.t('LoadingImage') %></h4></div>
268268
</div>
269269
<div class="cropit-image-preview cropit-avatar js-settingsAvatarPreview rowTop20 thumbnail thumbnail-huge box-border pull-left row20 marginLeft12"></div>
270-
<div>
271-
<input type="range" class="cropit-image-zoom-input rowTop20 row20 marginLeft12 hide" />
270+
<div class="pull-left marginLeft12 flexCol-3">
271+
<div>
272+
<input type="range" class="cropit-image-zoom-input rowTop20 row20 hide" />
273+
</div>
274+
<div class="flexRow">
275+
<a class="btn flexExpand marginRight5 color-secondary custCol-secondary ion-reply js-avatarRotateLeft"></a>
276+
<a class="btn flexExpand marginLeft5 color-secondary custCol-secondary ion-forward js-avatarRotateRight"></a>
277+
</div>
278+
<div>
279+
<input type="file" id="settingsAvatarInput" class="cropit-image-input hide" />
280+
<label for="settingsAvatarInput" class="btn btn-txt rowTop20 row20 width100 color-secondary custCol-secondary"><%= polyglot.t('NewAvatar') %></label>
281+
</div>
272282
</div>
273-
<input type="file" id="settingsAvatarInput" class="cropit-image-input hide" />
274-
<label for="settingsAvatarInput" class="btn btn-txt rowTop20 marginLeft12 row20 color-secondary custCol-secondary"><%= polyglot.t('NewAvatar') %></label>
275283
</div>
276284
</div>
277285
</div>
@@ -386,41 +394,6 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('Social') %></h3>
386394
value="<%= ob.page.profile.social_accounts.snapchat.username %>">
387395
</div>
388396
</div>
389-
<!--
390-
<div class="flexRow TODO">
391-
<div class="flexCol-3 borderRight custCol-border">
392-
<div class="fieldItem">
393-
<label for="pgp_key"><%= polyglot.t('PGPKey') %></label>
394-
</div>
395-
</div>
396-
397-
<div class="flexCol-9 borderRight0 custCol-border">
398-
<input name="pgp_key"
399-
type="text"
400-
id="pgp_key"
401-
placeholder="<%= polyglot.t('PGPKey') %>"
402-
class="fieldItem"
403-
value="<%= ob.page.profile.pgp_key %>">
404-
</div>
405-
</div>
406-
407-
<div class="flexRow foldIn js-settingsSignatureRow TODO">
408-
<div class="flexCol-3 borderRight custCol-border">
409-
<div class="fieldItem">
410-
<label for="signature"><%= polyglot.t('Signature') %></label>
411-
</div>
412-
</div>
413-
414-
<div class="flexCol-9 borderRight0 custCol-border">
415-
<input name="signature"
416-
type="text"
417-
id="signature"
418-
placeholder="<%= polyglot.t('SignaturePlaceholder') %>"
419-
class="fieldItem">
420-
</div>
421-
</div>
422-
423-
-->
424397

425398
<div class="flexRow borderBottom custCol-border marginTop20">
426399
<h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('About') %></h3>

js/templates/userPage.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ <h1 class="page-userNameLarge floatLeft fancy-heading fontSize20 colorWhiteForce
427427
</div>
428428
</a>
429429
<%}%>
430-
<div class="textOpacity75 fontSize14"><%= polyglot.t('PGPKey') %></div>
431430
</div>
432431
</div>
433432
</div>
@@ -588,4 +587,4 @@ <h1 class="page-userNameLarge floatLeft fancy-heading fontSize20 colorWhiteForce
588587
</div>
589588
</div>
590589

591-
<%= ob.backToTopTmpl({ className: 'custCol-secondary' }) %>
590+
<%= ob.backToTopTmpl({ className: 'custCol-secondary' }) %>

0 commit comments

Comments
 (0)