Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply indicator to distinguish user's trades in order books. The indi… #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 23 additions & 29 deletions frontend/client/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ $color-cancel-order: #A8ACB9;
$color-border-warning: rgba(255, 0, 0, 0.5);
$color-btn-default-text: #4F5362;


/* FONTS */

.montserrat-semibold {
Expand Down Expand Up @@ -186,6 +185,18 @@ table {
}
}

.btn-cancel {
background: url("cancel_button_idle.svg") no-repeat center;
width: 28px;
height: 15px;
padding: 0;
border: none;

&:hover {
background: url("cancel_button_hover.svg") no-repeat center;
}
}

.account-section {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
Expand Down Expand Up @@ -805,19 +816,6 @@ table {
td:last-of-type {
width: 22px;
}
.cancel {
border: none;
padding: 0;
width: 29px;
height: 16px;
border-radius: 7px;
&:hover {

}
img {
transform: translate(0px, -3px);
}
}
}
}
}
Expand Down Expand Up @@ -868,6 +866,11 @@ table {
border-top: 1px #DCDDE0 solid;
background: rgba(248, 247, 245, 0.15);
}

td:first-child {
width: 50px;
text-align: center;
}
}
&.helper-row {
td {
Expand All @@ -892,10 +895,12 @@ table {
}

td.bid {
width: 90px;
color: $color-buy;
}

td.ask {
width: 90px;
color: $color-sell;
}

Expand All @@ -912,17 +917,6 @@ table {
font-size: 12px;
line-height: 20px;
}

.cancel {
border: none;
padding: 0;
width: 29px;
height: 16px;
border-radius: 7px;
img {
transform: translate(0px, -3px);
}
}
}

.input-section {
Expand Down Expand Up @@ -1998,6 +1992,9 @@ button.dex-btn-default.sell, button.dex-btn-max.sell {
padding: 5px 0;
position: relative;
float: left;
&:first-child {
padding: 4px 0;
}
&:last-of-type {
width: 30px;
}
Expand Down Expand Up @@ -2604,7 +2601,6 @@ span.right {
text-transform: uppercase;
}


.modal-body {
.my-allowance-instructions {
margin-top: 20px;
Expand All @@ -2624,12 +2620,11 @@ span.right {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
}

}


div.my-allowance.row {
display: flex;
flex-flow: row wrap;
Expand All @@ -2639,7 +2634,6 @@ span.right {
}
}


div.my-allowance.row.grant {
margin-bottom: 10px;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/imports/ui/client/widgets/maintrades.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<div class="row">
<div class="order-center">
<section class="order-section col-md-6">
{{> orderbook title='BUY ORDERS' subtitle=(concat '(click on an order listing to sell ' baseCurrency ')') priceClass='bid' priceLabel='BID PRICE' orders=(findOffers 'bid') showType=false}}
{{> orderbook title='BUY ORDERS' subtitle=(concat '(click on an order listing to sell ' baseCurrency ')') priceClass='bid' priceLabel='BID PRICE' orders=(findOffers 'bid') showCancel=true showType=false}}
</section>
<section class="order-section col-md-6">
{{> orderbook title='SELL ORDERS' subtitle=(concat '(click on an order listing to buy ' baseCurrency ')') priceClass='ask' priceLabel='ASK PRICE' orders=(findOffers 'ask')}}
{{> orderbook title='SELL ORDERS' subtitle=(concat '(click on an order listing to buy ' baseCurrency ')') priceClass='ask' priceLabel='ASK PRICE' orders=(findOffers 'ask') showCancel=true}}
</section>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/imports/ui/client/widgets/orderbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2>
<div class="loading-market-history">{{{loadingIcon}}} Loading sell orders...</div>
{{/if}}
{{/if}}
{{> orders orders=orders type=priceClass priceLabel=priceLabel priceClass=priceClass canAccept=(isMarketOpen) showCancel=(not isMarketOpen)}}
{{> orders orders=orders type=priceClass priceLabel=priceLabel priceClass=priceClass canAccept=(isMarketOpen) showCancel=showCancel}}
</div>
</div>
</template>
5 changes: 2 additions & 3 deletions frontend/imports/ui/client/widgets/orderrow.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
<td>
{{#if order.canCancel}}
{{#if showCancel}}
<button type="button" class="btn btn-default cancel">
<img src="remove_button.svg" alt="Cancel order">
<button type="button" class="btn btn-default btn-cancel">
</button>
{{/if}}
{{/if}}
</td>
</td>
{{#if showDate}}
<td class="timestamp">{{timestampToString order.timestamp true true}}</td>
{{/if}}
Expand Down
1 change: 1 addition & 0 deletions frontend/public/cancel_button_hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/public/cancel_button_idle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.