Restore to commit 74e578279624c6045ca440a3459ebfa1f8d54191

This commit is contained in:
southseact-3d
2026-02-07 20:32:41 +00:00
commit ed67b7741b
252 changed files with 99814 additions and 0 deletions

View File

@@ -0,0 +1,439 @@
/* FAQ Manager Admin Styles */
.pc-faq-manager-admin {
max-width: 1200px;
margin: 0 auto;
}
/* Header Section */
.pc-faq-manager-header {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 20px;
margin: 20px 0;
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
border: 1px solid #e5e5e5;
}
.pc-faq-manager-stats .stat-card {
background: #fff;
padding: 20px;
border-radius: 6px;
border: 1px solid #ddd;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.stat-number {
font-size: 2.5em;
font-weight: 600;
color: #0073aa;
line-height: 1;
margin-bottom: 5px;
}
.stat-label {
color: #666;
font-size: 0.9em;
}
.pc-faq-manager-instructions h3 {
margin-top: 0;
margin-bottom: 10px;
color: #23282d;
}
.pc-faq-manager-instructions ul {
margin: 0;
padding-left: 20px;
}
.pc-faq-manager-instructions li {
margin-bottom: 5px;
color: #444;
}
/* FAQ List */
.pc-faq-manager-list {
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.pc-faq-manager-list-header {
display: grid;
grid-template-columns: 40px 1fr 1fr 150px;
background: #fcfcfc;
border-bottom: 1px solid #e5e5e5;
padding: 12px 16px;
font-weight: 600;
color: #23282d;
}
.pc-faq-manager-items {
max-height: 600px;
overflow-y: auto;
}
.pc-faq-item {
display: grid;
grid-template-columns: 40px 1fr 1fr 150px;
padding: 16px;
border-bottom: 1px solid #f0f0f0;
align-items: start;
transition: background-color 0.2s ease;
}
.pc-faq-item:hover {
background-color: #f9f9f9;
}
.pc-faq-item:last-child {
border-bottom: none;
}
.sort-handle {
display: flex;
align-items: center;
justify-content: center;
cursor: move;
color: #666;
font-size: 14px;
}
.sort-handle:hover {
color: #0073aa;
}
.faq-content h4 {
margin: 0 0 5px 0;
font-size: 14px;
font-weight: 600;
color: #23282d;
line-height: 1.3;
}
.faq-excerpt {
font-size: 12px;
color: #666;
line-height: 1.4;
}
.faq-content {
color: #444;
font-size: 13px;
line-height: 1.4;
}
.faq-actions {
display: flex;
flex-direction: column;
gap: 8px;
}
.faq-actions .button {
padding: 6px 12px;
font-size: 12px;
line-height: 1.4;
height: auto;
white-space: nowrap;
}
.faq-actions .dashicons {
font-size: 14px;
margin-right: 4px;
vertical-align: middle;
}
/* Draggable state */
.pc-faq-manager-items.ui-sortable .pc-faq-item {
cursor: move;
}
.pc-faq-manager-items.ui-sortable-helper {
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
opacity: 0.9;
}
.pc-faq-manager-items.ui-sortable-placeholder {
background: #f0f6fc;
border: 2px dashed #0073aa;
margin: 4px 16px;
border-radius: 4px;
}
/* Footer */
.pc-faq-manager-footer {
display: flex;
align-items: center;
gap: 15px;
margin-top: 20px;
padding: 15px 0;
}
.pc-faq-save-status {
font-size: 13px;
color: #666;
}
.pc-faq-save-status.saving {
color: #f0ad4e;
}
.pc-faq-save-status.saved {
color: #5cb85c;
}
.pc-faq-save-status.error {
color: #d9534f;
}
/* Empty State */
.pc-faq-manager-empty {
text-align: center;
padding: 60px 20px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 6px;
}
.pc-faq-manager-empty-icon {
font-size: 48px;
color: #666;
margin-bottom: 20px;
}
.pc-faq-manager-empty h2 {
margin: 0 0 15px 0;
color: #23282d;
}
.pc-faq-manager-empty p {
margin: 0 0 20px 0;
color: #666;
font-size: 14px;
}
/* Add Form */
.pc-faq-manager-add-form {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}
.pc-faq-form-container {
background: #fff;
padding: 25px;
border: 1px solid #e5e5e5;
border-radius: 6px;
}
.pc-faq-form-container h2 {
margin-top: 0;
margin-bottom: 25px;
color: #23282d;
}
.form-field {
margin-bottom: 20px;
}
.form-field label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #23282d;
}
.form-field input[type="text"],
.form-field textarea {
width: 100%;
}
.form-field .description {
margin-top: 8px;
font-size: 12px;
color: #666;
font-style: italic;
}
.wp-editor-container {
border: 1px solid #ddd;
}
/* Help Section */
.pc-faq-manager-help {
display: flex;
flex-direction: column;
gap: 20px;
}
.help-card {
background: #fff;
padding: 20px;
border: 1px solid #e5e5e5;
border-radius: 6px;
}
.help-card h3 {
margin-top: 0;
margin-bottom: 15px;
color: #23282d;
}
.help-card ul {
margin: 0;
padding-left: 20px;
}
.help-card li {
margin-bottom: 8px;
color: #444;
font-size: 14px;
}
.help-card code {
background: #f5f5f5;
padding: 4px 8px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 13px;
}
/* Modal */
.pc-faq-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100000;
}
.pc-faq-modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 99999;
}
.pc-faq-modal-content {
position: relative;
background: #fff;
margin: 50px auto;
max-width: 700px;
max-height: 80vh;
overflow-y: auto;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
z-index: 100001;
}
.pc-faq-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 25px;
border-bottom: 1px solid #e5e5e5;
background: #fcfcfc;
border-radius: 8px 8px 0 0;
}
.pc-faq-modal-header h2 {
margin: 0;
color: #23282d;
}
.pc-faq-modal-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #666;
padding: 0;
line-height: 1;
}
.pc-faq-modal-close:hover {
color: #d9534f;
}
.pc-faq-modal-body {
padding: 25px;
}
.pc-faq-modal-footer {
display: flex;
justify-content: flex-end;
gap: 15px;
padding: 20px 25px;
border-top: 1px solid #e5e5e5;
background: #fcfcfc;
border-radius: 0 0 8px 8px;
}
/* Notice styling */
.notice.is-dismissible {
margin-top: 20px;
}
/* Responsive Design */
@media screen and (max-width: 1200px) {
.pc-faq-manager-admin {
max-width: 100%;
}
}
@media screen and (max-width: 980px) {
.pc-faq-manager-header {
grid-template-columns: 1fr;
}
.pc-faq-manager-add-form {
grid-template-columns: 1fr;
}
.pc-faq-manager-list-header,
.pc-faq-item {
grid-template-columns: 40px 1fr 80px;
}
.faq-answer {
display: none;
}
}
@media screen and (max-width: 600px) {
.pc-faq-manager-list-header,
.pc-faq-item {
grid-template-columns: 30px 1fr;
}
.faq-actions {
grid-column: 1 / -1;
flex-direction: row;
margin-top: 10px;
}
.sort-handle {
font-size: 12px;
}
.pc-faq-modal-content {
margin: 10px;
max-height: 90vh;
}
.pc-faq-modal-header,
.pc-faq-modal-body,
.pc-faq-modal-footer {
padding: 15px 20px;
}
}