Files
shopify-ai-backup/chat/templates/headers and footers/pc-head-and-foot/admin/css/admin-style.css
2026-02-09 18:09:12 +00:00

364 lines
6.7 KiB
CSS

/* File: admin/css/admin-style.css */
.pc-hfap-wrap {
max-width: 1200px;
margin: 20px auto;
}
.pc-hfap-wrap h1 {
color: #1d2327;
margin-bottom: 20px;
}
.pc-hfap-wrap .wp-heading-inline {
display: inline-block;
margin-right: 10px;
}
.pc-hfap-wrap .page-title-action {
margin-left: 4px;
padding: 4px 8px;
position: relative;
top: -3px;
text-decoration: none;
border: 1px solid #2271b1;
border-radius: 2px;
background: #f6f7f7;
color: #2271b1;
}
.pc-hfap-wrap .page-title-action:hover {
background: #f0f0f1;
border-color: #0a4b78;
color: #0a4b78;
}
/* Table Styles */
.pc-hfap-snippets-table {
margin: 20px 0;
background: #fff;
border: 1px solid #c3c4c7;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.pc-hfap-snippets-table table {
border: none;
box-shadow: none;
}
.pc-hfap-snippets-table th {
font-weight: 600;
color: #1d2327;
}
.pc-hfap-snippets-table td {
vertical-align: middle;
}
/* Location Badges */
.pc-hfap-location-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.pc-hfap-location-header {
background-color: #e8f4fd;
color: #135e96;
border: 1px solid #a8d4ff;
}
.pc-hfap-location-footer {
background-color: #f0f6fc;
color: #0a4b78;
border: 1px solid #b5d0ff;
}
/* Code Preview */
.pc-hfap-code-preview {
display: block;
background: #f6f7f7;
padding: 4px 8px;
border-radius: 3px;
border-left: 3px solid #72aee6;
font-family: 'Courier New', monospace;
font-size: 12px;
color: #50575e;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 300px;
}
/* Action Buttons */
.pc-hfap-snippets-table .button-small {
padding: 2px 8px;
font-size: 12px;
line-height: 1.5;
margin: 0 2px;
}
.pc-hfap-snippets-table .button-link-delete {
color: #d63638;
border-color: #d63638;
}
.pc-hfap-snippets-table .button-link-delete:hover {
background: #d63638;
color: #fff;
border-color: #d63638;
}
/* Form Container */
.pc-hfap-form-container {
background: #fff;
padding: 25px;
border: 1px solid #c3c4c7;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
border-radius: 4px;
margin: 20px 0;
}
.pc-hfap-snippet-form {
background: #fff;
padding: 25px;
border: 1px solid #c3c4c7;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
border-radius: 4px;
}
/* Form Sections */
.pc-hfap-form-section {
margin-bottom: 30px;
}
.pc-hfap-form-section h2 {
margin-top: 0;
padding-bottom: 10px;
border-bottom: 1px solid #dcdcde;
color: #1d2327;
}
.pc-hfap-form-section .form-table {
margin-top: 0;
}
.pc-hfap-form-section th {
width: 200px;
padding: 20px 10px 20px 0;
font-weight: 600;
color: #1d2327;
}
.pc-hfap-form-section td {
padding: 15px 10px;
}
.pc-hfap-form-section input[type="text"],
.pc-hfap-form-section select,
.pc-hfap-form-section textarea {
width: 100%;
max-width: 600px;
}
.pc-hfap-form-section textarea.code {
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
}
.pc-hfap-form-section .required {
color: #d63638;
}
.pc-hfap-form-section .description {
color: #646970;
font-size: 13px;
margin-top: 4px;
}
/* Form Actions */
.pc-hfap-form-actions {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #dcdcde;
text-align: right;
}
.pc-hfap-form-actions .button-primary {
background: #2271b1;
border-color: #2271b1;
color: #fff;
text-decoration: none;
text-shadow: none;
padding: 8px 20px;
font-size: 14px;
line-height: 1.5;
min-height: 32px;
margin-right: 10px;
}
.pc-hfap-form-actions .button-primary:hover {
background: #135e96;
border-color: #135e96;
}
.pc-hfap-form-actions .button {
padding: 8px 20px;
padding: 0 15px;
font-size: 14px;
line-height: 1.5;
min-height: 32px;
}
/* Info and Help Cards */
.pc-hfap-info-card,
.pc-hfap-help-card {
background: #fff;
padding: 25px;
border: 1px solid #c3c4c7;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
border-radius: 4px;
margin: 20px 0;
border-left: 4px solid #72aee6;
}
.pc-hfap-info-card h2,
.pc-hfap-help-card h2 {
margin-top: 0;
color: #1d2327;
padding-bottom: 10px;
border-bottom: 1px solid #f0f0f0;
}
.pc-hfap-info-card ul,
.pc-hfap-help-card ul {
margin-left: 20px;
padding-left: 0;
}
.pc-hfap-info-card li,
.pc-hfap-help-card li {
margin-bottom: 8px;
line-height: 1.5;
}
/* Code Examples */
.pc-hfap-code-examples {
margin-top: 20px;
}
.pc-hfap-code-examples h4 {
margin: 15px 0 10px 0;
color: #2c3338;
font-size: 14px;
}
.pc-hfap-code-examples pre {
background: #f6f7f7;
border: 1px solid #dcdcde;
border-radius: 4px;
padding: 15px;
overflow-x: auto;
margin: 0 0 20px 0;
}
.pc-hfap-code-examples code {
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
line-height: 1.4;
color: #50575e;
background: transparent;
padding: 0;
}
/* Column widths */
.pc-hfap-snippets-table .column-title {
width: 25%;
}
.pc-hfap-snippets-table .column-location {
width: 15%;
}
.pc-hfap-snippets-table .column-code {
width: 40%;
}
.pc-hfap-snippets-table .column-actions {
width: 20%;
text-align: right;
}
/* Responsive design */
@media screen and (max-width: 782px) {
.pc-hfap-form-section th {
width: 100%;
display: block;
padding: 10px 0 0 0;
}
.pc-hfap-form-section td {
display: block;
padding: 0 0 20px 0;
}
.pc-hfap-snippets-table {
overflow-x: auto;
}
.pc-hfap-snippets-table table {
min-width: 600px;
}
}
/* Animation for success messages */
@keyframes pc-hfap-fade-in {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.notice.pc-hfap-notice {
animation: pc-hfap-fade-in 0.3s ease-out;
}
/* Loading state */
.pc-hfap-loading {
opacity: 0.6;
pointer-events: none;
}
/* Grid layout for form container */
.pc-hfap-form-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
margin-top: 20px;
}
@media (max-width: 1024px) {
.pc-hfap-form-container {
grid-template-columns: 1fr;
}
}
/* Highlight animation for new rows */
@keyframes pc-hfap-highlight {
0% { background-color: #f0f6fc; }
100% { background-color: transparent; }
}
.pc-hfap-snippets-table tr.highlight {
animation: pc-hfap-highlight 2s ease-out;
}