/** * Maple Local Fonts - Admin Styles * * @package Maple_Local_Fonts */ /* Container */ .mlf-wrap { max-width: 800px; } .mlf-wrap > h1 { margin-bottom: 0; } .mlf-description { color: #646970; margin-top: 8px; margin-bottom: 20px; } .mlf-container { margin-top: 20px; } /* Sections */ .mlf-section { background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; padding: 20px 24px; margin-bottom: 20px; } .mlf-section h2 { margin-top: 0; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e0e0e0; font-size: 1.1em; } /* Form */ .mlf-form-row { margin-bottom: 20px; } .mlf-form-row:last-of-type { margin-bottom: 0; } .mlf-form-row > label { display: block; font-weight: 600; margin-bottom: 8px; } .mlf-form-row input[type="text"] { width: 100%; max-width: 400px; padding: 8px 12px; font-size: 14px; } .mlf-form-row .description { margin-top: 8px; color: #646970; font-style: italic; font-size: 13px; } /* Search Input */ .mlf-search-wrapper { display: flex; align-items: center; gap: 8px; max-width: 500px; } .mlf-search-input { flex: 1; padding: 6px 12px !important; font-size: 14px; } .mlf-search-btn { flex-shrink: 0; height: 36px; padding: 0 16px !important; } .mlf-search-spinner { flex-shrink: 0; float: none !important; margin: 0 !important; } /* Search Results */ .mlf-search-results { margin-top: 12px; border: 1px solid #c3c4c7; border-radius: 4px; max-height: 400px; overflow-y: auto; background: #fff; } .mlf-results-list { padding: 0; } .mlf-result-item { padding: 16px; border-bottom: 1px solid #e0e0e0; cursor: pointer; transition: background-color 0.15s ease; } .mlf-result-item:last-child { border-bottom: none; } .mlf-result-item:hover { background: #f0f6fc; } .mlf-result-info { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .mlf-result-name { font-weight: 600; font-size: 15px; color: #1d2327; } .mlf-result-category { font-size: 12px; color: #646970; padding: 2px 8px; background: #f0f0f1; border-radius: 3px; } .mlf-result-badges { display: flex; gap: 6px; } .mlf-badge { font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 500; } .mlf-badge-variable { background: #d4edda; color: #155724; } .mlf-result-preview { font-size: 22px; color: #50575e; line-height: 1.3; padding-top: 4px; } .mlf-no-results { padding: 24px; text-align: center; color: #646970; font-style: italic; } .mlf-search-error { padding: 16px 24px; text-align: center; color: #8b6914; background: #fcf9e8; border-bottom: 1px solid #f0e6c8; } /* Selected Font */ .mlf-selected-font { margin-top: 16px; padding: 16px; background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 4px; } .mlf-selected-font-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #c5d9ed; } .mlf-selected-label { color: #646970; font-size: 13px; } .mlf-selected-name { font-weight: 600; font-size: 16px; color: #1d2327; flex: 1; } .mlf-change-font { background: none; border: none; color: #2271b1; cursor: pointer; font-size: 13px; padding: 4px 8px; } .mlf-change-font:hover { color: #135e96; text-decoration: underline; } .mlf-italic-row { margin-bottom: 16px; } /* Italic Toggle */ .mlf-italic-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid #dcdcde; border-radius: 4px; cursor: pointer; font-weight: normal !important; transition: background-color 0.15s ease; } .mlf-italic-toggle:hover { background: #f6f7f7; } .mlf-italic-toggle input[type="checkbox"] { margin: 0; } /* Submit Row */ .mlf-form-row-submit { display: flex; align-items: center; gap: 12px; margin-top: 0; padding-top: 0; border-top: none; } .mlf-selected-font .mlf-form-row-submit { margin-top: 0; } .mlf-form-row-submit .spinner { float: none; margin: 0; } /* Messages */ .mlf-message { padding: 12px 16px; border-radius: 4px; margin-top: 16px; } .mlf-message-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; } .mlf-message-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; } /* Info Note */ .mlf-info-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; padding: 12px 16px; background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 4px; font-size: 13px; color: #1d2327; } .mlf-info-note .dashicons { color: #2271b1; font-size: 18px; width: 18px; height: 18px; margin-top: 1px; } /* Section Header */ .mlf-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e0e0e0; } .mlf-section-header h2 { margin: 0; padding: 0; border: none; } .mlf-check-updates-btn { flex-shrink: 0; } /* Font List */ .mlf-font-list { display: flex; flex-direction: column; gap: 12px; } .mlf-font-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; } .mlf-font-info { flex: 1; } .mlf-font-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .mlf-font-name { margin: 0; font-size: 1.1em; } .mlf-update-badge { display: inline-block; padding: 2px 8px; background: #fcf9e8; border: 1px solid #d4b106; border-radius: 3px; color: #8b6914; font-size: 11px; font-weight: 500; } .mlf-font-variants { margin: 0 0 4px 0; color: #646970; font-size: 0.9em; } .mlf-font-meta { margin: 0; color: #8c8f94; font-size: 0.8em; display: flex; gap: 12px; } .mlf-font-version { font-family: monospace; background: #f0f0f1; padding: 1px 6px; border-radius: 3px; } .mlf-update-btn { color: #2271b1; border-color: #2271b1; } .mlf-update-btn:hover { background: #2271b1; color: #fff; border-color: #2271b1; } .mlf-font-actions { margin-left: 20px; } .mlf-delete-btn { color: #b32d2e; border-color: #b32d2e; } .mlf-delete-btn:hover { background: #b32d2e; color: #fff; border-color: #b32d2e; } .mlf-delete-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* No Fonts Message */ .mlf-no-fonts { color: #646970; font-style: italic; padding: 24px; text-align: center; background: #f6f7f7; border-radius: 4px; margin: 0; } /* Info Box */ .mlf-info-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f0f6fc; border: 1px solid #c5d9ed; border-radius: 4px; } .mlf-info-box .dashicons { color: #2271b1; font-size: 20px; width: 20px; height: 20px; margin-top: 2px; } .mlf-info-box p { margin: 0 0 8px 0; } .mlf-info-box p:last-child { margin-bottom: 0; } .mlf-info-box a { color: #2271b1; text-decoration: none; } .mlf-info-box a:hover { text-decoration: underline; } /* Classic Theme Info Box */ .mlf-info-box-classic { flex-direction: row; align-items: flex-start; background: #fcf9e8; border-color: #d4b106; } .mlf-info-box-classic .dashicons { color: #9d7e05; } .mlf-classic-theme-info { flex: 1; } .mlf-classic-theme-info p { margin: 0 0 12px 0; } .mlf-classic-theme-info p:last-child { margin-bottom: 0; } .mlf-classic-theme-info .description { color: #646970; font-style: italic; margin-top: 12px; } .mlf-code-example { background: #1d2327; color: #f0f0f1; padding: 12px 16px; border-radius: 4px; font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.6; overflow-x: auto; white-space: pre; margin: 12px 0; } /* Loading State */ .mlf-loading { opacity: 0.6; pointer-events: none; } /* Responsive */ @media screen and (max-width: 782px) { .mlf-font-item { flex-direction: column; align-items: flex-start; gap: 12px; } .mlf-font-actions { margin-left: 0; } .mlf-result-info { flex-wrap: wrap; } .mlf-selected-font-header { flex-wrap: wrap; } }