Skip to content

Commit fb9e37b

Browse files
Vidya Ramakrishnanshreyas-satish
authored andcommitted
Use unicode symbols for increment & decrement operators. Fix style. (#192)
1 parent 2ddea22 commit fb9e37b

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

boxoffice/templates/boxoffice.html.jinja2

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
</div>
4343
<div class="price-details-wrapper">
4444
<div class="ticket-qty-wrapper">
45-
<button class="decrement" on-click="updateOrder(event, line_item.item_name, line_item.quantity_available, false)">-</button>
45+
<button class="decrement" on-click="updateOrder(event, line_item.item_name, line_item.quantity_available, false)">&#8722;</button>
4646
<input type="number" class="ticket-qty" name="quantity" min="0" max="{{ line_item.quantity_available }}" value="{{ line_item.quantity }}" disabled>
47-
<button class="increment" on-click="updateOrder(event, line_item.item_name, line_item.quantity_available, true)">+</button>
47+
<button class="increment" on-click="updateOrder(event, line_item.item_name, line_item.quantity_available, true)">&#43;</button>
4848
</div>
49-
<span class="multiplier">&times;</span>
49+
<span class="multiplier">&#215;</span>
5050
<div class="ticket-price-wrapper">
5151
{{#if line_item.unit_final_amount >= 0 && line_item.quantity === 0}}
5252
<p class="discount-price ticket-price">&#8377;{{ line_item.unit_final_amount }}</p>
@@ -503,6 +503,11 @@
503503
.ticket-description p {
504504
margin: 7px 0;
505505
}
506+
.ticket-description ul {
507+
list-style-type: disc;
508+
list-style-position: inside;
509+
padding-left: 5px;
510+
}
506511
.ticket-description .fa {
507512
padding-right: 5px;
508513
}
@@ -538,11 +543,12 @@
538543
.price-details-wrapper {
539544
float: right;
540545
margin: 0 0 10px;
546+
line-height: 1;
541547
}
542548
.ticket-price-wrapper {
543549
float: right;
544-
margin-top: 4px;
545550
position: relative;
551+
margin: 4px 0 0;
546552
}
547553
.ticket-price {
548554
font-size: 18px;
@@ -568,7 +574,7 @@
568574
outline: medium none;
569575
color: #333;
570576
padding: 0;
571-
height: 30px;
577+
height: 27px;
572578
overflow: hidden;
573579
background: #f6f3c2;
574580
font-size: 18px;
@@ -580,7 +586,6 @@
580586
background: #f6f3c2;
581587
-webkit-text-fill-color:#333;
582588
color: #333;
583-
line-height: 1;
584589
display: inline-block;
585590
padding-left: 8px;
586591
font-size: 18px;
@@ -603,8 +608,7 @@
603608
-moz-appearance: textfield;
604609
}
605610
.increment, .decrement {
606-
line-height: 1;
607-
font-size: 20px;
611+
font-size: 18px;
608612
background-color: #eee;
609613
height: 100%;
610614
border: 0;
@@ -615,9 +619,9 @@
615619
}
616620
.multiplier {
617621
padding-right: 20px;
618-
font-size: 20px;
619-
margin-top: 2px;
622+
font-size: 18px;
620623
float: right;
624+
margin: 5px 0 0;
621625
}
622626
.discount-amount, .subtotal {
623627
margin: 5px 0;
@@ -647,7 +651,9 @@
647651
.ticket-title,
648652
.ticket-price,
649653
.multiplier,
650-
.ticket-qty {
654+
.ticket-qty,
655+
.increment,
656+
.decrement{
651657
font-size: 25px;
652658
}
653659
.sold-out {
@@ -658,9 +664,6 @@
658664
.ticket-price .rupee-sign {
659665
font-size: 22px;
660666
}
661-
.increment, .decrement {
662-
font-size: 35px;
663-
}
664667
.ticket-qty-wrapper {
665668
height: 37px;
666669
}
@@ -677,7 +680,7 @@
677680
bottom: 24px;
678681
}
679682
.ticket-price-wrapper {
680-
margin-top: 2px;
683+
margin-top: 3px;
681684
}
682685
}
683686
.item-amount {

0 commit comments

Comments
 (0)