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

Commit 538c50f

Browse files
committed
Merge pull request #1486 from OpenBazaar/shipicon
Made "does not ship to you" less intrusive
2 parents ffe0065 + b222f24 commit 538c50f

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

css/obBase.css

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -489,18 +489,19 @@ form {
489489
transition: top .3s cubic-bezier(0, 0, 0.2, 1);
490490
}
491491

492-
.listingDoesNotShipToYou {
493-
background-color: rgba(37, 37, 37, 0.65);
494-
/*border-radius: 20px;*/
495-
height: 20px;
496-
left: 32px;
497-
line-height: 20px;
498-
padding: 8px 4px;
499-
position: absolute;
500-
text-align: center;
501-
top: calc(50% - 32px);
502-
width: 242px;
492+
.listingDoesNotShipToYou,
493+
.listingDoesNotShipToYou.tooltip {
494+
background: #252525;
495+
height: 18px;
496+
width: 18px;
497+
right: 15px;
498+
padding: 10px;
499+
position: absolute;
500+
text-align: center;
501+
top: 137px;
503502
transition: top .3s cubic-bezier(0, 0, 0.2, 1);
503+
border-radius: 32px;
504+
opacity: .95;
504505
}
505506

506507
.noPointerEvents {
@@ -567,7 +568,8 @@ form {
567568

568569
.userPage-subViews .gridItem:hover > .listingDoesNotShipToYou,
569570
.homeView .gridItem:hover > .listingDoesNotShipToYou {
570-
top: calc(50% - 46px);
571+
top: 140px;
572+
opacity: 1;
571573
}
572574

573575
.userPage-subViews .gridItem:hover .gridItemControls,
@@ -5146,6 +5148,10 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
51465148
margin-left: 0;
51475149
}
51485150

5151+
#ov1 .marginLeft05 {
5152+
margin-left: 0.5px;
5153+
}
5154+
51495155
#ov1 .marginLeft1 {
51505156
margin-left: 1px;
51515157
}

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"GoToMyPage": "My Page",
7878
"Random": "Random",
7979
"ShowOnlyFollowerListings": "Personalized",
80+
"DoesNotShip": "Does not ship to you",
8081
"TryRandom": "Try random mode to discover more",
8182
"ShowOnlyFollowerListingsTooltip": "View listings from stores I follow",
8283
"ShowAllListingsTooltip": "View random listings on the network",

js/templates/chatConversation.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
</div>
1313

1414
<div class="chatConversationMenu hide">
15+
<div>
16+
<a class="js-clearConvo"><%= polyglot.t('ClearConvo') %></a>
17+
</div>
1518
<div>
1619
<a class="js-viewPage" href="#userPage/<%= ob.guid %>/store"><%= polyglot.t('ViewPage') %></a>
1720
</div>
1821
<div>
1922
<a class="js-blockUser"><%= polyglot.t('Block') %></a>
2023
</div>
21-
<div>
22-
<a class="js-clearConvo"><%= polyglot.t('ClearConvo') %></a>
23-
</div>
2424
</div>
2525

2626
<div class="chatConversationContent">

js/templates/itemShort.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@
8989
<% } %>
9090

9191
<% if(!shipsToYou && ob.ships_to.length != 0){ %>
92-
<div class="listingDoesNotShipToYou">
93-
<span class="ion-alert-circled fontSize11" style="color: #EFEF4C"></span>
94-
Does not ship to you
92+
<div class="listingDoesNotShipToYou cursorDefault tooltip" data-tooltip="<%= polyglot.t('DoesNotShip') %>">
93+
<span class="ion-minus-circled fontSize15 marginLeft05 positionWrapper" style="color: #DCDCDC" ></span>
9594
</div>
9695
<% } %>
9796

0 commit comments

Comments
 (0)