Skip to content

Commit

Permalink
Fix unit price styling on order detail page (Shopify#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
tauthomas01 authored Jul 7, 2021
1 parent 7a6bda8 commit 32c77de
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions assets/customer.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

.customer tbody {
color: rgb(var(--color-foreground))
color: rgb(var(--color-foreground));
}

.customer th,
Expand Down Expand Up @@ -198,7 +198,7 @@
/* works around colspan phantom border issues */
.customer thead::after,
.customer tfoot::before {
content: " ";
content: ' ';
height: 0.1rem;
width: 100%;
display: block;
Expand Down Expand Up @@ -355,22 +355,22 @@
display: none;
}

.activate button[name="decline"],
.activate button[name='decline'],
.addresses li > button,
.addresses form button[type] {
background-color: transparent;
box-shadow: 0 0 0 0.1rem rgb(var(--color-link));
color: rgb(var(--color-link));
}

.activate button[name="decline"]:hover,
.activate button[name='decline']:hover,
.addresses li > button:hover,
.addresses form button[type]:hover {
box-shadow: 0 0 0 0.2rem rgb(var(--color-link));
}

@media only screen and (min-width: 750px) {
.activate button[name="decline"] {
.activate button[name='decline'] {
margin-top: inherit;
margin-left: 1rem;
}
Expand Down Expand Up @@ -472,12 +472,21 @@
}

@media screen and (min-width: 750px) {
.order thead th:nth-last-child(-n+3),
.order td:nth-last-child(-n+3) {
.order thead th:nth-last-child(-n + 3),
.order td:nth-last-child(-n + 3) {
text-align: right;
}
}

.order tbody td:nth-of-type(3) dd:nth-of-type(2) {
font-size: 1.1rem;
letter-spacing: 0.07rem;
line-height: 1.2;
margin-top: 0.2rem;
text-transform: uppercase;
color: var(--color-foreground-70);
}

.order tfoot tr:last-of-type td,
.order tfoot tr:last-of-type th {
font-size: 2.2rem;
Expand Down Expand Up @@ -639,8 +648,8 @@
margin-right: 1rem;
}

label[for="AddressCountryNew"],
label[for="AddressProvinceNew"] {
label[for='AddressCountryNew'],
label[for='AddressProvinceNew'] {
display: block;
font-size: 1.4rem;
margin-bottom: 0.6rem;
Expand All @@ -666,11 +675,11 @@ li[data-address] {
margin-top: 5rem;
}

.addresses [aria-expanded="false"] ~ div[id] {
.addresses [aria-expanded='false'] ~ div[id] {
display: none;
}

.addresses [aria-expanded="true"] ~ div[id] {
.addresses [aria-expanded='true'] ~ div[id] {
display: block;
}

Expand All @@ -694,7 +703,7 @@ li[data-address] > h2 {
margin-bottom: 0;
}

.addresses input[type="checkbox"] {
.addresses input[type='checkbox'] {
margin-top: 2rem;
margin-left: 0;
}
Expand Down

0 comments on commit 32c77de

Please sign in to comment.