Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Storefront: open source styles and head
Damian Legawiec892017b34021
diff --git a/storefront/app/assets/config/spree_storefront_manifest.js b/storefront/app/assets/config/spree_storefront_manifest.jsindex 80c45f2477..ce19163edd 100644--- a/storefront/app/assets/config/spree_storefront_manifest.js+++ b/storefront/app/assets/config/spree_storefront_manifest.js@@ -3,3 +3,5 @@//= link_tree ../../javascript/spree/storefront/helpers .js//= link_tree ../../../vendor/javascript .js+//= link application.tailwind.css+//= link storefront_page_builder.css\ No newline at end of filediff --git a/storefront/app/assets/stylesheets/application.tailwind.css b/storefront/app/assets/stylesheets/application.tailwind.cssnew file mode 100644index 0000000000..34c4c80ea6--- /dev/null+++ b/storefront/app/assets/stylesheets/application.tailwind.css@@ -0,0 +1,1714 @@+@import url('https://esm.sh/[email protected]/dist/photoswipe.css');+@import url('https://esm.sh/[email protected]/swiper-bundle.min.css');+@import url('https://esm.sh/[email protected]/css/flag-icons.min.css');++@tailwind base;+@tailwind components;+@tailwind utilities;+@tailwind forms;++/*+ This is the storefront CSS+*/++.container,+.page-container {+ max-width: 90rem;+ padding-left: 1rem;+ padding-right: 1rem;+ margin-left: auto;+ margin-right: auto;+}+@media (min-width: 1024px) {+ .page-container {+ padding-left: 3.75rem;+ padding-right: 3.75rem;+ }+}++@media (min-width: 1024px) {+ header.header-logo-centered.headroom--not-top > nav > .page-container > .flex {+ align-items: center !important;+ }+}++html {+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);+}++.trix-content a {+ text-decoration: underline;+}++.trix-content ul {+ list-style-type: revert;+ list-style-position: inside;++ @apply pl-8;++ &:not(ul ul) {+ @apply mt-2 mb-6;+ }+}++.trix-content li:last-child {+ @apply mb-2;+}++.trix-content ol {+ list-style: decimal;+ list-style-position: inside;++ @apply pl-8;++ &:not(ol ol) {+ @apply mt-2 mb-6;+ }+}++.text-input {+ max-width: 100%;+ border-radius: var(--input-border-radius);+ border-color: var(--input);+ background-color: var(--input-bg);+ color: var(--input-text);+ height: 3rem;+}++textarea.text-input {+ height: auto;+ min-height: 3rem;+ border-radius: 0;+}++.text-input:disabled {+ background-color: var(--neutral-50);+ border-color: var(--input);+ color: var(--neutral-400);+}++.text-input:focus {+ border-color: var(--primary);+ background-color: var(--input-focus-bg);+ --tw-ring-color: var(--primary);+}++turbo-frame button {+ background-color: transparent;+ cursor: pointer;+}++.select-input {+ cursor: pointer;+ -webkit-appearance: none;+ -moz-appearance: none;+ appearance: none;+ border-radius: var(--input-border-radius);+ border-color: var(--input);+ background-color: var(--input-bg);+ color: var(--input-text);+ height: 3rem;+}++.select-input:focus {+ border-color: var(--primary);+ background-color: var(--input-focus-bg);+ --tw-ring-color: var(--primary);+}++.checkbox-input {+ cursor: pointer;+ border-radius: var(--input-border-radius) / 2;+ border-color: var(--input);+ background-color: transparent;+}++.checkbox-input:checked {+ background-color: var(--primary);+}++.radio-input {+ cursor: pointer;+}++.checkbox-input:focus,+.checkbox-input:checked,+.radio-input:focus,+.radio-input:checked {+ outline: none !important;+ box-shadow: none !important;+}++.menu-item {+ font-weight: 400;+ line-height: 0.875rem;+ letter-spacing: 0.06rem;+ text-transform: uppercase;+ padding-top: 0.5rem;+ padding-bottom: 0.5rem;+ border: 1.5px solid transparent;+}+.menu-item:hover span {+ border-bottom: 1.5px solid var(--accent);+}+.menu-item:active span,+.menu-item--active span {+ border-bottom: 1.5px solid var(--text);+}+.menu-item:focus {+ outline: none;+ padding-left: 0.5rem;+ padding-right: 0.5rem;+ margin-left: -0.5rem;+ margin-right: -0.5rem;+ border-radius: var(--button-border-radius);+}++@media (min-width: 1024px) {+ .menu-item {+ font-size: 0.875rem;+ line-height: 1.375rem;+ letter-spacing: 0.07rem;+ padding-top: 0px;+ padding-bottom: 0px;+ }+}++.btn-primary,+.btn-secondary {+ position: relative;+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.25rem;+ letter-spacing: 0.07rem;+ text-transform: uppercase;+ text-align: center;+ cursor: pointer;+ border-radius: var(--button-border-radius);+ background-color: var(--button-background-color, var(--button));+ padding-left: 1.25rem;+ padding-right: 1.25rem;+ padding-top: 0.75rem;+ padding-bottom: 0.75rem;+ color: var(--button-text-color, var(--button-text));+ outline-offset: 0.5rem;+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);+ transition-duration: 150ms;+}+.btn-primary {+ border: var(--button-border-width) solid var(--button-border-color, var(--button));+}++.btn-primary:focus-visible,+.btn-secondary:focus-visible,+.btn-icon:not(.btn-primary, .btn-secondary):focus-visible {+ outline: none;+}++.btn-primary:not(:disabled):focus::after,+.btn-primary:not(:disabled):active::after,+.btn-secondary:not(:disabled):focus::after,+.btn-secondary:not(:disabled):active::after {+ content: '';+ border-radius: var(--button-border-radius);+ position: absolute;+ top: -8px;+ left: -8px;+ width: calc(100% + 16px);+ height: calc(100% + 16px);+ background-color: transparent;+ display: inherit;+}++.btn-primary:disabled, .btn-primary.btn-disabled {+ cursor: not-allowed;+}++.btn-primary:hover:not(:disabled, .btn-disabled),+.btn-secondary:hover:not(:disabled, .btn-disabled) {+ cursor: pointer;+}++.btn-primary:hover:not(:disabled, .btn-disabled) {+ color: var(--button-background-color, var(--primary));+ background-color: var(--button-text-color, var(--button-text));+}++.btn-primary:hover:not(:disabled) svg path {+ stroke: var(--button-background-color, var(--primary));+}++.btn-secondary {+ color: var(--secondary-button-text);+ background-color: var(--secondary-button);+ border: var(--button-border-width) solid var(--button-border-color, var(--secondary-button-text));+}++.btn-secondary:hover:not(:disabled) {+ color: var(--secondary-button);+ background-color: var(--secondary-button-text);+}++.btn-secondary:hover:not(:disabled) svg path {+ stroke: var(--secondary-button);+}++@media (hover:none) {+ .btn-primary:hover:not(:disabled, .btn-disabled) {+ color: var(--button-text);+ background-color: var(--button);+ }+ .btn-secondary:hover:not(:disabled) {+ color: var(--secondary-button-text);+ background-color: var(--secondary-button);+ }+}++.btn-secondary:focus,+.btn-secondary:active {+ outline-color: var(--secondary-button);+}++.btn-primary.btn-icon,+.btn-secondary.btn-icon,+.link-icon {+ display: flex;+ justify-content: center;+ align-items: center;+ gap: 0.5rem;+}++.btn-primary.btn-icon > svg+.btn-secondary.btn-icon > svg {+ height: 1.25rem;+}++.btn-icon:not(.btn-primary, .btn-secondary) {+ position: relative;+ padding: 0.5rem;+ border-radius: var(--button-border-radius);+ outline-offset: 1px;+}++.btn-icon:not(.btn-primary, .btn-secondary):hover {+ background: var(--accent-100);+}++.btn-icon:not(.btn-primary, .btn-secondary):active {+ background: var(--accent);+}++.btn-icon:not(.btn-primary, .btn-secondary):focus::after {+ content: '';+ border-radius: var(--button-border-radius);+ position: absolute;+ top: -1px;+ left: -1px;+ width: calc(100% + 2px);+ height: calc(100% + 2px);+ background-color: transparent;+ display: inherit;+}++.link {+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.375;+ letter-spacing: 0.07rem;+ text-transform: uppercase;+ color: var(--text);+ border-bottom: 1px solid transparent;+}++.link:hover {+ border-bottom-color: var(--text);+}++.link:focus-visible {+ outline-offset: 0.25rem;+ padding: 0 0.25rem;+ border-radius: 0.25rem;+}++.link > svg {+ height: 1.5rem;+}++.link-disabled {+ opacity: 0.3;+}++#checkout-page .btn-primary {+ border-radius: var(--button-border-radius);+ border: var(--button-border-width) solid var(--button-border-color, var(--button));+ font-size: 1rem;+ font-weight: 400;+ text-transform: none;+ letter-spacing: initial;+}++#checkout-page .btn-primary:focus,+#checkout-page .btn-primary:active {+ outline: none;+}++#checkout-page .btn-primary:hover:not(:disabled) {+ opacity: 0.8;+ background-color: var(--button);+ color: var(--button-text);+}++#checkout-page .btn-primary:disabled {+ opacity: 0.5;+ background-color: var(--button);+ border-color: var(--button);+}++#checkout-page .text-input,+#checkout-page .select-input {+ border-radius: 0.375rem;+ height: 46.8px;+}++#checkout-page #flashes .fixed {+ position: fixed;+ left: 0;+}++#checkout-page #checkout_payment_methods[busy] {+ opacity: 0.5;+ cursor: wait;+ pointer-events: none;+}++#checkout-page #checkout-message {+ h1, h2, h3, h4, h5, h6 {+ @apply text-xl pb-1;+ }+}++.field_with_errors .text-input,+.field_with_errors .select-input {+ --tw-border-opacity: 1;+ border-color: rgb(220 38 38 / var(--tw-border-opacity));+}++.StripeElement iframe:focus-visible {+ outline: none;+}++.breadcrumb-item {+ font-size: 12px;+ margin-top: -1px;+}++.breadcrumb-item::before {+ content: url("data:image/svg+xml;utf8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ccc' class='bi bi-chevron-right' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");+ padding-right: 0.5rem;+ position: relative;+ top: 0.25rem;+}++.breadcrumb-item:first-child::before {+ content: none;+}++.breadcrumb-item:first-child {+ margin-top: 0.1rem;+}++.breadcrumb-square {+ width: 0.25rem;+ height: 0.25rem;+ margin: 0.6rem 0;+ background-color: var(--text);+}++a:hover {+}++.delivery-list-item:last-child {+ border-radius: 0.375rem !important;+}++.has-float-label {+ position: relative;+}++.has-float-label label {+ color: var(--input-text);+ font-size: 11px;+ position: absolute;+ left: 10px;+ cursor: text;+ top: 3px;+ padding: 0 4px;+ opacity: 0.8;+ transition: transform 0.2s ease-in-out;+ white-space: nowrap;+ pointer-events: none;+}++.has-float-label input,+.has-float-label select {+ padding-top: 1rem;+ padding-bottom: 0.3rem;+}++.has-float-label input:-moz-placeholder-shown + label,+.has-float-label select:-moz-placeholder-shown + label {+ opacity: 0;+ transform: translateY(5px);+}++.has-float-label input:-ms-input-placeholder + label,+.has-float-label select:-ms-input-placeholder + label {+ opacity: 0;+ transform: translateY(5px);+}++.has-float-label input:placeholder-shown + label,+.has-float-label select:placeholder-shown + label {+ opacity: 0;+ transform: translateY(5px);+}++.has-float-label input:-moz-placeholder-shown,+.has-float-label select:-moz-placeholder-shown {+ padding-top: 0.45rem;+ padding-bottom: 0.45rem;+}++.has-float-label input:-ms-input-placeholder,+.has-float-label select:-ms-input-placeholder {+ padding-top: 0.45rem;+ padding-bottom: 0.45rem;+}++.has-float-label input:placeholder-shown,+.has-float-label select:placeholder-shown {+ padding-top: 0.45rem;+ padding-bottom: 0.45rem;+}++.badge,+.badge-success,+.badge-paid,+.badge-warning,+.badge-canceled,+.badge-failed,+.badge-refunded,+.badge-void,+.badge-pending,+.badge-ready,+.badge-partial,+.badge-active,+.badge-inactive {+ margin-right: 0.25rem;+ display: inline-block;+ border-radius: var(--badge-border-radius);+ padding-top: 0.125rem;+ padding-bottom: 0.125rem;+ padding-left: 0.5rem;+ padding-right: 0.5rem;+ font-size: 0.875rem;+ line-height: 1.375rem;+ font-weight: 400;+}++.badge:last-child,+.badge-success:last-child,+.badge-paid:last-child,+.badge-warning:last-child,+.badge-canceled:last-child,+.badge-failed:last-child,+.badge-refunded:last-child,+.badge-void:last-child,+.badge-pending:last-child,+.badge-ready:last-child,+.badge-partial:last-child {+ margin-right: 0px;+}++.badge-success,+.badge-paid,+.badge-active {+ background-color: #D9F7EA;+}++.badge-warning,+.badge-canceled,+.badge-failed {+ background-color: #F8E7E5;+}++.badge,+.badge-refunded,+.badge-pending,+.badge-void,+.badge-ready,+.badge-inactive {+ background-color: #F3F3F3;+}++.badge-partial {+ background-color: rgb(186 230 253);+}+++address {+ font-style: normal;+}++button:focus {+ outline: none;+}++.summary-folded .summary {+ height: 0px !important;+}++.summary-folded .show-summary {+ display: block;+}++.summary-folded .hide-summary {+ display: none;+}++.chevron-summary::after {+ content: url("data:image/svg+xml;utf8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-chevron-right' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");+ color: var(--sidebar-divider);+ transform: rotate(-90deg);+ margin-left: 0.07rem;+}++.summary-folded .chevron-summary::after {+ transform: rotate(90deg);+}++@media (min-width: 1024px) {+ .summary-folded .summary {+ pointer-events: auto;+ height: 100% !important;+ }+}++/* .address-form {+ grid-template-columns: repeat(1, minmax(0, 1fr));+}++@media (min-width: 768px) {+ .address-form {+ grid-template-columns: repeat(3, minmax(0, 1fr));+ }++ .address-form.cols-2 {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }++ .address-form.col-1 {+ grid-template-columns: repeat(1, minmax(0, 1fr));+ }+} */++.field_with_errors {+ display: contents;+}++.turbo-progress-bar {+ background-color: var(--primary);+}+.modal .turbo-frame-error {+ display: flex;+ width: 100%;+ height: 100%;+ align-items: center;+ justify-content: center;+ font-weight: normal;+}++.card-dialog {+ margin-bottom: 1.25rem;+}++.border-default,+.border-sidebar {+ border-color: var(--border-default-color);+}++.card-dialog {+ border-radius: var(--border-default-radius);+ box-shadow: var(--border-default-shadow);+}++.border-default.border-t {+ border-width: 0;+ border-radius: 0;+ border-top-width: var(--border-default-width);+}++.border-default.border-b {+ border-width: 0;+ border-radius: 0;+ border-bottom-width: var(--border-default-width);+}++.border-default.border-b.border-t {+ border-width: 0;+ border-radius: 0;+ border-top-width: var(--border-default-width);+ border-bottom-width: var(--border-default-width);+}++.border-default.border-b-0 {+ border-bottom-width: 0;+}++.logo {+ max-height: 60px;+}++.checkout-mobile-header .logo {+ display: inline;+}++.product-image-container {+ text-indent: 100%;+ white-space: nowrap;+ overflow: hidden;+}++.product-image-container img {+ max-width: 100%;+ max-height: 100%;+ margin: auto;+ position: relative;+ left: 50%;+ transform: translateX(-50%);+}++@media (max-width: 1024px) {+ .line-items {+ max-height: none !important;+ }+}++.alert-notice {+ background-color: var(--success);+}++.alert-error {+ background-color: #F8E7E5;+}++.alert-success {+ background-color: var(--success);+}++.alert-warning {+ --tw-bg-opacity: 1;+ background-color: rgb(254 249 195 / var(--tw-bg-opacity));+}++@media (min-width: 1024px) {+ .background {+ background: linear-gradient(90deg, var(--background) 50%, var(--accent) 50%);+ }+}++.quantity-picker {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ border-radius: var(--input-border-radius);+ --tw-bg-opacity: 1;+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));+ border: var(--border-default-width) solid var(--border-default-color);+}++.quantity-picker.border-t {+ border-width: 0;+ border-radius: 0;+ border-top-width: var(--border-default-width);+}++.quantity-picker.border-b {+ border-width: 0;+ border-radius: 0;+ border-bottom-width: var(--border-default-width);+}++.quantity-picker.border-b-0 {+ border-bottom-width: 0;+}++.quantity-picker button:not(.hidden) {+ cursor: pointer;+ background-color: transparent;+ display: inline-flex;+ width: 36px;+ height: 36px;+ justify-content: center;+ align-items: center;+ border-radius: var(--input-border-radius);+}+.quantity-picker button svg {+ width: 18px;+ height: 18px;+}++.quantity-picker button:disabled {+ cursor: not-allowed;+ opacity: 0.5;+}++.quantity-picker input {+ width: 1.5rem;+ height: 100%;+ border-width: 0px;+ padding: 0px 0px;+ text-align: center;+ background-color: transparent;+ -webkit-appearance: none;+ -moz-appearance: none;+ appearance: none;+ margin: 0;+}++.quantity-picker input::-webkit-inner-spin-button,+.quantity-picker input::-webkit-outer-spin-button {+ -webkit-appearance: none;+ margin: 0;+}++.quantity-picker input:focus {+ border-width: 0px;+ outline: none;+ border-color: transparent;+ box-shadow: none;+}++.quantity-picker input[type='number']::-webkit-inner-spin-button,+.quantity-picker input[type='number']::-webkit-outer-spin-button {+ -webkit-appearance: none;+ margin: 0;+}++.quantity-picker input[type='number'] {+ -moz-appearance: textfield;+}++.swiper-pagination-bullet {+ border: 1px solid var(--primary);+ background: none;+ opacity: 1;+ margin: 0px 0.375rem !important;+ width: 10px;+ height: 10px;+}++input.without-arrows[type='number']::-webkit-outer-spin-button,+input.without-arrows[type='number']::-webkit-inner-spin-button {+ -webkit-appearance: none;+ margin: 0;+}++input.without-arrows[type='number'] {+ -moz-appearance: textfield;+}++.swiper-pagination-bullet-active {+ background: var(--primary) !important;+}++.swiper-pagination-current {+ color: var(--text);+}++.swiper-pagination-lock {+ display: none;+}++.swiper-notification {+ display: none;+}++.pswp {+ --pswp-bg: var(--accent) !important;+ --pswp-placeholder-bg: var(--accent) !important;+}++.pswp__button--close {+ margin: 0;+ width: 4rem;+ height: 4rem;+ background: var(--background);+ opacity: 1;+ display: flex;+ justify-content: center;+ align-items: center;+}+.pswp__button--close:hover {+ background: var(--background);+}++.pswp__button--close .pswp__icn {+ position: static;+ width: 1.5rem;+ height: 1.5rem;+}++.pswp__button--arrow .pswp__icn {+ width: 2rem;+ height: 2rem;+ top: 0;+ margin: 0;+ left: 0;+}++.pswp__button--arrow--next .pswp__icn {+ transform: rotate(0deg) !important;+}++.pswp__button--arrow {+ width: 2rem;+ height: 2rem;+ bottom: 2rem;+ top: auto;+ visibility: visible !important;+}++.pswp__button--arrow--prev {+ left: 1rem;+}++.pswp__button--arrow--next {+ right: 1rem;+}++.pswp__button--zoom {+ display: none !important;+}++.pswp__counter {+ display: none;+}++.pswp__bullets-indicator {+ display: flex;+ flex-direction: row;+ align-items: center;+ bottom: 2rem;+ height: 2rem;+ position: absolute;+ left: 50%;+ transform: translate(-50%, 0);+}++.pswp__bullet {+ width: 0.5rem;+ height: 0.5rem;+ padding: 0.25rem;+ margin: 0 0.25rem;+ border-radius: 50%;+ border: 1px solid var(--primary);+}++.pswp__bullet--active {+ background: var(--primary);+}+.pswp__pagination {+ display: none;+}++@media (min-width: 1024px) {+ .pswp__button--close {+ margin-right: 3.75rem;+ margin-top: 3.75rem;+ }+ .pswp__button--arrow {+ top: 50%;+ }+ .pswp__button--arrow--prev {+ left: 3.75rem;+ }+ .pswp__button--arrow--next {+ right: 3.75rem;+ }+ .pswp__bullets-indicator {+ display: none;+ }+ .pswp__pagination {+ display: block;+ position: absolute;+ top: 5rem;+ left: 3.75rem;+ font-size: 1.5rem;+ line-height: 2rem;+ font-weight: 400;+ color: var(--neutral);+ }+ .pswp__pagination--current {+ color: var(--text);+ }+}++#pinch-to-zoom {+ left: 50%;+ z-index: 100001;+ top: 50%;+ transform: translate(-50%, -50%);+ pointer-events: none;+ display: none;+}++.product-image :hover .zoom-icon {+ display: block;+}++.flyout-menu:hover .flyout-button button {+ border-color: var(--primary);+ color: var(--primary);+}++.flyout-menu:hover .flyout-menu-container {+ display: block;+ z-index: 9999;+}++.product-description p {+ margin-bottom: 1rem;+}++.swipe-slide {+ -webkit-backface-visibility: hidden;+ -webkit-transform: translate3d(0, 0, 0);+}++.swiper-wrapper {+ -webkit-transform-style: preserve-3d;+}++.word-break {+ word-break: break-word;+}++.tailwind-container {+ width: 100%;+}++@media (min-width: 640px) {+ .tailwind-container {+ max-width: 640px;+ }+}++@media (min-width: 768px) {+ .tailwind-container {+ max-width: 768px;+ }+}++@media (min-width: 1024px) {+ .tailwind-container {+ max-width: 1024px;+ }+}++@media (min-width: 1280px) {+ .tailwind-container {+ max-width: 1280px;+ }+}++@media (min-width: 1536px) {+ .tailwind-container {+ max-width: 1536px;+ }+}++.hamburger-visible,+.search-visible {+ opacity: 1;+ pointer-events: auto;+}++.hamburger-visible .body {+ transform: translateX(0);+}++.menu-open div:first-of-type {+ opacity: 0;+}++.menu-open div:last-of-type {+ opacity: 1;+}++html[aria-busy='true'] .hide-on-load {+ pointer-events: none;+ opacity: 0;+}++.label {+ position: absolute;+ width: fit-content;+ height: fit-content;+ overflow-wrap: anywhere;+}++@media (max-width: 768px) {+ *[width-desktop='true'] {+ width: 100% !important;+ }+}++@media (min-width: 1024px) {+ .flex-centered {+ position: absolute;+ flex: 0 1 auto;+ left: 50%;+ transform: translateX(-50%);+ }+}++/* kanety/stimulus-accordion */++.st-accordion .st-accordion__icon svg {+ transition: transform 0.2s;+}++.st-accordion .st-accordion__icon--opened svg {+ transform: rotate(-180deg);+}++.st-accordion .st-accordion__content:not(.st-accordion__content--visible) {+ height: 0;+ opacity: 0;+ overflow: hidden;+ transition: all 0.2s;+ visibility: hidden;+ padding: 0;+}++.st-accordion .st-accordion__content.st-accordion__content--visible {+ opacity: 1;+ transition: all 0.2s;+ visibility: visible;+}++.st-accordion button {+ width: 100%;+ text-align: left;+}++.fixed-pdp-button {+ transition: all 0.2s ease;+}++@media (min-width: 1024px) {+ .fixed-pdp-button {+ display: none !important;+ }+}++.sidebar-pane {+ max-width: 420px;+}++#slideover-cart .line-item-total-amount {+ display: none;+}++#slideover-cart #cart_contents {+ display: flex;+ flex-direction: column;+ height: 100%;+}+#slideover-cart #line-items {+ flex-grow: 1;+ overflow: auto;+}+#slideover-cart .cart-line-item {+}+.cart-line-item .delete svg {+ width: 1rem !important;+ height: 1rem !important;+}+#slideover-cart .cart-summary-container {+ background-color: var(--accent);+}+#slideover-cart .cart-summary-container * {+ text-align: left !important;+}+#slideover-cart .shopping-cart-total-text {+ display: flex;+ justify-content: space-between;+}+#slideover-cart .btn-primary {+ width: 100%;+ margin-top: 1rem;+ text-align: center !important;+ margin-bottom: 0;+}+#slideover-cart turbo-frame[busy] {+ opacity: 0.5;+ cursor: wait;+}+.line-item-overlay {+ display: none;+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 100%;+}+#slideover-cart turbo-frame[busy] .line-item-overlay {+ display: block;+}++.headroom--unpinned:not(.headroom--frozen) {+ pointer-events: none;+}++.headroom--unpinned:not([data-toggle-menu-open-value='true']):not([data-slideover-open-value='true']) nav {+ transform: translateY(-100%);+}+/*#region noUiSlider functional */+.noUi-target,+.noUi-target * {+ -webkit-touch-callout: none;+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);+ -webkit-user-select: none;+ -ms-touch-action: none;+ touch-action: none;+ -ms-user-select: none;+ -moz-user-select: none;+ user-select: none;+ -moz-box-sizing: border-box;+ box-sizing: border-box;+}+.noUi-target {+ position: relative;+}+.noUi-base,+.noUi-connects {+ width: 100%;+ height: 100%;+ position: relative;+ z-index: 1;+}+.noUi-connects {+ overflow: hidden;+ z-index: 0;+}+.noUi-connect,+.noUi-origin {+ will-change: transform;+ position: absolute;+ z-index: 1;+ top: 0;+ right: 0;+ height: 100%;+ width: 100%;+ -ms-transform-origin: 0 0;+ -webkit-transform-origin: 0 0;+ -webkit-transform-style: preserve-3d;+ transform-origin: 0 0;+ transform-style: flat;+}+.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {+ left: 0;+ right: auto;+}+.noUi-vertical .noUi-origin {+ top: -100%;+ width: 0;+}+.noUi-horizontal .noUi-origin {+ height: 0;+}+.noUi-handle {+ -webkit-backface-visibility: hidden;+ backface-visibility: hidden;+ position: absolute;+}+.noUi-touch-area {+ height: 100%;+ width: 100%;+}+.noUi-state-tap .noUi-connect,+.noUi-state-tap .noUi-origin {+ -webkit-transition: transform 0.3s;+ transition: transform 0.3s;+}+.noUi-state-drag * {+ cursor: inherit !important;+}+.noUi-horizontal {+ height: 18px;+}+.noUi-vertical {+ width: 18px;+}+.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {+ left: -17px;+ right: auto;+}+/*#endregion*/++.noUi-target {+ background: var(--border-default-color);+ height: 2px;+ width: calc(100% - 24px);+ margin-left: 12px;+}+.noUi-connect {+ background: var(--primary);+ height: 2px;+}+.noUi-handle {+ border: 3px solid #fff;+ width: 24px;+ height: 24px;+ right: -12px;+ top: -12px;+ border-radius: 50%;+ background: var(--primary);+ cursor: pointer;+}++.input-checkbox {+ width: 1.5rem;+ height: 1.5rem;+ cursor: pointer;+ border-color: var(--border-default-color);+ background-color: transparent;+ color: transparent;+}++.input-checkbox:checked {+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");+ border-color: var(--primary);+}+.input-checkbox:hover {+ border-color: var(--primary);+}+.input-checkbox:checked:hover {+ border-color: var(--primary);+}+.input-checkbox:focus,+.input-checkbox:checked:focus {+ outline-color: var(--primary);+ outline: none;+ box-shadow: none;+}++#search-suggestions {+ z-index: 50;+ width: 100%;+ background-color: var(--background);+ top: 0;+ left: 0;+ display: none;+ position: absolute;+}+#search-suggestions::before {+ content: '';+ position: fixed;+ top: 0;+ left: 0;+ height: 100%;+ width: 100%;+ background-color: var(--background);+ opacity: 0.75;+ z-index: -1;+ animation: fadeInTo75 0.5s ease-in-out;+}++@keyframes fadeInTo75 {+ 0% {+ opacity: 0;+ }+ 100% {+ opacity: 0.75;+ }+}++.no-scrollbar::-webkit-scrollbar {+ display: none;+}++.no-scrollbar {+ -ms-overflow-style: none;+ scrollbar-width: none;+}+@media (min-width: 768px) {+ .custom-desktop-height {+ height: var(--desktop-height);+ }+}+@media (max-width: 768px) {+ .custom-mobile-height {+ height: var(--mobile-height);+ }+}++.rounded-input {+ border-radius: var(--input-border-radius);+}++.rounded-button {+ border-radius: var(--button-border-radius);+}++.modal {+ position: fixed;+ overflow-y: auto;+ inset: 0px;+ align-items: center;+ justify-content: center;+ z-index: 9999;+ /* https://stackoverflow.com/questions/32082121/why-is-fixed-position-elements-being-cut-off-on-full-screen-iphone-experience-wh */+ -webkit-transform: translate3d(0, 0, 0);+ -moz-transform: translate3d(0, 0, 0);+ -ms-transform: translate3d(0, 0, 0);+ transform: translate3d(0, 0, 0);+}++.modal .page-container, .modal .main-product-container {+ padding: 0 !important;+ margin: 0 !important;+ border: 0 none !important;+}++.product-modal #breadcrumbs {+ display: none;+}++.product-modal .add-to-wishlist {+ display: none;+}++.media-gallery-desktop .swiper-slide-thumb-active {+ position: relative;+}+.media-gallery-desktop .swiper-slide-thumb-active::after {+ position: absolute;+ width: 100%;+ height: 100%;+ border: 1px solid black;+ display: block;+ left: 0px;+ top: 0px;+ content: '';+}++.media-gallery-desktop .swiper-button-lock {+ display: none;+}+.media-gallery-desktop {+ container-name: media-gallery-desktop;+ container-type: inline-size;+}+@supports (container-type: inline-size) {+ .media-gallery-desktop {+ --arrows-display: none;+ }+}+@container media-gallery-desktop (max-width: calc(108px * 6 + 104px + 0.5rem)) {+ .media-gallery-desktop:has(.swiper-slide:nth-child(6)) > .media-gallery-desktop__wrapper {+ --arrows-display: flex;+ }+}+@container media-gallery-desktop (max-width: calc(108px * 5 + 104px + 0.5rem)) {+ .media-gallery-desktop:has(.swiper-slide:nth-child(5)) > .media-gallery-desktop__wrapper {+ --arrows-display: flex;+ }+}+@container media-gallery-desktop (max-width: calc(108px * 4 + 104px + 0.5rem)) {+ .media-gallery-desktop:has(.swiper-slide:nth-child(4)) > .media-gallery-desktop__wrapper {+ --arrows-display: flex;+ }+}+@container media-gallery-desktop (max-width: calc(108px * 3 + 104px + 0.5rem)) {+ .media-gallery-desktop:has(.swiper-slide:nth-child(3)) > .media-gallery-desktop__wrapper {+ --arrows-display: flex;+ }+}+@container media-gallery-desktop (max-width: calc(108px * 2 + 104px + 0.5rem)) {+ .media-gallery-desktop:has(.swiper-slide:nth-child(2)) > .media-gallery-desktop__wrapper {+ --arrows-display: flex;+ }+}++.media-gallery-desktop-arrow {+ display: var(--arrows-display, flex);+}++#floating-cart-icon {+ bottom: 1rem;+ right: 1rem;+ z-index: 9998;+}++.custom-height {+ height: var(--mobile-height, var(--height));+}+@media (min-width: 501px) {+ .custom-height {+ height: var(--desktop-height, var(--height));+ }+}+@media (min-width: 768px) {+ .desktop-max-width {+ max-width: var(--desktop-max-width);+ }+}++.checkout-container {+ --main-container-width: 650px;+ --summary-container-width: 455px;+ grid-template-rows: min-content auto;+ grid-template-columns: 1fr;+ grid-template-areas:+ 'summary'+ 'main';+}++@media (min-width: 768px) {+ .checkout-container {+ grid-template-rows: 1fr;+ grid-template-columns:+ minmax(0, 1fr)+ minmax(0, var(--main-container-width))+ minmax(0, var(--summary-container-width))+ minmax(0, 1fr);+ grid-template-areas: 'main main summary summary';+ }+}++#checkout-main #flashes {+ --flashes-container-width: var(--main-container-width) + var(--summary-container-width);+ grid-template-columns:+ minmax(0, 1fr)+ minmax(0, calc(var(--flashes-container-width)))+ minmax(0, 1fr);+ grid-template-areas: '. flash .';+ display: grid;+ left: 0;+}++#checkout-main #flashes > div {+ grid-area: flash;+}++#checkout-main {+ background: var(--background);+ grid-area: main;+}++#checkout-summary {+ background: var(--accent);+ grid-area: summary;+}++#checkout-main > .checkout-main-container,+#checkout-footer {+ max-width: var(--main-container-width);+ width: 100%;+ inline-size: 100%;+ padding: 0px 21px;+}+#checkout-footer {+ padding: 16px 21px;+ padding-top: 0;+}+#checkout-summary > .checkout-summary-container {+ max-width: var(--summary-container-width);+ width: 100%;+ inline-size: 100%;+ padding: 21px;+}++@media (min-width: 768px) {+ #checkout-main > .checkout-main-container {+ padding: 42px;+ flex-grow: 1;+ }+ #checkout-footer {+ padding: 16px 42px;+ padding-top: 0;+ }+ #checkout-summary > .checkout-summary-container {+ padding: 42px;+ position: sticky;+ top: 0;+ }+}++.size-chart-table table {+ width: 100%;+ border-collapse: collapse;+ border-spacing: 0;+}+.size-chart-table tr th {+ border: 1px solid var(--border-default-color);+ padding: 0.25rem;+ text-align: center;+ font-weight: 600;+}+.size-chart-table tr td {+ border: 1px solid var(--border-default-color);+ padding: 0.25rem;+ text-align: center;+}++.dropdown-button:focus svg {+ rotate: 180deg;+ transition: 200ms;+}++/* PDP properties */+.product-property {+ ul {+ list-style: disc;+ padding-left: 2rem;+ }++ ol {+ list-style: decimal;+ padding-left: 2rem;+ }++ h1, h2, h3, h4, h5, h6 {+ font-size: 1.5rem;+ line-height: 2.0rem;+ }++ a {+ font-weight: 600;+ line-height: 1.375;+ letter-spacing: 0.07rem;+ color: var(--text);+ border-bottom: 1px solid transparent;++ &:hover {+ border-bottom-color: var(--text);+ }++ &:focus-visible {+ outline-offset: 0.25rem;+ padding: 0 0.25rem;+ border-radius: 0.25rem;+ }+ }+}+.product-description-truncated {+ overflow: hidden;+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: var(--read-more-line-clamp, 3);+}+.header--nav-item .menu-item:focus:not(.header--mega-nav-container *) {+ outline: none;+ padding-left: 1rem;+ padding-right: 1rem;+ margin-left: 0rem;+ margin-right: 0rem;+}++.post-details-content {+ h1, h2, h3, h4, h5, h6 {+ @apply text-xl font-medium my-4;+ }++ li {+ b, strong {+ @apply font-semibold;+ }+ }++ pre {+ @apply mb-4;+ }++ p {+ @apply my-4;+ }++ p:first-child {+ margin-top: 0;+ }++ img {+ width: 100%;+ }++ hr {+ @apply mt-4 mb-6;+ }++ .attachment {+ @apply my-6;+ }++ .attachment__caption {+ @apply text-center text-neutral-600 italic;+ }+}++.prose:not(:has(h1)) {+ h2:first-of-type {+ margin-top: 0;+ }+}++.pagination {+ .pagination-link {+ border: 1.5px solid transparent;+ }++ .pagination-link:hover {+ border-bottom: 1.5px solid var(--accent);+ }++ .pagination-link:active, .pagination-link--active {+ border-bottom: 1.5px solid var(--text);+ }++ .pagination-link--disabled {+ color: var(--neutral);+ pointer-events: none;+ }+}++label:has(.input-address-default:disabled) {+ color: var(--neutral);+}++.input-address-default:disabled {+ @apply cursor-not-allowed;++ border-color: var(--neutral);+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='#999999' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");++ &:hover {+ border-color: var(--neutral);+ }+}++body:has(.currency-and-locale-modal:not(.hidden)) .page-contents {+ position: relative;+ z-index: 1;+}++.video-embed-container {+ iframe {+ width: 100%;+ height: auto;+ aspect-ratio: 1.77;+ }+}diff --git a/storefront/app/assets/stylesheets/storefront_page_builder.css b/storefront/app/assets/stylesheets/storefront_page_builder.cssnew file mode 100644index 0000000000..0d2f6307db--- /dev/null+++ b/storefront/app/assets/stylesheets/storefront_page_builder.css@@ -0,0 +1,51 @@+.editor-overlay {+ z-index: 1089;+ width: 100%;+}++.editor-overlay-toolbar {+ position: absolute;+ top: -26px;+ left: -1px;+ background-color: #0081f1;+ color: #fff;+ padding: 4px 8px;+ font-size: 12px;+ font-weight: bold;+ border-radius: 4px 4px 0 0;+ cursor: pointer;+ display: none;+}+.editor-overlay-toolbar {+ right: 2px;+ top: 2px;+ left: auto;+ cursor: auto;+ z-index: 1091;+ padding: 2px 2px;+ border-radius: 4px;+}+.editor-overlay-toolbar button {+ padding: 8px;+ border-radius: 4px;+}+.editor-overlay-toolbar button:hover,+.editor-overlay-toolbar button:focus {+ background-color: #0d53b5;+}+.editor-overlay:hover,+.editor-overlay:focus,+.editor-overlay-active,+.editor-overlay-hover {+ border: 1px solid #2c6ecb;+}+.editor-overlay:focus,+.editor-overlay-active {+ border-width: 3px !important;+}+.editor-overlay:hover .editor-overlay-toolbar,+.editor-overlay:focus .editor-overlay-toolbar,+.editor-overlay-active .editor-overlay-toolbar,+.editor-overlay-hover .editor-overlay-toolbar {+ display: block;+}diff --git a/storefront/app/helpers/spree/fonts_helper.rb b/storefront/app/helpers/spree/fonts_helper.rbindex 03ca12cad5..d0410f00b2 100644--- a/storefront/app/helpers/spree/fonts_helper.rb+++ b/storefront/app/helpers/spree/fonts_helper.rb@@ -2,7 +2,6 @@ module Spreemodule FontsHelperdef normal_font_family_stylesreturn '' if current_theme_or_preview.preferred_font_family.blank?- return if all_fonts_options.exclude?(current_theme_or_preview.preferred_font_family)font_family = current_theme_or_preview.preferred_font_familytext_font_size = (current_theme_or_preview.preferred_font_size_scale || 100) / 100.0@@ -24,7 +23,6 @@ module Spreedef header_font_family_stylesreturn '' if current_theme_or_preview.preferred_header_font_family.blank?- return if all_fonts_options.exclude?(current_theme_or_preview.preferred_header_font_family)font_family = current_theme_or_preview.preferred_header_font_family@@ -41,8 +39,6 @@ module Spreereturn if fonts.blank?imports = fonts.map do |font|- next if google_fonts_list.exclude?(font)-"family=#{font.split(' ').join('+')}"end.compact.join('&')diff --git a/storefront/app/views/spree/shared/_fonts.html.erb b/storefront/app/views/spree/shared/_fonts.html.erbnew file mode 100644index 0000000000..08822fd0e6--- /dev/null+++ b/storefront/app/views/spree/shared/_fonts.html.erb@@ -0,0 +1,14 @@+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>++<% cache_unless page_builder_enabled?, current_theme do %>+ <%= google_fonts_link_tag %>++ <style type="text/css">+ <%= font_styles %>+ </style>++ <% if current_theme_or_preview.preferred_custom_font_code.present? %>+ <%= raw(current_theme_or_preview.preferred_custom_font_code) %>+ <% end %>+<% end %>diff --git a/storefront/app/views/spree/shared/_head.html.erb b/storefront/app/views/spree/shared/_head.html.erbnew file mode 100644index 0000000000..3cd33f2583--- /dev/null+++ b/storefront/app/views/spree/shared/_head.html.erb@@ -0,0 +1,25 @@+<meta charset="utf-8">+<title><%= title %></title>+<meta name="viewport" content="width=device-width, initial-scale=1">+<%= canonical_tag(current_store.url_or_custom_domain) %>+<%= csrf_meta_tags %>++<% cache current_store do %>+ <% if current_store.favicon_image.attached? && current_store.favicon_image.variable? %>+ <link rel="icon" href="<%= main_app.cdn_image_url(current_store.favicon_image.variant(spree_image_variant_options(resize_to_fill: [256, 256]))) %>">+ <% end %>+<% end %>++<%= render 'spree/shared/meta_tags' %>+<%= render 'spree/shared/css_variables' %>+<%= render 'spree/shared/fonts' %>++<%= javascript_importmap_tags 'application-spree-storefront' %>+<%= javascript_tag "wishedVariantIds = #{(current_wishlist&.variant_ids&.map(&:to_s) || []).to_json.html_safe};" %>++<%= stylesheet_link_tag "application.tailwind", defer: true, data: { turbo_track: 'reload' } %>+<%= stylesheet_link_tag "storefront_page_builder", defer: true, data: { turbo_track: 'reload' } if page_builder_enabled? %>++<%= yield :head %>++<%= render_storefront_partials(:head_partials) unless page_builder_enabled? %>diff --git a/storefront/app/views/themes/default/spree/shared/_css_variables.html.erb b/storefront/app/views/themes/default/spree/shared/_css_variables.html.erbnew file mode 100644index 0000000000..aec1aadd2d--- /dev/null+++ b/storefront/app/views/themes/default/spree/shared/_css_variables.html.erb@@ -0,0 +1,54 @@+<% cache_unless page_builder_enabled?, spree_base_cache_scope.call(current_theme) do %>+ <style data-turbo-track="reload">+ <%= theme_setting(:custom_font_css_import) if theme_setting(:custom_font_css_import).present? %>++ :root {+ --primary: <%= theme_setting(:primary_color) %>;+ --accent: <%= theme_setting(:accent_color) %>;+ --danger: <%= theme_setting(:danger_color) %>;+ --success: <%= theme_setting(:success_color) %>;+ --neutral: <%= theme_setting(:neutral_color) %>;++ --background: <%= theme_setting(:background_color) %>;+ --text: <%= theme_setting(:text_color) %>;++ --border-default-color: <%= theme_setting(:border_color) %>;+ --border-default-width: <%= theme_setting(:border_width) %>px;+ --border-default-radius: <%= theme_setting(:border_radius) %>px;++ /* --border-default-shadow: <%= "#{theme_setting(:border_shadow_horizontal_offset)}px #{theme_setting(:border_shadow_vertical_offset)}px #{theme_setting(:border_shadow_blur)}px rgba(0, 0, 0, #{theme_setting(:border_shadow_opacity)})" %>; */+ --button: <%= theme_setting(:button_background_color) || theme_setting(:primary_color) %>;+ --button-rgb: <%= theme_setting_rgb_components(:button_background_color) || theme_setting_rgb_components(:primary_color) %>;+ --button-text: <%= theme_setting(:button_text_color) %>;+ --button-border-radius: <%= theme_setting(:button_border_radius) %>px;+ --button-border-width: <%= theme_setting(:button_border_thickness) %>px;+ --button-border-color: <%= theme_setting(:button_border_color).presence %>;++ --button-hover: <%= theme_setting(:button_hover_background_color) || theme_setting(:button_background_color) || theme_setting(:primary_color)%>;+ --button-hover-text: <%= theme_setting(:button_hover_text_color) || theme_setting(:button_text_color) || theme_setting(:background_color)%>;++ --secondary-button: <%= theme_setting(:secondary_button_background_color) || theme_setting(:background_color) %>;+ --secondary-button-text: <%= theme_setting(:secondary_button_text_color) || theme_setting(:button_background_color) || theme_setting(:primary_color) %>;+ --secondary-button-hover: <%= theme_setting(:secondary_button_hover_background_color) || theme_setting(:button_background_color) || theme_setting(:primary_color) %>;+ --secondary-button-hover-text: <%= theme_setting(:secondary_button_hover_text_color) || theme_setting(:background_color) %>;++ --input: <%= theme_setting(:input_border_color) || theme_setting(:border_color) %>;+ --input-bg: <%= theme_setting(:input_background_color) %>;+ --input-text: <%= theme_setting(:input_text_color) %>;+ --input-focus-bg: <%= theme_setting(:input_focus_background_color) || theme_setting(:input_background_color) %>;+ --input-border-radius: <%= theme_setting(:input_border_radius) %>px;++ --neutral-50: #F3F3F3;+ --neutral-100: #EAEAEA;+ --neutral-200: #D4D4D4;+ --neutral-300: #B3B3B3;+ --neutral-400: #999999;+ --neutral-500: #808080;+ --neutral-600: #666666;+ --neutral-700: #4D4D4D;+ --neutral-800: #333333;+ --neutral-900: #1A1A1A;+ --accent-100: #FBFAF8;+ }+ </style>+<% end %>diff --git a/storefront/app/views/themes/default/spree/shared/_custom_head.html.erb b/storefront/app/views/themes/default/spree/shared/_custom_head.html.erbnew file mode 100644index 0000000000..e69de29bb2diff --git a/storefront/app/views/themes/default/spree/shared/_meta_tags.html.erb b/storefront/app/views/themes/default/spree/shared/_meta_tags.html.erbnew file mode 100644index 0000000000..fd3c4da59d--- /dev/null+++ b/storefront/app/views/themes/default/spree/shared/_meta_tags.html.erb@@ -0,0 +1,45 @@+<% unless current_store.prefers_index_in_search_engines? %>+ <meta name="robots" content="noindex, nofollow">+<% end %>++<% og_title = title.presence || current_store.name %>+<% og_url = canonical_href(current_store.url_or_custom_domain) %>+<% og_type = 'website' %>+<% og_description = page_description.presence || current_store.description.presence || current_store.name %>++<% if @product %>+ <% og_type = 'product' %>+<% elsif @article %>+ <% og_type = 'article' %>+<% end %>++<meta name="description" content="<%= h(og_description) %>">++<meta property="og:site_name" content="<%= current_store.name %>">+<meta property="og:url" content="<%= og_url %>">+<meta property="og:title" content="<%= h(og_title) %>">+<meta property="og:type" content="<%= og_type %>">+<meta property="og:description" content="<%= h(og_description) %>">++<% if page_image.present? && page_image.attached? && page_image.variable? %>+ <% image_url = main_app.cdn_image_url(page_image.variant(spree_image_variant_options(resize_to_fill: [1200, 630]))) %>++ <meta property="og:image" content="<%= image_url %>">+ <meta property="og:image:secure_url" content="<%= image_url %>">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:alt" content="<%= title.gsub(current_store.name, '') %>">+ <meta property="twitter:image" content="<%= image_url %>" />+<% end %>++<% if @product && @product.price_in(current_currency).present? %>+ <meta property="og:price:amount" content="<%= @product.price_in(current_currency).amount.to_s %>">+ <meta property="og:price:currency" content="<%= current_order&.currency || current_store.default_currency %>">+<% end %>++<% if current_store.twitter.present? %>+ <meta name="twitter:site" content="<%= '@' + current_store.twitter.split('twitter.com/').last %>">+<% end %>+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:title" content="<%= h(og_title) %>">+<meta name="twitter:description" content="<%= h(og_description) %>">diff --git a/storefront/bin/rails b/storefront/bin/railsnew file mode 100755index 0000000000..bf491ca848--- /dev/null+++ b/storefront/bin/rails@@ -0,0 +1,10 @@+#!/usr/bin/env ruby+ENGINE_ROOT = File.expand_path('..', __dir__)+ENGINE_PATH = File.expand_path('../lib/spree/storefront/engine', __dir__)++# Set up gems listed in the Gemfile.+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __dir__)++require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])+require "rails/all"+require "rails/engine/commands"diff --git a/storefront/spec/controllers/spree/wishlists_controller_spec.rb b/storefront/spec/controllers/spree/wishlists_controller_spec.rbindex c6ea432d32..15f373941c 100644--- a/storefront/spec/controllers/spree/wishlists_controller_spec.rb+++ b/storefront/spec/controllers/spree/wishlists_controller_spec.rb@@ -12,6 +12,8 @@ describe Spree::WishlistsController, type: :controller doallow(controller).to receive(:spree_login_path).and_return('/login')end+ render_views+describe '#show' docontext 'when wishlist id and token are provided' dosubject { get :show, params: { id: wishlist.id, token: wishlist.token } }