Skip to content

Commit

Permalink
Merge remote-tracking branch 'dawn/main' into dawn-13
Browse files Browse the repository at this point in the history
  • Loading branch information
j0Shi82 committed Feb 24, 2024
2 parents fc18855 + c5ba94b commit df8efc8
Show file tree
Hide file tree
Showing 129 changed files with 2,849 additions and 1,177 deletions.
6 changes: 6 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,9 @@ details[open] > .share-button__fallback {
appearance: none;
background-color: rgb(var(--color-background));
color: rgb(var(--color-foreground));
font-family: var(--font-body-family);
font-style: var(--font-body-style);
font-weight: var(--font-body-weight);
font-size: 1.6rem;
width: 100%;
box-sizing: border-box;
Expand Down Expand Up @@ -1925,6 +1928,9 @@ input[type='checkbox'] {

.quantity__input {
color: currentColor;
font-family: var(--font-body-family);
font-style: var(--font-body-style);
font-weight: var(--font-body-weight);
font-size: 1.6rem;
font-weight: 500;
opacity: 0.85;
Expand Down
2 changes: 1 addition & 1 deletion assets/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ if (!customElements.get('cart-note')) {
super();

this.addEventListener(
'change',
'input',
debounce((event) => {
const body = JSON.stringify({ note: event.target.value });
fetch(`${routes.cart_update_url}`, { ...fetchConfig(), ...{ body } });
Expand Down
2 changes: 1 addition & 1 deletion assets/collapsible-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
border-top: 0;
}

.collapsible-row-layout .accordion:not(:first-child):not(.color-background-1) {
.collapsible-row-layout .accordion:not(:first-child):not(.color-scheme-1) {
margin-top: 1rem;
}

Expand Down
3 changes: 1 addition & 2 deletions assets/component-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

/* Needed for gradient continuity with or without animation so that transparent PNG images come up as we would expect */
.card__inner.color-background-1 {
.card__inner.color-scheme-1 {
background: transparent;
}

Expand Down Expand Up @@ -300,7 +300,6 @@
}

.card--standard:not(.card--horizontal) .placeholder-svg {
height: auto;
width: 100%;
}

Expand Down
15 changes: 6 additions & 9 deletions assets/component-cart-drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ cart-drawer:not(.is-empty) .cart-drawer__collection {
}

.drawer__close svg {
height: 2.4rem;
width: 2.4rem;
height: 2rem;
width: 2rem;
}

.drawer__contents {
Expand Down Expand Up @@ -132,7 +132,7 @@ cart-drawer-items.is-empty + .drawer__footer {
display: flex;
position: relative;
line-height: 1;
padding: 1.5rem 0;
padding: 1.5rem 2.8rem 1.5rem 0;
}

.drawer__footer > details + .cart-drawer__footer {
Expand Down Expand Up @@ -182,9 +182,6 @@ cart-drawer {
.cart-drawer thead {
display: inline-table;
width: 100%;
position: sticky;
top: 0;
z-index: 2;
}

cart-drawer-items {
Expand All @@ -205,7 +202,7 @@ cart-drawer-items {
.cart-drawer .cart-item {
display: grid;
grid-template: repeat(2, auto) / repeat(4, 1fr);
gap: 1.5rem;
gap: 1rem;
margin-bottom: 0;
}

Expand Down Expand Up @@ -255,7 +252,7 @@ cart-drawer-items {
}

.cart-drawer .cart-items td {
padding-top: 2rem;
padding-top: 1.7rem;
}

.cart-drawer .cart-item > td + td {
Expand Down Expand Up @@ -312,7 +309,7 @@ cart-drawer-items {
}

.cart-drawer .tax-note {
margin: 1.2rem 0 1rem auto;
margin: 1.2rem 0 2rem auto;
text-align: left;
}

Expand Down
12 changes: 7 additions & 5 deletions assets/component-cart-items.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,18 @@ cart-remove-button .icon-remove {
}

.cart-item__error-text {
font-size: 1.2rem;
line-height: calc(1 + 0.2 / var(--font-body-scale));
font-size: 1.3rem;
line-height: 1.4;
letter-spacing: 0.04rem;
order: 1;
}

.cart-item__error-text + svg {
flex-shrink: 0;
width: 1.2rem;
margin-right: 0.5rem;
margin-top: 0.1rem;
width: 1.5rem;
height: 1.5rem;
margin-right: 0.7rem;
margin-top: 0.25rem;
}

.cart-item__error-text:empty + svg {
Expand Down
180 changes: 172 additions & 8 deletions assets/component-localization-form.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@
}

.localization-form__currency {
display: inline-block;
opacity: 0;
transition: opacity 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
white-space: nowrap;
padding-right: 1.7rem;
}

@media screen and (max-width: 749px) {
.localization-form .button {
word-break: break-all;
}

.localization-form__currency {
opacity: 1;
}
}

.localization-form__select {
Expand Down Expand Up @@ -149,6 +156,7 @@ noscript .localization-selector.link {
border-radius: var(--popup-corner-radius);
box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
rgba(var(--color-shadow), var(--popup-shadow-opacity));
max-height: 27.5rem;
}

.disclosure__list {
Expand All @@ -158,20 +166,168 @@ noscript .localization-selector.link {
padding-bottom: 0.5rem;
padding-top: 0.5rem;
scroll-padding: 0.5rem 0;
min-height: 8.2rem;
max-height: 20.65rem;
max-width: 22rem;
max-height: 20.5rem;
max-width: 25.5rem;
min-width: 12rem;
width: max-content;
}

.country-selector__list {
padding-bottom: 0.95rem;
padding-top: 0;
}

.country-selector__list--with-multiple-currencies {
width: 25.5rem;
}

.country-selector__close-button {
display: none;
}

.country-filter {
display: flex;
justify-content: end;
align-items: center;
gap: 0.5rem;
padding: 1.5rem 1.5rem 0.6rem;
position: sticky;
top: -0.02rem;
background-color: rgb(var(--color-background));
z-index: 6;
}

.country-filter__reset-button,
.country-filter__search-icon {
right: calc(var(--inputs-border-width));
top: var(--inputs-border-width);
}

.country-filter__reset-button:not(:focus-visible)::after,
.country-filter__reset-button:not(:focus)::after {
display: block;
height: calc(100% - 1.8rem);
content: '';
position: absolute;
right: 0;
}

.country-filter__reset-button:focus,
.country-filter__reset-button:focus-visible {
background-color: rgb(var(--color-background));
z-index: 4;
}

.country-filter__reset-button:not(:focus-visible):not(.focused) {
box-shadow: inherit;
background-color: inherit;
}

.country-filter__reset-button:hover .icon {
transform: scale(1.07);
}

.country-filter__reset-button .icon.icon-close,
.country-filter__search-icon .icon {
height: 1.8rem;
width: 1.8rem;
stroke-width: 0.1rem;
}

.country-filter__search-icon {
transition: opacity var(--duration-short) ease, visibility var(--duration-short) ease;
opacity: 1;
visibility: visible;
pointer-events: none;
cursor: text;
}

.country-filter__search-icon--hidden {
opacity: 0;
visibility: hidden;
}

@media screen and (max-width: 749px) {
.disclosure__list-wrapper.country-selector:not([hidden]) + .country-selector__overlay:empty {
display: block;
}

.country-selector__overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(var(--color-foreground), 0.5);
z-index: 3;
animation: animateLocalization var(--duration-default) ease;
}

.disclosure__list-wrapper.country-selector {
position: fixed;
bottom: -1rem;
left: 0;
width: 100%;
height: 80%;
max-height: 80vh;
border-radius: 0;
border: none;
box-shadow: none;
z-index: 4;
}

.disclosure__list.country-selector__list {
max-height: 85%;
min-width: 100%;
margin-bottom: 0;
z-index: 5;
}

.country-selector__close-button.link {
display: flex;
justify-content: center;
align-items: center;
padding: 0rem;
background-color: transparent;
height: 4.4rem;
width: 4.4rem;
}

.country-selector__close-button .icon {
width: 2rem;
height: 2rem;
}

.country-filter {
padding: 1.5rem 2rem 0.6rem 1.5rem;
}
}

@media screen and (min-width: 750px) {
.country-filter--no-padding {
padding: 0;
}
}

.countries {
padding-top: 0.6rem;
}

.popular-countries {
border-bottom: 1px solid rgba(var(--color-foreground), 0.2);
padding-bottom: 0.6rem;
padding-top: 0.6rem;
}

.disclosure__item {
position: relative;
}

.disclosure__link {
display: block;
padding: 0.95rem 3.5rem 0.95rem 2rem;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.5rem;
padding: 0.9rem 1.5rem;
text-decoration: none;
line-height: calc(1 + 0.8 / var(--font-body-scale));
color: rgba(var(--color-foreground), 0.75);
Expand All @@ -182,8 +338,16 @@ noscript .localization-selector.link {
color: rgb(var(--color-foreground));
}

.disclosure__link--active {
text-decoration: underline;
.disclosure__link .icon-checkmark {
width: 1rem;
margin-right: 0.2rem;
}

.disclosure__link:hover .localization-form__currency,
.disclosure__link:focus-visible .localization-form__currency,
.disclosure__link:focus .localization-form__currency {
display: inline-block;
opacity: 1;
}

.disclosure__button[aria-expanded='true'] .icon-caret {
Expand Down
8 changes: 8 additions & 0 deletions assets/component-menu-drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,11 @@ details[open].menu-opening > .menu-drawer__submenu {
.menu-drawer .list-social__link {
padding: 1.1rem 1.1rem;
}

@media screen and (max-width: 749px) {
.menu-drawer.country-selector-open {
transform: none !important;
filter: none !important;
transition: none !important;
}
}
Loading

0 comments on commit df8efc8

Please sign in to comment.