This commit is contained in:
2024-01-31 12:05:22 +07:00
135 changed files with 9489 additions and 150 deletions

View File

@@ -0,0 +1,44 @@
const RowExpand = (function (){
const $status_expand_all = $("#js-row-expand-all");
let track_open_rows = [];
function open_child_row(child_class_name){
const $children = $(`.${child_class_name}`);
if(!track_open_rows.includes(child_class_name)) {
$children.css('display', 'table-row');
track_open_rows.push(child_class_name);
}else{
$children.css('display', 'none');
track_open_rows = [...Util.removeItemFromArray(track_open_rows, child_class_name)];
}
}
function open_all_row(){
if(!track_open_rows.includes('expand_all')) {
$(".row").css('display', 'table-row');
track_open_rows.push('expand_all');
$status_expand_all.html("[-]");
}else{
// collapse all
$(".row").css('display', 'none');
// open only first parent
$(".parent_0").css('display', 'table-row');
track_open_rows = [];
$status_expand_all.html("[+]");
}
}
return {
open_child: open_child_row,
open_all: open_all_row
}
})();

View File

@@ -39,6 +39,19 @@ input[type=number] {
-moz-appearance: textfield;
}
input[type=date]::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}
body {
color: #000;
font-family: "Inter", sans-serif;
@@ -353,7 +366,7 @@ a {
height: 41px;
display: none;
}
.admin-menu .item:nth-child(n+13) .sub-menu {
.admin-menu .item:nth-child(n+10) .sub-menu {
top: unset;
}
.admin-menu .sub-menu {
@@ -808,6 +821,14 @@ input[type=radio]:focus:before {
background-position: -145px -82px;
}
.order-detail-page .icon-edit {
border: transparent;
background-color: transparent;
margin: 0;
width: 18px;
height: 18px;
}
.is-close-btn {
background: #ececec !important;
border-radius: 50%;
@@ -859,6 +880,10 @@ input[type=radio]:focus:before {
content: none;
}
.marketing-coupon-page .order-page-table td {
vertical-align: top;
}
.table-brand th {
padding: 7px 5px;
background: #f6f6f6;

File diff suppressed because one or more lines are too long

View File

@@ -32,6 +32,18 @@ input::-webkit-inner-spin-button {
input[type="number"] {
-moz-appearance: textfield;
}
input[type='date']::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}
body {
color: #000;
font-family: "Inter", sans-serif;
@@ -340,7 +352,7 @@ a {
height: 41px;
display: none;
}
&:nth-child(n + 13) {
&:nth-child(n + 10) {
.sub-menu {
top: unset;
}
@@ -827,6 +839,15 @@ input[type="radio"] {
background-position: -145px -82px;
}
}
.order-detail-page{
.icon-edit {
border: transparent;
background-color: transparent;
margin: 0;
width: 18px;
height: 18px;
}
}
.is-close-btn {
background: #ececec !important;
border-radius: 50%;
@@ -877,6 +898,11 @@ input[type="radio"] {
}
}
}
.marketing-coupon-page {
.order-page-table td {
vertical-align: top;
}
}
.table-brand {
th {