forked from brooksbingham/theme-elegance
refactor: initial styling for the checkout page
parent
54e6b7d13d
commit
17e80bd6c3
|
@ -18,14 +18,14 @@ a:hover {
|
|||
@apply underline-offset-2;
|
||||
}
|
||||
|
||||
.icon-tabler {
|
||||
.ti, .icon-tabler {
|
||||
stroke-width: 1px;
|
||||
fill: none;
|
||||
@apply text-gray-500;
|
||||
@apply stroke-gray-500;
|
||||
}
|
||||
|
||||
a:hover .icon-tabler {
|
||||
a:hover .ti, a:hover .icon-tabler {
|
||||
@apply stroke-blue-900;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,12 +63,14 @@ function toggleImage() {
|
|||
});
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
$(function() {
|
||||
if ($('body#checkout').length === 1) {
|
||||
setUpCheckout();
|
||||
toggleImage();
|
||||
}
|
||||
|
||||
$('.tabs').simpletabs()
|
||||
|
||||
prestashop.on('updatedDeliveryForm', (params) => {
|
||||
if (typeof params.deliveryOption === 'undefined' || params.deliveryOption.length === 0) {
|
||||
return;
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
import $ from 'jquery'
|
||||
|
||||
var simpletabspluginname = 'simpletabs'
|
||||
function SimpleTabsPlugin(element, options) {
|
||||
this.$el = $(element)
|
||||
this.$tabs = []
|
||||
this.init()
|
||||
}
|
||||
|
||||
$.extend(SimpleTabsPlugin.prototype, {
|
||||
init() {
|
||||
var self = this
|
||||
this.$tabs = []
|
||||
this.$el.find('ul > li > a').each(function() {
|
||||
var $a = $(this)
|
||||
var id = $a.attr('href')
|
||||
if ( id.startsWith('#') ) {
|
||||
id = id.replace('#', '')
|
||||
var exists = self.$tabs.find(function(element) {
|
||||
return element === id
|
||||
})
|
||||
var contentselector = '#' + id + '.tabs-content'
|
||||
var content = self.$el.find(contentselector)
|
||||
if ( exists ) {
|
||||
exists.tab = $a
|
||||
exists.content = content
|
||||
} else {
|
||||
self.$tabs.push({
|
||||
id: id,
|
||||
tab: $a,
|
||||
content: content
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
self.$tabs.forEach(function(element) {
|
||||
if (!element.tab.hasClass('active')) {
|
||||
self.hide(element.id)
|
||||
} else {
|
||||
self.show(element.id)
|
||||
}
|
||||
|
||||
element.tab.click(function(event) {
|
||||
event.preventDefault()
|
||||
self.show(element.id)
|
||||
})
|
||||
})
|
||||
},
|
||||
show(id) {
|
||||
var self = this
|
||||
this.$tabs.forEach(function( element ) {
|
||||
self.hide(element.id)
|
||||
if ( element.id === id ) {
|
||||
element.tab.addClass('active').addClass('font-bold')
|
||||
element.content.removeClass('hidden')
|
||||
}
|
||||
})
|
||||
},
|
||||
hide(id) {
|
||||
this.$tabs.forEach(function( element ) {
|
||||
if ( element.id === id ) {
|
||||
element.tab.removeClass('active').removeClass('font-bold')
|
||||
element.content.addClass('hidden')
|
||||
}
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
$.fn.simpletabs = function(options) {
|
||||
this.each(function() {
|
||||
if ( !$.data(this, 'plugin_' + simpletabspluginname)) {
|
||||
$.data(this, 'plugin_' + simpletabspluginname, new SimpleTabsPlugin(this, options))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -27,6 +27,7 @@ import "jquery-offcanvas/dist/jquery.offcanvas.min.css";
|
|||
import touchspin from "bootstrap-touchspin";
|
||||
import "jquery-touchswipe";
|
||||
import "./selectors";
|
||||
import './tabs.js';
|
||||
|
||||
import "./responsive";
|
||||
import "./checkout";
|
||||
|
|
|
@ -434,6 +434,177 @@ video {
|
|||
display: none;
|
||||
}
|
||||
|
||||
[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
background-color: #fff;
|
||||
border-color: #6b7280;
|
||||
border-width: 1px;
|
||||
border-radius: 0px;
|
||||
padding-top: 0.5rem;
|
||||
padding-right: 0.75rem;
|
||||
padding-bottom: 0.5rem;
|
||||
padding-left: 0.75rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5rem;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
}
|
||||
|
||||
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
|
||||
outline: 2px solid transparent;
|
||||
outline-offset: 2px;
|
||||
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: #2563eb;
|
||||
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
||||
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||
border-color: #2563eb;
|
||||
}
|
||||
|
||||
input::-moz-placeholder, textarea::-moz-placeholder {
|
||||
color: #6b7280;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
input::placeholder,textarea::placeholder {
|
||||
color: #6b7280;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-date-and-time-value {
|
||||
min-height: 1.5em;
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
select {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
||||
background-position: right 0.5rem center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1.5em 1.5em;
|
||||
padding-right: 2.5rem;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
[multiple],[size]:where(select:not([size="1"])) {
|
||||
background-image: initial;
|
||||
background-position: initial;
|
||||
background-repeat: unset;
|
||||
background-size: initial;
|
||||
padding-right: 0.75rem;
|
||||
-webkit-print-color-adjust: unset;
|
||||
print-color-adjust: unset;
|
||||
}
|
||||
|
||||
[type='checkbox'],[type='radio'] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
padding: 0;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
background-origin: border-box;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
flex-shrink: 0;
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
color: #2563eb;
|
||||
background-color: #fff;
|
||||
border-color: #6b7280;
|
||||
border-width: 1px;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
}
|
||||
|
||||
[type='checkbox'] {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
[type='radio'] {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
[type='checkbox']:focus,[type='radio']:focus {
|
||||
outline: 2px solid transparent;
|
||||
outline-offset: 2px;
|
||||
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
|
||||
--tw-ring-offset-width: 2px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: #2563eb;
|
||||
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
||||
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
||||
}
|
||||
|
||||
[type='checkbox']:checked,[type='radio']:checked {
|
||||
border-color: transparent;
|
||||
background-color: currentColor;
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
[type='checkbox']:checked {
|
||||
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' 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");
|
||||
}
|
||||
|
||||
[type='radio']:checked {
|
||||
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
|
||||
border-color: transparent;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
[type='checkbox']:indeterminate {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
|
||||
border-color: transparent;
|
||||
background-color: currentColor;
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
|
||||
border-color: transparent;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
[type='file'] {
|
||||
background: unset;
|
||||
border-color: inherit;
|
||||
border-width: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
font-size: unset;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
[type='file']:focus {
|
||||
outline: 1px solid ButtonText;
|
||||
outline: 1px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
*, ::before, ::after {
|
||||
--tw-border-spacing-x: 0;
|
||||
--tw-border-spacing-y: 0;
|
||||
|
@ -596,6 +767,10 @@ video {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.inset-0 {
|
||||
inset: 0px;
|
||||
}
|
||||
|
||||
.bottom-0 {
|
||||
bottom: 0px;
|
||||
}
|
||||
|
@ -608,8 +783,8 @@ video {
|
|||
left: 0px;
|
||||
}
|
||||
|
||||
.left-\[-300px\] {
|
||||
left: -300px;
|
||||
.left-16 {
|
||||
left: 4rem;
|
||||
}
|
||||
|
||||
.left-\[100\%\] {
|
||||
|
@ -640,10 +815,6 @@ video {
|
|||
top: 50%;
|
||||
}
|
||||
|
||||
.top-4 {
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.top-full {
|
||||
top: 100%;
|
||||
}
|
||||
|
@ -652,8 +823,9 @@ video {
|
|||
z-index: 10;
|
||||
}
|
||||
|
||||
.z-30 {
|
||||
z-index: 30;
|
||||
.-mx-2 {
|
||||
margin-left: -0.5rem;
|
||||
margin-right: -0.5rem;
|
||||
}
|
||||
|
||||
.-mx-4 {
|
||||
|
@ -661,6 +833,11 @@ video {
|
|||
margin-right: -1rem;
|
||||
}
|
||||
|
||||
.-my-3 {
|
||||
margin-top: -0.75rem;
|
||||
margin-bottom: -0.75rem;
|
||||
}
|
||||
|
||||
.mx-4 {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
|
@ -690,6 +867,10 @@ video {
|
|||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.mb-16 {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
@ -698,10 +879,22 @@ video {
|
|||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.ml-4 {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.ml-6 {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.mr-4 {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.mr-auto {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.mt-1 {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
@ -726,6 +919,10 @@ video {
|
|||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.mt-4 {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.mt-8 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
@ -742,10 +939,18 @@ video {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.inline-flex {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.flow-root {
|
||||
display: flow-root;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
|
@ -770,8 +975,8 @@ video {
|
|||
height: 6rem;
|
||||
}
|
||||
|
||||
.h-5 {
|
||||
height: 1.25rem;
|
||||
.h-40 {
|
||||
height: 10rem;
|
||||
}
|
||||
|
||||
.h-5 {
|
||||
|
@ -798,6 +1003,10 @@ video {
|
|||
height: 100vh;
|
||||
}
|
||||
|
||||
.w-1\/2 {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.w-1\/4 {
|
||||
width: 25%;
|
||||
}
|
||||
|
@ -810,6 +1019,10 @@ video {
|
|||
width: 3.5rem;
|
||||
}
|
||||
|
||||
.w-16 {
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
.w-24 {
|
||||
width: 6rem;
|
||||
}
|
||||
|
@ -830,6 +1043,10 @@ video {
|
|||
width: 1.5rem;
|
||||
}
|
||||
|
||||
.w-64 {
|
||||
width: 16rem;
|
||||
}
|
||||
|
||||
.w-8 {
|
||||
width: 2rem;
|
||||
}
|
||||
|
@ -881,6 +1098,10 @@ video {
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
.list-\[square\] {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
.grid-cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
@ -933,6 +1154,10 @@ video {
|
|||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.gap-3 {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.gap-4 {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
@ -945,6 +1170,12 @@ video {
|
|||
gap: 2rem;
|
||||
}
|
||||
|
||||
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-space-x-reverse: 0;
|
||||
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
||||
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
||||
}
|
||||
|
||||
.overflow-y-auto {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
@ -963,21 +1194,45 @@ video {
|
|||
border-width: 1px;
|
||||
}
|
||||
|
||||
.border-t {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.border-blue-950 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(23 37 84 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-gray-200 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(229 231 235 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-gray-300 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-gray-900 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(17 24 39 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-red-100 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(254 226 226 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-gray-800 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(31 41 55 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.bg-blue-900 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(30 58 138 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-blue-950 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(23 37 84 / var(--tw-bg-opacity));
|
||||
|
@ -988,6 +1243,11 @@ video {
|
|||
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-gray-50 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-red-50 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(254 242 242 / var(--tw-bg-opacity));
|
||||
|
@ -998,6 +1258,11 @@ video {
|
|||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.object-contain {
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.object-cover {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
|
@ -1040,6 +1305,16 @@ video {
|
|||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.py-3 {
|
||||
padding-top: 0.75rem;
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.py-5 {
|
||||
padding-top: 1.25rem;
|
||||
padding-bottom: 1.25rem;
|
||||
|
@ -1050,6 +1325,15 @@ video {
|
|||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.px-8 {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.pb-12 {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.pl-2 {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
@ -1074,6 +1358,10 @@ video {
|
|||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.pt-6 {
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -1153,18 +1441,29 @@ video {
|
|||
color: rgb(23 37 84 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-gray-400 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(156 163 175 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-gray-50 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(249 250 251 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-gray-500 {
|
||||
.text-gray-600 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(107 114 128 / var(--tw-text-opacity));
|
||||
color: rgb(75 85 99 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-red-700\/50 {
|
||||
color: rgb(185 28 28 / 0.5);
|
||||
.text-gray-900 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(17 24 39 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-red-400 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(248 113 113 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.text-red-900 {
|
||||
|
@ -1191,12 +1490,20 @@ video {
|
|||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
||||
}
|
||||
|
||||
.filter {
|
||||
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
||||
.shadow-lg {
|
||||
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
||||
}
|
||||
|
||||
.duration-1000 {
|
||||
transition-duration: 1000ms;
|
||||
.shadow-xl {
|
||||
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
||||
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
||||
}
|
||||
|
||||
.filter {
|
||||
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -1214,12 +1521,12 @@ a {
|
|||
|
||||
a:hover {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(29 78 216 / var(--tw-text-opacity));
|
||||
color: rgb(30 58 138 / var(--tw-text-opacity));
|
||||
text-decoration-line: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.icon-tabler {
|
||||
.ti, .icon-tabler {
|
||||
stroke-width: 1px;
|
||||
fill: none;
|
||||
--tw-text-opacity: 1;
|
||||
|
@ -1227,10 +1534,24 @@ a:hover {
|
|||
stroke: #6b7280;
|
||||
}
|
||||
|
||||
a:hover .icon-tabler {
|
||||
a:hover .ti, a:hover .icon-tabler {
|
||||
stroke: #1e3a8a;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-position: inside !important;
|
||||
}
|
||||
|
||||
.hover\:bg-blue-800:hover {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(30 64 175 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.hover\:bg-blue-900:hover {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(30 58 138 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.hover\:stroke-2:hover {
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
@ -1240,6 +1561,11 @@ a:hover .icon-tabler {
|
|||
color: rgb(30 58 138 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.hover\:text-gray-500:hover {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(107 114 128 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.hover\:text-gray-950:hover {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(3 7 18 / var(--tw-text-opacity));
|
||||
|
@ -1278,13 +1604,13 @@ a:hover .icon-tabler {
|
|||
.sm\:flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.sm\:flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:left-1\/2 {
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.md\:flex {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -1305,10 +1631,6 @@ a:hover .icon-tabler {
|
|||
width: 6rem;
|
||||
}
|
||||
|
||||
.md\:w-1\/3 {
|
||||
width: 33.333333%;
|
||||
}
|
||||
|
||||
.md\:grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
@ -1328,6 +1650,21 @@ a:hover .icon-tabler {
|
|||
.md\:items-start {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.md\:object-cover {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.md\:text-2xl {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.md\:text-base {
|
||||
font-size: 1rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
|
@ -1335,10 +1672,6 @@ a:hover .icon-tabler {
|
|||
position: static;
|
||||
}
|
||||
|
||||
.lg\:left-0 {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
.lg\:right-0 {
|
||||
right: 0px;
|
||||
}
|
||||
|
@ -1355,6 +1688,14 @@ a:hover .icon-tabler {
|
|||
width: 33.333333%;
|
||||
}
|
||||
|
||||
.lg\:w-2\/5 {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.lg\:w-3\/5 {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.lg\:w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -1379,14 +1720,6 @@ a:hover .icon-tabler {
|
|||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.lg\:items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.lg\:justify-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.lg\:bg-transparent {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
@ -1400,9 +1733,25 @@ a:hover .icon-tabler {
|
|||
padding-top: 6rem;
|
||||
}
|
||||
|
||||
.lg\:text-4xl {
|
||||
font-size: 2.25rem;
|
||||
line-height: 2.5rem;
|
||||
}
|
||||
|
||||
.lg\:shadow-none {
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.xl\:w-1\/4 {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.xl\:text-6xl {
|
||||
font-size: 3.75rem;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -58,6 +58,7 @@
|
|||
{block name='stylesheets'}
|
||||
{include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}
|
||||
{/block}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.36.0/tabler-icons.min.css">
|
||||
|
||||
{block name='javascript_head'}
|
||||
{include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
|
||||
|
|
|
@ -29,14 +29,14 @@
|
|||
{/block}
|
||||
|
||||
{block name='cart_summary_products'}
|
||||
<div class="cart-summary-products">
|
||||
<div class="cart-summary-products flex items-center">
|
||||
|
||||
<p>{$cart.summary_string}</p>
|
||||
|
||||
<p>
|
||||
<a href="#" data-toggle="collapse" data-target="#cart-summary-product-list">
|
||||
{l s='show details' d='Shop.Theme.Actions'}
|
||||
<i class="material-icons">expand_more</i>
|
||||
<i class="ti ti-chevron-down"></i>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
{block "form_buttons"}
|
||||
<button
|
||||
class="continue btn btn-primary float-xs-right"
|
||||
class="continue p-2 px-8 bg-blue-950 hover:bg-blue-900 text-white uppercase"
|
||||
name="continue"
|
||||
data-link-action="register-new-customer"
|
||||
type="submit"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
{block name='form_buttons'}
|
||||
<button
|
||||
class="continue btn btn-primary float-xs-right"
|
||||
class="continue p-2 px-8 bg-blue-950 hover:bg-blue-900 text-white uppercase"
|
||||
name="continue"
|
||||
data-link-action="sign-in"
|
||||
type="submit"
|
||||
|
|
|
@ -32,12 +32,11 @@
|
|||
'js-current-step' => $step_is_current
|
||||
]|classnames}"
|
||||
>
|
||||
<h1 class="step-title h3">
|
||||
<i class="material-icons rtl-no-flip done"></i>
|
||||
<div class="step-title font-semibold p-2 border border-gray-800">
|
||||
<i class="ti ti-square"></i>
|
||||
<span class="step-number">{$position}</span>
|
||||
{$title}
|
||||
<span class="step-edit text-muted"><i class="material-icons edit">mode_edit</i> {l s='Edit' d='Shop.Theme.Actions'}</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
{block name='step_content'}DUMMY STEP CONTENT{/block}
|
||||
|
|
|
@ -1,12 +1,80 @@
|
|||
{extends file='checkout/_partials/steps/checkout-step.tpl'}
|
||||
|
||||
{block name='step_content'}
|
||||
{if $customer.is_logged && !$customer.is_guest}
|
||||
<div class="flex flex-col">
|
||||
<span class="identity">
|
||||
{l s='Connected as [1]%firstname% %lastname%[/1].'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='{$urls.pages.identity}'>",
|
||||
'[/1]' => "</a>",
|
||||
'%firstname%' => $customer.firstname,
|
||||
'%lastname%' => $customer.lastname
|
||||
]
|
||||
}
|
||||
</span>
|
||||
<span>
|
||||
{l
|
||||
s='Not you? [1]Log out[/1]'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='{$urls.actions.logout}'>",
|
||||
'[/1]' => "</a>"
|
||||
]
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
{else}
|
||||
<div class="flex w-full flex-col tabs">
|
||||
<ul class="tabs-list flex w-full">
|
||||
<li class="flex flex-1 p-4 items-center justify-center">
|
||||
<a
|
||||
class="nav-link {if !$show_login_form}active{/if}"
|
||||
data-toggle="tab"
|
||||
href="#checkout-guest-form"
|
||||
role="tab"
|
||||
aria-controls="checkout-guest-form"
|
||||
{if !$show_login_form} aria-selected="true"{/if}
|
||||
>
|
||||
{if $guest_allowed}
|
||||
{l s='Order as a guest' d='Shop.Theme.Checkout'}
|
||||
{else}
|
||||
{l s='Create an account' d='Shop.Theme.Customeraccount'}
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex flex-1 p-4 items-center justify-center">
|
||||
<a
|
||||
class="nav-link {if $show_login_form}active{/if}"
|
||||
data-link-action="show-login-form"
|
||||
data-toggle="tab"
|
||||
href="#checkout-login-form"
|
||||
role="tab"
|
||||
aria-controls="checkout-login-form"
|
||||
{if $show_login_form} aria-selected="true"{/if}
|
||||
>
|
||||
{l s='Sign in' d='Shop.Theme.Actions'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="checkout-guest-form" class="tabs-content w-full">
|
||||
{render file='checkout/_partials/customer-form.tpl' ui=$register_form guest_allowed=$guest_allowed}
|
||||
</div>
|
||||
<div id="checkout-login-form" class="tabs-content w-full">
|
||||
{render file='checkout/_partials/login-form.tpl' ui=$login_form}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{**
|
||||
{block name='step_content'}
|
||||
{hook h='displayPersonalInformationTop' customer=$customer}
|
||||
|
||||
{if $customer.is_logged && !$customer.is_guest}
|
||||
|
||||
<p class="identity">
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l s='Connected as [1]%firstname% %lastname%[/1].'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
sprintf=[
|
||||
|
@ -18,7 +86,6 @@
|
|||
}
|
||||
</p>
|
||||
<p>
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l
|
||||
s='Not you? [1]Log out[/1]'
|
||||
d='Shop.Theme.Customeraccount'
|
||||
|
@ -46,7 +113,6 @@
|
|||
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<ul class="nav nav-inline my-2" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a
|
||||
|
@ -96,3 +162,4 @@
|
|||
|
||||
{/if}
|
||||
{/block}
|
||||
*}
|
||||
|
|
|
@ -24,8 +24,10 @@
|
|||
*}
|
||||
{block name='step'}
|
||||
<section class="checkout-step -unreachable" id="{$identifier}">
|
||||
<h1 class="step-title h3">
|
||||
<span class="step-number">{$position}</span> {$title}
|
||||
</h1>
|
||||
<div class="step-title font-semibold p-2 border border-gray-800">
|
||||
<i class="ti ti-lock-square"></i>
|
||||
<span class="step-number">{$position}</span>
|
||||
{$title}
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
{block name='content'}
|
||||
|
||||
<section id="main" class="flex">
|
||||
<section id="main" class="container mx-auto flex">
|
||||
<div class="flex flex-col lg:flex-row gap-8 flex-1">
|
||||
|
||||
<!-- Left Block: cart product informations & shpping -->
|
||||
|
|
|
@ -22,73 +22,22 @@
|
|||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<!doctype html>
|
||||
<html lang="{$language.iso_code}">
|
||||
|
||||
<head>
|
||||
{block name='head'}
|
||||
{include file='_partials/head.tpl'}
|
||||
{/block}
|
||||
</head>
|
||||
|
||||
<body id="{$page.page_name}" class="{$page.body_classes|classnames}">
|
||||
|
||||
{block name='hook_after_body_opening_tag'}
|
||||
{hook h='displayAfterBodyOpeningTag'}
|
||||
{/block}
|
||||
|
||||
<header id="header">
|
||||
{block name='header'}
|
||||
{include file='checkout/_partials/header.tpl'}
|
||||
{/block}
|
||||
</header>
|
||||
|
||||
{block name='notifications'}
|
||||
{include file='_partials/notifications.tpl'}
|
||||
{/block}
|
||||
|
||||
<section id="wrapper">
|
||||
{hook h="displayWrapperTop"}
|
||||
<div class="container">
|
||||
|
||||
{block name='content'}
|
||||
<section id="content">
|
||||
<div class="row">
|
||||
<div class="cart-grid-body col-xs-12 col-lg-8">
|
||||
{block name='cart_summary'}
|
||||
{render file='checkout/checkout-process.tpl' ui=$checkout_process}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<div class="cart-grid-right col-xs-12 col-lg-4">
|
||||
|
||||
{block name='cart_summary'}
|
||||
{include file='checkout/_partials/cart-summary.tpl' cart = $cart}
|
||||
{/block}
|
||||
|
||||
{hook h='displayReassurance'}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
{extends file=$layout}
|
||||
{block name='content'}
|
||||
<section id="main" class="container mx-auto flex">
|
||||
<div class="flex flex-col lg:flex-row gap-8 flex-1">
|
||||
<!-- Left Block: cart product informations & shpping -->
|
||||
<div class="flex flex-col gap-4 w-full lg:w-3/5">
|
||||
{block name='cart_summary'}
|
||||
{render file='checkout/checkout-process.tpl' ui=$checkout_process}
|
||||
{/block}
|
||||
</div>
|
||||
{hook h="displayWrapperBottom"}
|
||||
</section>
|
||||
|
||||
<footer id="footer">
|
||||
{block name='footer'}
|
||||
{include file='checkout/_partials/footer.tpl'}
|
||||
{/block}
|
||||
</footer>
|
||||
|
||||
{block name='javascript_bottom'}
|
||||
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
|
||||
{/block}
|
||||
|
||||
{block name='hook_before_body_closing_tag'}
|
||||
{hook h='displayBeforeBodyClosingTag'}
|
||||
{/block}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<!-- Right Block: cart subtotal & cart total -->
|
||||
<div class="flex flex-col gap-4 w-full lg:w-2/5">
|
||||
{block name='cart_summary'}
|
||||
{include file='checkout/_partials/cart-summary.tpl' cart = $cart}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
|
|
Loading…
Reference in New Issue