803 lines
14 KiB
CSS
803 lines
14 KiB
CSS
/**
|
|
* noindex SEO - Admin styles
|
|
*
|
|
* Follows the WordPress admin color scheme via the --wp-admin-theme-color
|
|
* custom property (with the core default as fallback) and the core admin
|
|
* status palette. Uses logical properties so RTL works out of the box.
|
|
*/
|
|
|
|
/* ===========================
|
|
Container & Layout
|
|
=========================== */
|
|
.noindex-seo-admin-wrap {
|
|
max-width: 1200px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* ===========================
|
|
Tabs Navigation
|
|
=========================== */
|
|
.noindex-seo-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 30px;
|
|
border-bottom: 2px solid #c3c4c7;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.noindex-seo-tab {
|
|
padding: 12px 24px;
|
|
background: transparent;
|
|
border: none;
|
|
color: #646970;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-bottom: 3px solid transparent;
|
|
transition: color 0.3s ease;
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
|
|
.noindex-seo-tab:hover,
|
|
.noindex-seo-tab.active {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
}
|
|
|
|
.noindex-seo-tab.active {
|
|
border-bottom-color: var(--wp-admin-theme-color, #2271b1);
|
|
}
|
|
|
|
/* ===========================
|
|
Tab Content
|
|
=========================== */
|
|
.noindex-seo-tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.noindex-seo-tab-content.active {
|
|
display: block;
|
|
animation: noindexSeoFadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes noindexSeoFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ===========================
|
|
Cards / Sections
|
|
=========================== */
|
|
.noindex-seo-card {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
border: 1px solid #c3c4c7;
|
|
}
|
|
|
|
.noindex-seo-card-header {
|
|
padding: 20px 24px;
|
|
background: #f6f7f7;
|
|
border-bottom: 1px solid #c3c4c7;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.noindex-seo-card-header:hover {
|
|
background: #f0f0f1;
|
|
}
|
|
|
|
.noindex-seo-card-header h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #2c3338;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.noindex-seo-card-header .dashicons {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
font-size: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.noindex-seo-card-toggle {
|
|
color: #8c8f94;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.noindex-seo-card.collapsed .noindex-seo-card-toggle {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
[dir="rtl"] .noindex-seo-card.collapsed .noindex-seo-card-toggle {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.noindex-seo-card-body {
|
|
padding: 24px;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.noindex-seo-card.collapsed .noindex-seo-card-body {
|
|
display: none;
|
|
}
|
|
|
|
/* ===========================
|
|
Option Items
|
|
=========================== */
|
|
.noindex-seo-option {
|
|
padding: 24px;
|
|
background: #f6f7f7;
|
|
border-radius: 8px;
|
|
border: 1px solid #c3c4c7;
|
|
transition: border-color 0.2s ease;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.noindex-seo-option:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.noindex-seo-option:hover {
|
|
background: #f0f0f1;
|
|
border-color: #8c8f94;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.noindex-seo-option-header {
|
|
margin-bottom: 18px;
|
|
padding-bottom: 14px;
|
|
border-bottom: 1px solid #c3c4c7;
|
|
}
|
|
|
|
.noindex-seo-option-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
font-size: 15px;
|
|
color: #2c3338;
|
|
}
|
|
|
|
.noindex-seo-option-title strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.noindex-seo-option-description {
|
|
color: #646970;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ===========================
|
|
Directives Checkboxes
|
|
=========================== */
|
|
.noindex-seo-directives {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
background: #fff;
|
|
border: 2px solid #c3c4c7;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s ease;
|
|
user-select: none;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #3c434a;
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox:hover {
|
|
border-color: #8c8f94;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox input[type="checkbox"] {
|
|
margin: 0;
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox:has(input:checked) {
|
|
border-color: var(--wp-admin-theme-color, #2271b1);
|
|
background-color: #f0f6fc;
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox:has(input:checked) .directive-label {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.directive-icon {
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.directive-label {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 13px;
|
|
flex: 1;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.directive-description {
|
|
color: #646970;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
font-family: inherit;
|
|
flex: 2;
|
|
}
|
|
|
|
/* ===========================
|
|
Toggle Switch
|
|
=========================== */
|
|
.noindex-seo-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 48px;
|
|
height: 26px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.noindex-seo-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.noindex-seo-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #8c8f94;
|
|
transition: 0.3s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.noindex-seo-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 20px;
|
|
width: 20px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: #fff;
|
|
transition: 0.3s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
input:checked + .noindex-seo-slider {
|
|
background-color: var(--wp-admin-theme-color, #2271b1);
|
|
}
|
|
|
|
input:focus-visible + .noindex-seo-slider {
|
|
outline: 2px solid var(--wp-admin-theme-color, #2271b1);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
input:checked + .noindex-seo-slider:before {
|
|
transform: translateX(22px);
|
|
}
|
|
|
|
[dir="rtl"] .noindex-seo-slider:before {
|
|
left: auto;
|
|
right: 3px;
|
|
}
|
|
|
|
[dir="rtl"] input:checked + .noindex-seo-slider:before {
|
|
transform: translateX(-22px);
|
|
}
|
|
|
|
/* ===========================
|
|
Badges & Indicators
|
|
=========================== */
|
|
.noindex-seo-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
}
|
|
|
|
.noindex-seo-badge.recommended {
|
|
background: #edfaef;
|
|
color: #076b32;
|
|
}
|
|
|
|
.noindex-seo-badge.not-recommended {
|
|
background: #fcf0f1;
|
|
color: #b32d2e;
|
|
}
|
|
|
|
.noindex-seo-badge.neutral {
|
|
background: #f0f0f1;
|
|
color: #3c434a;
|
|
}
|
|
|
|
.noindex-seo-badge .dashicons {
|
|
font-size: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* ===========================
|
|
"Apply Recommended Defaults" form
|
|
=========================== */
|
|
.noindex-seo-apply-form {
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
.noindex-seo-apply-note {
|
|
margin-inline-start: 8px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* ===========================
|
|
General Config Section
|
|
=========================== */
|
|
.noindex-seo-general-config {
|
|
background: #fff;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.noindex-seo-general-config h2 {
|
|
margin: 0 0 16px 0;
|
|
font-size: 18px;
|
|
color: #2c3338;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.noindex-seo-general-config .dashicons {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
}
|
|
|
|
.noindex-seo-config-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.noindex-seo-config-option + .noindex-seo-config-option {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.noindex-seo-config-option label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.noindex-seo-config-body {
|
|
flex: 1;
|
|
}
|
|
|
|
.noindex-seo-config-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noindex-seo-config-label-danger {
|
|
color: #b32d2e;
|
|
}
|
|
|
|
.noindex-seo-config-select {
|
|
max-width: 400px;
|
|
}
|
|
|
|
/* ===========================
|
|
Alert / Notice
|
|
=========================== */
|
|
.noindex-seo-alert {
|
|
background: #fcf9e8;
|
|
border-inline-start: 4px solid #dba617;
|
|
padding: 16px 20px;
|
|
margin-bottom: 24px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.noindex-seo-alert .dashicons {
|
|
color: #dba617;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.noindex-seo-alert p {
|
|
margin: 0;
|
|
color: #3c434a;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ===========================
|
|
Search/Filter
|
|
=========================== */
|
|
.noindex-seo-search {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.noindex-seo-search input {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.noindex-seo-search input:focus {
|
|
outline: none;
|
|
border-color: var(--wp-admin-theme-color, #2271b1);
|
|
box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
|
|
}
|
|
|
|
/* ===========================
|
|
Stats/Quick Info
|
|
=========================== */
|
|
.noindex-seo-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.noindex-seo-stat-card {
|
|
background: #fff;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid #c3c4c7;
|
|
text-align: center;
|
|
}
|
|
|
|
.noindex-seo-stat-number {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
margin: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.noindex-seo-stat-label {
|
|
color: #646970;
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===========================
|
|
View Link
|
|
=========================== */
|
|
.noindex-seo-view-link {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.noindex-seo-view-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.noindex-seo-view-link .dashicons {
|
|
font-size: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* ===========================
|
|
Success Message
|
|
=========================== */
|
|
.noindex-seo-success {
|
|
background: #edfaef;
|
|
border-inline-start: 4px solid #00a32a;
|
|
padding: 16px 20px;
|
|
margin: 20px 0;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
animation: noindexSeoSlideDown 0.3s ease;
|
|
}
|
|
|
|
@keyframes noindexSeoSlideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.noindex-seo-success .dashicons {
|
|
color: #00a32a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.noindex-seo-success p {
|
|
margin: 0;
|
|
color: #076b32;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ===========================
|
|
Tooltips
|
|
=========================== */
|
|
.noindex-seo-tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
cursor: help;
|
|
}
|
|
|
|
.noindex-seo-tooltip .dashicons {
|
|
color: #8c8f94;
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.noindex-seo-tooltip:hover .dashicons {
|
|
color: var(--wp-admin-theme-color, #2271b1);
|
|
}
|
|
|
|
/* ===========================
|
|
Disabled Fields
|
|
=========================== */
|
|
.noindex-seo-option.disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
position: relative;
|
|
background: #f6f7f7;
|
|
}
|
|
|
|
.noindex-seo-option.disabled::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.noindex-seo-option.disabled .noindex-seo-directive-checkbox {
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.noindex-seo-option.disabled .noindex-seo-option-title {
|
|
color: #8c8f94;
|
|
}
|
|
|
|
.noindex-seo-option.disabled .noindex-seo-option-description {
|
|
color: #a7aaad;
|
|
}
|
|
|
|
/* ===========================
|
|
Post meta box (classic editor)
|
|
=========================== */
|
|
.noindex-seo-meta-override {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.noindex-seo-meta-note {
|
|
margin: 8px 0 12px 0;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.noindex-seo-directive-list {
|
|
border-top: 1px solid #dcdcde;
|
|
padding-top: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.noindex-seo-directive-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noindex-seo-reference {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: #f6f7f7;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.noindex-seo-reference-title {
|
|
margin: 0 0 8px 0;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #3c434a;
|
|
}
|
|
|
|
.noindex-seo-ref {
|
|
margin: 0 0 4px 0;
|
|
padding: 6px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.noindex-seo-ref:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.noindex-seo-ref code {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.noindex-seo-ref-override {
|
|
background: #f0f6fc;
|
|
border-inline-start: 3px solid #72aee6;
|
|
}
|
|
|
|
.noindex-seo-ref-none {
|
|
background: #fcf9e8;
|
|
border-inline-start: 3px solid #dba617;
|
|
}
|
|
|
|
.noindex-seo-ref-global {
|
|
background: #fff;
|
|
border-inline-start: 3px solid #c3c4c7;
|
|
}
|
|
|
|
.noindex-seo-ref-ok {
|
|
background: #edfaef;
|
|
border-inline-start: 3px solid #00a32a;
|
|
color: #076b32;
|
|
}
|
|
|
|
/* ===========================
|
|
Term edit panel
|
|
=========================== */
|
|
.noindex-seo-term-directives {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.noindex-seo-term-directive {
|
|
display: inline-block;
|
|
margin-inline-end: 12px;
|
|
}
|
|
|
|
/* ===========================
|
|
List-table columns (posts and terms)
|
|
=========================== */
|
|
.noindex-seo-col-empty {
|
|
color: #8c8f94;
|
|
}
|
|
|
|
.noindex-seo-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.noindex-seo-badge-item {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
background: #f0f6fc;
|
|
border: 1px solid var(--wp-admin-theme-color, #2271b1);
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* ===========================
|
|
Quick Edit
|
|
=========================== */
|
|
.noindex-seo-quick-edit-list {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.noindex-seo-quick-edit-label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.noindex-seo-quick-edit-nested {
|
|
margin-inline-start: 20px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.noindex-seo-quick-edit-option {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ===========================
|
|
Responsive Design
|
|
=========================== */
|
|
@media (max-width: 782px) {
|
|
.noindex-seo-card-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.noindex-seo-tabs {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.noindex-seo-tab {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.noindex-seo-stats {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.noindex-seo-directive-checkbox {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.directive-description {
|
|
flex-basis: 100%;
|
|
margin-inline-start: 52px;
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.noindex-seo-option {
|
|
padding: 16px;
|
|
}
|
|
|
|
.noindex-seo-option-header {
|
|
margin-bottom: 14px;
|
|
padding-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
/* ===========================
|
|
Print Styles
|
|
=========================== */
|
|
@media print {
|
|
.noindex-seo-search {
|
|
display: none;
|
|
}
|
|
}
|