clean build for version 1.4.5 with fixes of security funtionalities, logic branches, etc. Already tested and working fine

This commit is contained in:
dwindown
2026-01-07 15:10:47 +07:00
parent 31b3398c2f
commit 0ba62b435a
26 changed files with 8962 additions and 2804 deletions

View File

@@ -1,5 +1,6 @@
#checker_preview.postbox {
display:none;
/* Preview metabox is now visible */
#dw_checker_preview.postbox {
display: block;
}
li#menu-posts-checker img {
width: 18px;
@@ -12,15 +13,17 @@ li#menu-posts-checker img {
margin-top: 0;
}
label#title-prompt-text {
padding: 3px 8px!important;
padding: 3px 8px !important;
}
.inset {
box-shadow: inset 3px 3px 15px #33333350, inset -3px -3px 5px #ffffff!important;
border-radius: .5rem;
padding: 1rem!important;
box-shadow:
inset 3px 3px 15px #33333350,
inset -3px -3px 5px #ffffff !important;
border-radius: 0.5rem;
padding: 1rem !important;
}
.inset .card:first-child {
margin-top: 0!important;
margin-top: 0 !important;
}
/* .repeater-form-field .card:first-child .delete-form-card {
display:none;
@@ -52,43 +55,44 @@ table.checker-setting th {
/* box-shadow: 0px 5px 15px -5px #333333; */
}
.dw-checker-title {
font-size:24px;
font-size: 24px;
font-weight: bold;
}
.dw-checker-field {
display: flex;
flex-direction: column;
margin: .5em 0;
margin: 0.5em 0;
}
.dw-checker-field > label {
font-weight: 600;
}
.dw-checker-field > input, .dw-checker-field > select {
.dw-checker-field > input,
.dw-checker-field > select {
height: 38px;
border-radius: .5em;
border-radius: 0.5em;
border: 1px solid #ccc;
padding-left: 1em;
padding-right: 1em;
}
.dw-checker-buttons {
display: flex;
gap: .5em;
gap: 0.5em;
flex: 0 1 fit-content;
}
.dw-checker-wrapper button {
padding: .65em .75em;
padding: 0.65em 0.75em;
border: none;
border-radius: 0.5em;
}
.dw-checker-result-div-item {
border-bottom-style: solid;
padding: .5em 0;
padding: 0.5em 0;
}
.card-buttons {
top: 1em;
right: -1em;
}
input[type=color] {
input[type="color"] {
height: 34px;
}
li.list-group-item.option-nav-menu.mb-0.pointer.active {
@@ -101,9 +105,9 @@ li.list-group-item.option-nav-menu.mb-0.pointer {
color: white;
}
.form-check {
display: flex!important;
display: flex !important;
align-items: center;
gap: .5em;
gap: 0.5em;
}
.form-check-input:checked {
@@ -119,20 +123,20 @@ table.dw-checker-result-table {
width: 100%;
}
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results td {
border-style: solid;
}
.dw-checker-results th,
.dw-checker-results td {
padding: .75em .5em;
padding: 0.75em 0.5em;
}
.dw-checker-value-button {
border: none;
border-radius: .5em;
padding: .5em 1em;
border-radius: 0.5em;
padding: 0.5em 1em;
text-decoration: none;
}
.result-header {
@@ -142,10 +146,10 @@ table.dw-checker-result-table {
border-bottom-style: solid;
display: flex;
flex-direction: column;
gap: .5em;
padding: .75em 0;
gap: 0.5em;
padding: 0.75em 0;
}
.dw-checker-result-div:last-child{
.dw-checker-result-div:last-child {
border: none;
}
@@ -153,20 +157,27 @@ table.dw-checker-result-table {
.dw-checker-container {
flex-direction: column;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) > *:is(:first-child, :nth-child(2)) {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
> *:is(:first-child, :nth-child(2)) {
flex: 0 0 100%;
margin-bottom: 10px;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) > .dw-checker-divider {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
> .dw-checker-divider {
display: none;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-form-fields {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-form-fields {
display: flex;
gap: 9px;
flex-direction: row;
@@ -174,19 +185,29 @@ table.dw-checker-result-table {
flex: 1 1 calc(100% - 110px);
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-title {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-title {
margin-bottom: 0;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-buttons.dw-checker-form-button button {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-buttons.dw-checker-form-button
button {
height: 100%;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-field {
margin: 0!important;
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-field {
margin: 0 !important;
flex: -1 0 calc(25% - 3px);
width: 100%;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-form-fields *:is(select, input) {
min-width: unset!important;
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-form-fields
*:is(select, input) {
min-width: unset !important;
max-width: 100%;
width: 100%;
}
@@ -223,7 +244,8 @@ table.dw-checker-result-table {
color: #333;
}
.dw-card-title, .dw-card-value {
.dw-card-title,
.dw-card-value {
word-break: break-all;
}
@@ -278,28 +300,314 @@ table.dw-standard-table {
min-width: max-content; /* Ensure table expands to fit content */
border-collapse: collapse; /* Remove gaps between borders */
display: block; /* Ensure proper rendering */
table-layout: fixed; /* Prevent misalignment */
table-layout: fixed; /* Use fixed layout for better width control */
max-width: 100%; /* Prevent table from exceeding container */
}
th, td {
white-space: nowrap; /* Prevent text wrapping */
padding: 8px; /* Add padding for readability */
border: 1px solid #ddd; /* Add borders for clarity */
/* DataTables specific styling */
table.dataTable {
width: 100% !important;
table-layout: fixed !important;
border-collapse: collapse;
border-spacing: 0;
}
table.dataTable thead th {
text-align: left !important;
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
padding: 12px 15px;
font-weight: 600;
white-space: nowrap;
width: auto !important;
overflow: hidden;
text-overflow: ellipsis;
}
table.dataTable tbody td {
text-align: left !important;
padding: 12px 15px;
border-bottom: 1px solid #dee2e6;
white-space: nowrap;
width: auto !important;
overflow: hidden;
text-overflow: ellipsis;
}
/* Ensure proper table container width */
.dw-checker-results-container,
#dw-checker-outside-results {
overflow-x: auto; /* Enable horizontal scrolling when needed */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
padding: 0;
margin: 0;
width: 100%;
max-width: 100%;
}
#dw-checker-outside-results {
max-width: 100%;
padding: 1em;
}
/* DataTables container styling */
.dt-container {
width: 100%;
overflow: hidden;
border-collapse: collapse;
}
/* Table wrapper styling */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
width: 100%;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
/* Row styling */
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
/* Empty state styling */
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
font-style: italic;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
table.dataTable thead th,
table.dataTable tbody td {
padding: 8px 10px;
font-size: 14px;
}
.dt-container {
width: 100%;
overflow-x: auto;
}
}
/* Ensure proper table container width */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
min-width: 100%;
}
/* Ensure table fits within container */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
/* Make sure the table doesn't overflow its container */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
}
/* Ensure proper width distribution */
table.dataTable {
width: 100% !important;
table-layout: auto !important;
}
table.dataTable thead th {
white-space: nowrap;
}
table.dataTable tbody td {
white-space: nowrap;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
/* DataTables specific styling */
table.dataTable thead th {
text-align: left !important;
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
padding: 12px 8px;
font-weight: 600;
}
table.dataTable tbody td {
text-align: left !important;
padding: 8px 8px;
border-bottom: 1px solid #dee2e6;
}
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
}
/* Ensure proper width distribution */
table.dataTable {
width: 100% !important;
table-layout: auto !important;
}
table.dataTable thead th {
white-space: nowrap;
}
table.dataTable tbody td {
white-space: nowrap;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
padding: 0!important;
padding: 0 !important;
background-color: unset;
}
.dw-checker-container:has(.dt-container) select#dt-length-2 {
width: 50px;
margin-right: 10px;
border-radius: 8px!important;
border-radius: 8px !important;
}
.dw-checker-container:has(.dt-container) button.dt-paging-button {
border-radius: 8px!important;
border-radius: 8px !important;
}
.dw-cards-container > .result-page {
@@ -314,4 +622,4 @@ th, td {
.dw-cards-container > .result-page {
grid-template-columns: var(--card-output-grid-column-mobile);
}
}
}