/** * Schema Markup Admin Styles * * @package MetaSync * @subpackage Schema_Markup */ /* Multiple Schema Types Support */ .schema-types-container { margin-top: 15px; } .schema-types-header h4 { margin: 0 0 10px 0; color: #333; } .schema-type-item { margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; position: relative; } .schema-type-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; } .schema-type-header h5 { margin: 0; color: #333; font-size: 16px; } .schema-type-header .dashicons { color: #0073aa; margin-right: 5px; } .remove-schema-type { display: inline-flex; align-items: center; gap: 4px; color: #dc3232; text-decoration: none; font-size: 12px; padding: 6px 12px !important; } .remove-schema-type .dashicons { display: inline-flex; align-items: center; justify-content: center; color: #dc3232 !important; flex-shrink: 0; width: 16px; height: 16px; font-size: 16px; line-height: 1; } .remove-schema-type:hover, .remove-schema-type:hover .dashicons { color: #a00; } .no-schema-types { text-align: center; padding: 20px; background: #f9f9f9; border: 2px dashed #ddd; border-radius: 4px; color: #666; } .no-schema-types p { margin: 0; font-style: italic; } .add-schema-type-section { margin-top: 20px; text-align: center; } .add-schema-type-section .button { font-size: 14px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 6px; } .add-schema-type-section .button .dashicons { flex-shrink: 0; width: 16px; height: 16px; font-size: 16px; line-height: 1; } #add_schema_type_button.button.button-primary .dashicons { color: #fff !important; } /* Schema Type Modal */ #schema-type-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; } #schema-type-modal > div { background: white; padding: 20px; border-radius: 4px; min-width: 300px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); } #schema-type-modal h3 { margin-top: 0; color: #333; } #schema-type-modal select { width: 100%; margin-bottom: 15px; padding: 8px; border: 1px solid #ddd; border-radius: 3px; } #schema-type-modal .button { margin-left: 5px; } /* Enhanced Schema Field Groups */ .schema-field-group { margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 4px; background: #fff; } .schema-field-group h4 { margin: 0 0 15px 0; color: #333; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } /* Schema Fields Container */ .schema-fields-container { margin-top: 10px; } /* Improved Field Styling */ .schema-field { margin: 12px 0; } .schema-field label { display: block; font-weight: 600; margin-bottom: 5px; color: #333; } .schema-field input, .schema-field select, .schema-field textarea { width: 100%; max-width: 500px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; } .schema-field input:focus, .schema-field select:focus, .schema-field textarea:focus { border-color: #0073aa; box-shadow: 0 0 0 1px #0073aa; outline: none; } .schema-field textarea { height: 80px; resize: vertical; } /* Logo Upload Container */ .logo-upload-container { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .logo-upload-container input { flex: 1; margin-right: 10px; } .logo-preview { margin-top: 10px; } .logo-preview img { max-width: 200px; max-height: 100px; border: 1px solid #ddd; padding: 5px; border-radius: 3px; } /* FAQ Items Styling */ .faq-items-list { margin: 15px 0; } .faq-item { margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; position: relative; } .faq-item .schema-field { margin-bottom: 15px; } .faq-item .schema-field:last-child { margin-bottom: 10px; } .remove-faq-item { background: #dc3232; color: white; border: none; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; } .remove-faq-item:hover { background: #a00; } /* Ingredients and Instructions */ .ingredients-list, .instructions-list { margin: 10px 0; } .ingredient-item, .instruction-item { margin: 8px 0; display: flex; align-items: flex-start; gap: 10px; } .ingredient-item input, .instruction-item textarea { flex: 1; margin-right: 10px; } .instruction-item textarea { min-height: 60px; } .remove-item { background: #dc3232; color: white; border: none; padding: 6px 10px; cursor: pointer; border-radius: 3px; font-size: 12px; flex-shrink: 0; } .remove-item:hover { background: #a00; } .add-ingredient, .add-instruction, .add-faq-item { background: #0073aa; color: white; border: none; padding: 8px 16px; cursor: pointer; border-radius: 3px; margin-top: 10px; font-size: 13px; } .add-ingredient:hover, .add-instruction:hover, .add-faq-item:hover { background: #005a87; } /* Preview Section */ .schema-preview-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e0e0e0; } .schema-preview-section .button { margin-right: 10px; display: inline-flex; align-items: center; gap: 6px; } .schema-preview-section .button .dashicons { flex-shrink: 0; width: 16px; height: 16px; font-size: 16px; line-height: 1; } #schema-preview-output { margin-top: 15px; padding: 15px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 4px; } #schema-preview-output h4 { margin: 0 0 10px 0; color: #333; } #schema-json-preview { background: #1e1e1e; color: #ffffff; padding: 15px; border: 1px solid #333; border-radius: 4px; overflow-x: auto; max-height: 500px; font-family: 'Courier New', Consolas, monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; } /* Responsive Design */ @media (max-width: 768px) { .schema-type-header { flex-direction: column; align-items: flex-start; gap: 10px; } .logo-upload-container { flex-direction: column; align-items: stretch; } .logo-upload-container input { margin-right: 0; margin-bottom: 10px; } .ingredient-item, .instruction-item { flex-direction: column; align-items: stretch; } .ingredient-item input, .instruction-item textarea { margin-right: 0; margin-bottom: 10px; } } /* Validation Warnings and Notices */ .metasync-schema-validation-warning { background: #fff3cd; border-left: 4px solid #ffc107; padding: 12px; margin: 15px 0; border-radius: 4px; } .metasync-schema-validation-warning p:first-child { margin: 0 0 8px 0; font-weight: 600; color: #856404; } .metasync-schema-validation-warning .dashicons { color: #ffc107; vertical-align: middle; margin-right: 5px; } .metasync-schema-validation-warning ul { margin: 0; padding-left: 20px; color: #856404; } .metasync-schema-validation-warning li { margin: 5px 0; } /* Schema Requirements Info Box */ .metasync-schema-requirements-info { background: #e7f3ff; border-left: 4px solid #2196F3; padding: 12px; margin-bottom: 20px; border-radius: 4px; } .metasync-schema-requirements-info p { margin: 0 0 8px 0; color: #1565C0; } .metasync-schema-requirements-info p:first-child { font-weight: 600; color: #1976D2; } .metasync-schema-requirements-info .dashicons { color: #2196F3; vertical-align: middle; margin-right: 5px; } .metasync-schema-requirements-info ul { margin: 8px 0 0 20px; color: #1565C0; font-size: 13px; } /* Admin Notice Enhancement */ .metasync-schema-validation-notice h3 { margin: 0.5em 0; color: #d63638; } .metasync-schema-validation-notice ul { list-style: disc; margin-left: 20px; } .metasync-schema-validation-notice p em { color: #646970; } /* Schema Type Selection */ .schema-type-selection { margin-top: 15px; } /* Description text */ .schema-field .description { color: #646970; font-size: 12px; margin-top: 4px; font-style: italic; }