This commit is contained in:
2026-03-28 11:33:56 +01:00
parent 412e235512
commit aa8e21862d
132 changed files with 24381 additions and 10882 deletions

View File

@@ -0,0 +1,229 @@
/* ==========================================================================
Order Details — Mobile Responsive
Scoped to .od-actions and .order-details
All rules inside @media (max-width: 767px) — desktop layout untouched
========================================================================== */
@media (max-width: 767px) {
/* --- 1. Action buttons bar --- */
.od-actions {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 6px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 8px;
}
.od-actions .btn {
flex-shrink: 0;
font-size: 12px;
padding: 6px 10px;
margin-right: 0 !important;
margin-left: 0 !important;
}
/* Hide button labels on small screens — show only icons */
.od-actions .od-actions-label {
display: none;
}
/* Integrations dropdown — push to end, cancel float */
.od-actions .pull-right,
.od-actions .dropdown.pull-right {
float: none !important;
margin-left: auto;
}
/* Dropdown menu must not clip inside scroll container */
.od-actions .dropdown {
position: static;
}
.od-actions + .order-details .dropdown-menu,
#integrationsDropdownMenu.show {
position: fixed;
top: auto;
bottom: 0;
left: 0;
right: 0;
width: 100%;
max-width: 100%;
border-radius: 12px 12px 0 0;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
z-index: 1060;
padding: 10px 0;
}
#integrationsDropdownMenu.show .dropdown-item {
padding: 12px 20px;
font-size: 14px;
}
/* --- 2. Full-width columns stacking --- */
.order-details .col-sm-6,
.order-details .col-lg-8,
.order-details .col-lg-4,
.order-details .col-xl-5,
.order-details .col-xl-7 {
width: 100%;
flex: 0 0 100%;
max-width: 100%;
}
/* Spacing between stacked sections */
.order-details .col-sm-6 {
margin-bottom: 15px;
}
/* "Resend confirmation" button — allow text to wrap */
.order-details .resend_order_confirmation_email .btn {
font-size: 12px;
white-space: normal;
text-align: left;
}
/* --- 3. Status section --- */
.order-details .status_select #order-status {
max-width: 100%;
width: 100%;
}
.order-details .buttons {
display: flex;
flex-direction: column;
gap: 8px;
}
.order-details .buttons .btn {
width: 100%;
white-space: normal;
font-size: 13px;
}
.order-details .order-status {
font-size: 16px;
}
.order-details .order-history {
margin-top: 10px;
}
/* --- 4. Products table — compact list --- */
.order-details table thead {
display: none;
}
.order-details table {
border: none;
}
.order-details table tbody {
display: block;
}
.order-details table tr.order-product-details {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
padding: 12px 0;
border-bottom: 1px solid #eee;
gap: 0;
}
.order-details table tr.order-product-details:last-child {
border-bottom: none;
}
/* Image cell */
.order-details table td.product-image {
width: 60px;
height: 60px;
flex-shrink: 0;
border: none;
padding: 0;
margin-right: 10px;
float: none;
}
.order-details table td.product-image img {
width: 60px;
height: 60px;
object-fit: contain;
}
/* Name cell — takes remaining space next to image */
.order-details table tr.order-product-details td:nth-child(2) {
flex: 1 1 0;
min-width: 0;
border: none;
padding: 0;
white-space: normal;
}
.order-details table tr.order-product-details td:nth-child(2) a {
font-weight: 600;
font-size: 13px;
display: block;
word-break: break-word;
}
/* Hide quantity, price, discounted-price, total columns on mobile */
.order-details table tr.order-product-details td.tab-center,
.order-details table tr.order-product-details td.tab-right {
display: none;
}
/* Show mobile price summary line */
.od-mobile-price-line {
display: block !important;
margin-top: 4px;
font-size: 13px;
font-weight: 600;
color: #2a3042;
}
/* --- 5. Notes --- */
.order-details #notes {
font-size: 14px;
min-height: 120px;
}
/* --- 6. Order summary panel --- */
.order-details .panel .panel-body {
font-size: 13px;
}
/* --- 7. Paid status --- */
.order-details .paid-status .panel-body a {
display: flex;
align-items: center;
gap: 10px;
}
/* --- 8. Message section — hide empty spacer columns --- */
.order-details .d-none.d-lg-block {
display: none !important;
}
}
/* --- Desktop: action bar spacing (replaces mr5 class) --- */
.od-actions .btn + .btn,
.od-actions .btn + .dropdown {
margin-left: 5px;
}
/* Mobile price line — hidden on desktop */
.od-mobile-price-line {
display: none;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,210 @@
.table-list-table th,
.table-list-table td {
vertical-align: middle !important;
}
.table-list-table th.text-right,
.table-list-table td.text-right {
display: table-cell !important;
text-align: right !important;
justify-content: initial !important;
align-items: initial !important;
}
.table-list-table th:first-child,
.table-list-table td:first-child {
width: 70px;
white-space: nowrap;
}
.js-table-filters-form .js-filter-compact-select {
width: 100%;
min-width: 0;
max-width: none;
}
.table-list-table th.table-col-compact,
.table-list-table td.table-col-compact {
width: 120px;
min-width: 120px;
white-space: nowrap;
}
.table-list-per-page-form {
display: inline-flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
}
.jconfirm.table-list-confirm-dialog .jconfirm-row {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.jconfirm.table-list-confirm-dialog .jconfirm-box-container {
width: 100%;
max-width: 560px;
padding-left: 12px;
padding-right: 12px;
margin: 0 auto;
}
.jconfirm.table-list-confirm-dialog .jconfirm-box {
width: 100% !important;
}
/* --- Filter toggle --- */
.table-filters-wrapper {
display: none;
overflow: hidden;
}
.table-filters-wrapper.open {
display: block;
}
.js-filter-toggle-btn.active {
background-color: #e8e8e8;
border-color: #adadad;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.table-filter-badge {
display: inline-block;
min-width: 16px;
padding: 2px 5px;
font-size: 10px;
font-weight: 700;
line-height: 1;
color: #fff;
background-color: #337ab7;
border-radius: 10px;
margin-left: 3px;
}
/* --- Column visibility toggle --- */
.table-list-header-actions {
display: inline-flex;
align-items: center;
gap: 10px;
}
.table-col-toggle-wrapper {
position: relative;
display: inline-block;
}
.table-col-toggle-dropdown {
display: none;
position: absolute;
right: 0;
top: 100%;
z-index: 1050;
min-width: 220px;
max-height: 400px;
overflow-y: auto;
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
padding: 0;
margin-top: 4px;
}
.table-col-toggle-dropdown.open {
display: block;
}
.table-col-toggle-header {
padding: 8px 12px;
font-weight: 600;
font-size: 12px;
color: #555;
border-bottom: 1px solid #eee;
background: #f8f8f8;
}
.table-col-toggle-item {
display: flex;
align-items: center;
padding: 5px 12px;
margin: 0;
font-weight: normal;
cursor: pointer;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
gap: 10px;
}
.table-col-toggle-item:hover {
background: #f5f5f5;
}
.table-col-toggle-footer {
padding: 6px 12px;
border-top: 1px solid #eee;
background: #f8f8f8;
text-align: center;
}
.table-list-table th.table-col-hidden,
.table-list-table td.table-col-hidden {
display: none;
}
/* Toggle switch */
.table-col-switch {
position: relative;
display: inline-block;
width: 34px;
min-width: 34px;
height: 18px;
}
.table-col-switch input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.table-col-switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
border-radius: 18px;
transition: background-color 0.2s;
}
.table-col-switch-slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 2px;
bottom: 2px;
background-color: #fff;
border-radius: 50%;
transition: transform 0.2s;
}
.table-col-switch input:checked + .table-col-switch-slider {
background-color: #5cb85c;
}
.table-col-switch input:checked + .table-col-switch-slider:before {
transform: translateX(16px);
}

View File

@@ -455,23 +455,14 @@ body {
}
.site-content {
&.with-menu {
width: 100%;
@include respond-above(xs) {
width: calc(100% - 243px);
margin-left: 243px;
}
}
@include respond-below(md) {
margin-left: 0;
}
margin-left: 0;
background-color: #fff;
margin-left: 244px;
@include respond-above(xs) {
width: calc(100% - 243px);
margin-left: 243px;
}
.top-user {
text-align: right;
@@ -827,7 +818,7 @@ body {
td {
border-color: $cHoverBackground;
a {
a:not(.btn) {
transition: .15s ease;
&:hover {
@@ -1351,39 +1342,6 @@ li.sort-collapsed.sort-hover div {
}
}
input[type="checkbox"] {
position: relative;
width: 40px;
height: 20px;
-webkit-appearance: none;
background: $cGrayLight;
outline: none;
border-radius: 10px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
}
input:checked[type="checkbox"] {
background: $cMenuText;
}
input[type="checkbox"]:before {
content: '';
position: absolute;
width: 20px;
height: 20px;
border-radius: 10px;
top: 0;
left: 0;
background: #fff;
transform: scale(1.1);
box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
transition: .5s;
}
input:checked[type="checkbox"]:before {
left: 20px;
}
#images-uploader,
#files-uploader {
clear: both;
@@ -1726,7 +1684,7 @@ input:checked[type="checkbox"]:before {
text-align: right;
}
a {
a:not(.btn) {
color: $cBlue;
transition: .15s ease;
font-weight: 500;
@@ -1736,6 +1694,24 @@ input:checked[type="checkbox"]:before {
}
}
a.btn {
color: #fff;
&:hover,
&:focus {
color: #fff;
}
}
a.btn-default {
color: #000;
&:hover,
&:focus {
color: #000;
}
}
thead {
background-color: $cHoverBackground;
@@ -1765,33 +1741,16 @@ input:checked[type="checkbox"]:before {
}
}
#table-products {
.product-categories {
display: block;
width: 100%;
text-wrap: wrap;
}
.product-categories {
display: block;
width: 100%;
text-wrap: wrap;
.product-name {
display: flex;
justify-content: space-between;
.duplicate-product {
margin-left: 15px;
}
}
.duplicate-product {
float: right;
font-size: 13px;
}
.btn-success {
color: #FFF !important;
&.btn-create-product {
margin-top: 5px;
}
&--cats {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 600px;
}
}
@@ -2119,6 +2078,10 @@ textarea.form-control {
}
.order-details {
.fa-copy {
cursor: pointer !important;
}
.paid-status {
margin-top: 10px;