| 1 |
/** |
| 2 |
* MetaSync SEO Sidebar Styles |
| 3 |
* |
| 4 |
* Styles for the Gutenberg block editor SEO sidebar panel. |
| 5 |
* |
| 6 |
* @package MetaSync |
| 7 |
* @since 2.7.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
/* Sidebar Content Container */ |
| 11 |
.metasync-seo-sidebar-content { |
| 12 |
padding: 0; |
| 13 |
} |
| 14 |
|
| 15 |
.metasync-seo-sidebar-content .components-panel__body { |
| 16 |
border-bottom: none; |
| 17 |
} |
| 18 |
|
| 19 |
/* SEO Field Container */ |
| 20 |
.metasync-seo-field { |
| 21 |
margin-bottom: 20px; |
| 22 |
} |
| 23 |
|
| 24 |
.metasync-seo-field:last-child { |
| 25 |
margin-bottom: 0; |
| 26 |
} |
| 27 |
|
| 28 |
/* Input Labels */ |
| 29 |
.metasync-seo-field .components-base-control__label { |
| 30 |
font-weight: 600; |
| 31 |
margin-bottom: 6px; |
| 32 |
color: #1e1e1e; |
| 33 |
} |
| 34 |
|
| 35 |
/* Text Input Styling */ |
| 36 |
.metasync-seo-field .components-text-control__input, |
| 37 |
.metasync-seo-field .components-textarea-control__input { |
| 38 |
border-radius: 4px; |
| 39 |
border-color: #8c8f94; |
| 40 |
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; |
| 41 |
} |
| 42 |
|
| 43 |
.metasync-seo-field .components-text-control__input:focus, |
| 44 |
.metasync-seo-field .components-textarea-control__input:focus { |
| 45 |
border-color: #007cba; |
| 46 |
box-shadow: 0 0 0 1px #007cba; |
| 47 |
outline: none; |
| 48 |
} |
| 49 |
|
| 50 |
/* Textarea specific */ |
| 51 |
.metasync-seo-field .components-textarea-control__input { |
| 52 |
min-height: 100px; |
| 53 |
resize: vertical; |
| 54 |
} |
| 55 |
|
| 56 |
/* Help Text */ |
| 57 |
.metasync-seo-field .components-base-control__help { |
| 58 |
margin-top: 6px; |
| 59 |
margin-bottom: 8px; |
| 60 |
font-size: 12px; |
| 61 |
color: #757575; |
| 62 |
line-height: 1.4; |
| 63 |
} |
| 64 |
|
| 65 |
/* Character Counter */ |
| 66 |
.metasync-char-counter { |
| 67 |
margin-top: 8px; |
| 68 |
} |
| 69 |
|
| 70 |
.metasync-char-counter-bar { |
| 71 |
height: 4px; |
| 72 |
background-color: #e0e0e0; |
| 73 |
border-radius: 2px; |
| 74 |
overflow: hidden; |
| 75 |
margin-bottom: 6px; |
| 76 |
} |
| 77 |
|
| 78 |
.metasync-char-counter-progress { |
| 79 |
height: 100%; |
| 80 |
border-radius: 2px; |
| 81 |
transition: width 0.2s ease-out, background-color 0.2s ease-out; |
| 82 |
} |
| 83 |
|
| 84 |
.metasync-char-counter-text { |
| 85 |
font-size: 12px; |
| 86 |
font-weight: 500; |
| 87 |
display: block; |
| 88 |
text-align: right; |
| 89 |
} |
| 90 |
|
| 91 |
/* Panel Header Styling */ |
| 92 |
.metasync-seo-sidebar-content .components-panel__body-title { |
| 93 |
border-bottom: 1px solid #e0e0e0; |
| 94 |
} |
| 95 |
|
| 96 |
.metasync-seo-sidebar-content .components-panel__body-title .components-button { |
| 97 |
font-weight: 600; |
| 98 |
} |
| 99 |
|
| 100 |
/* Plugin Sidebar Icon */ |
| 101 |
.components-menu-item__item .metasync-seo-icon, |
| 102 |
.components-button.edit-post-sidebar__panel-tab .metasync-seo-icon { |
| 103 |
fill: currentColor; |
| 104 |
} |
| 105 |
|
| 106 |
/* URL Slug Field */ |
| 107 |
.metasync-url-slug-field .components-text-control__input { |
| 108 |
font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; |
| 109 |
font-size: 13px; |
| 110 |
} |
| 111 |
|
| 112 |
/* Permalink Preview */ |
| 113 |
.metasync-permalink-preview { |
| 114 |
margin-top: 10px; |
| 115 |
padding: 10px 12px; |
| 116 |
background-color: #f6f7f7; |
| 117 |
border: 1px solid #e0e0e0; |
| 118 |
border-radius: 4px; |
| 119 |
font-size: 12px; |
| 120 |
line-height: 1.5; |
| 121 |
word-break: break-all; |
| 122 |
} |
| 123 |
|
| 124 |
.metasync-permalink-label { |
| 125 |
color: #757575; |
| 126 |
font-weight: 500; |
| 127 |
} |
| 128 |
|
| 129 |
.metasync-permalink-link { |
| 130 |
color: #007cba; |
| 131 |
text-decoration: none; |
| 132 |
display: inline; |
| 133 |
} |
| 134 |
|
| 135 |
.metasync-permalink-link:hover { |
| 136 |
text-decoration: underline; |
| 137 |
} |
| 138 |
|
| 139 |
.metasync-permalink-base { |
| 140 |
color: #757575; |
| 141 |
} |
| 142 |
|
| 143 |
.metasync-permalink-slug { |
| 144 |
color: #1e1e1e; |
| 145 |
font-weight: 600; |
| 146 |
} |
| 147 |
|
| 148 |
/* OTTO Prefilled Indicator */ |
| 149 |
.metasync-prefilled-otto .components-text-control__input, |
| 150 |
.metasync-prefilled-otto .components-textarea-control__input { |
| 151 |
background-color: #f0f6fc; |
| 152 |
border-color: #72aee6; |
| 153 |
} |
| 154 |
|
| 155 |
.metasync-prefilled-otto .components-text-control__input:focus, |
| 156 |
.metasync-prefilled-otto .components-textarea-control__input:focus { |
| 157 |
background-color: #ffffff; |
| 158 |
} |
| 159 |
|
| 160 |
/* ======================================== |
| 161 |
SERP Preview Styles |
| 162 |
======================================== */ |
| 163 |
|
| 164 |
.metasync-serp-preview { |
| 165 |
margin: 0; |
| 166 |
} |
| 167 |
|
| 168 |
/* Header with toggle buttons */ |
| 169 |
.metasync-serp-header { |
| 170 |
display: flex; |
| 171 |
justify-content: space-between; |
| 172 |
align-items: center; |
| 173 |
margin-bottom: 12px; |
| 174 |
} |
| 175 |
|
| 176 |
.metasync-serp-label { |
| 177 |
font-weight: 600; |
| 178 |
font-size: 13px; |
| 179 |
color: #1e1e1e; |
| 180 |
} |
| 181 |
|
| 182 |
.metasync-serp-toggle { |
| 183 |
display: flex; |
| 184 |
gap: 0; |
| 185 |
} |
| 186 |
|
| 187 |
.metasync-serp-toggle .components-button { |
| 188 |
font-size: 11px !important; |
| 189 |
padding: 4px 8px !important; |
| 190 |
min-height: 28px !important; |
| 191 |
} |
| 192 |
|
| 193 |
.metasync-serp-toggle .components-button .dashicons { |
| 194 |
font-size: 14px; |
| 195 |
width: 14px; |
| 196 |
height: 14px; |
| 197 |
margin-right: 2px; |
| 198 |
} |
| 199 |
|
| 200 |
/* Google-style SERP Result Container */ |
| 201 |
.metasync-serp-result { |
| 202 |
background: #ffffff; |
| 203 |
border: 1px solid #dadce0; |
| 204 |
border-radius: 8px; |
| 205 |
padding: 16px; |
| 206 |
font-family: Arial, sans-serif; |
| 207 |
transition: all 0.2s ease; |
| 208 |
} |
| 209 |
|
| 210 |
/* Mobile view styling */ |
| 211 |
.metasync-serp-mobile { |
| 212 |
max-width: 100%; |
| 213 |
padding: 12px; |
| 214 |
} |
| 215 |
|
| 216 |
/* URL Row with Favicon */ |
| 217 |
.metasync-serp-url-row { |
| 218 |
display: flex; |
| 219 |
align-items: center; |
| 220 |
gap: 12px; |
| 221 |
margin-bottom: 6px; |
| 222 |
} |
| 223 |
|
| 224 |
.metasync-serp-favicon { |
| 225 |
flex-shrink: 0; |
| 226 |
} |
| 227 |
|
| 228 |
.metasync-serp-favicon-placeholder { |
| 229 |
width: 20px; |
| 230 |
height: 20px; |
| 231 |
background: linear-gradient(135deg, #4285f4 25%, #34a853 50%, #fbbc05 75%, #ea4335 100%); |
| 232 |
border-radius: 50%; |
| 233 |
display: flex; |
| 234 |
align-items: center; |
| 235 |
justify-content: center; |
| 236 |
} |
| 237 |
|
| 238 |
.metasync-serp-mobile .metasync-serp-favicon-placeholder { |
| 239 |
width: 20px; |
| 240 |
height: 20px; |
| 241 |
} |
| 242 |
|
| 243 |
.metasync-serp-url-info { |
| 244 |
display: flex; |
| 245 |
flex-direction: column; |
| 246 |
min-width: 0; |
| 247 |
overflow: hidden; |
| 248 |
} |
| 249 |
|
| 250 |
.metasync-serp-site-name { |
| 251 |
font-size: 14px; |
| 252 |
color: #202124; |
| 253 |
font-weight: 400; |
| 254 |
line-height: 1.3; |
| 255 |
white-space: nowrap; |
| 256 |
overflow: hidden; |
| 257 |
text-overflow: ellipsis; |
| 258 |
} |
| 259 |
|
| 260 |
.metasync-serp-mobile .metasync-serp-site-name { |
| 261 |
font-size: 12px; |
| 262 |
} |
| 263 |
|
| 264 |
.metasync-serp-breadcrumb { |
| 265 |
font-size: 12px; |
| 266 |
color: #5f6368; |
| 267 |
line-height: 1.3; |
| 268 |
white-space: nowrap; |
| 269 |
overflow: hidden; |
| 270 |
text-overflow: ellipsis; |
| 271 |
} |
| 272 |
|
| 273 |
.metasync-serp-mobile .metasync-serp-breadcrumb { |
| 274 |
font-size: 11px; |
| 275 |
} |
| 276 |
|
| 277 |
/* Title */ |
| 278 |
.metasync-serp-title { |
| 279 |
font-size: 20px; |
| 280 |
line-height: 1.3; |
| 281 |
color: #1a0dab; |
| 282 |
font-weight: 400; |
| 283 |
margin-bottom: 4px; |
| 284 |
cursor: pointer; |
| 285 |
word-wrap: break-word; |
| 286 |
overflow-wrap: break-word; |
| 287 |
} |
| 288 |
|
| 289 |
.metasync-serp-title:hover { |
| 290 |
text-decoration: underline; |
| 291 |
} |
| 292 |
|
| 293 |
.metasync-serp-mobile .metasync-serp-title { |
| 294 |
font-size: 16px; |
| 295 |
line-height: 1.4; |
| 296 |
} |
| 297 |
|
| 298 |
/* Description */ |
| 299 |
.metasync-serp-description { |
| 300 |
font-size: 14px; |
| 301 |
line-height: 1.58; |
| 302 |
color: #4d5156; |
| 303 |
word-wrap: break-word; |
| 304 |
overflow-wrap: break-word; |
| 305 |
} |
| 306 |
|
| 307 |
.metasync-serp-mobile .metasync-serp-description { |
| 308 |
font-size: 13px; |
| 309 |
line-height: 1.5; |
| 310 |
} |
| 311 |
|
| 312 |
/* Help text */ |
| 313 |
.metasync-serp-help { |
| 314 |
margin-top: 12px; |
| 315 |
margin-bottom: 0; |
| 316 |
font-size: 12px; |
| 317 |
color: #757575; |
| 318 |
line-height: 1.4; |
| 319 |
font-style: italic; |
| 320 |
} |
| 321 |
|
| 322 |
/* Responsive Adjustments */ |
| 323 |
@media (max-width: 782px) { |
| 324 |
.metasync-seo-field .components-textarea-control__input { |
| 325 |
min-height: 80px; |
| 326 |
} |
| 327 |
|
| 328 |
.metasync-char-counter-text { |
| 329 |
font-size: 11px; |
| 330 |
} |
| 331 |
|
| 332 |
.metasync-permalink-preview { |
| 333 |
font-size: 11px; |
| 334 |
} |
| 335 |
|
| 336 |
.metasync-serp-header { |
| 337 |
flex-direction: column; |
| 338 |
align-items: flex-start; |
| 339 |
gap: 8px; |
| 340 |
} |
| 341 |
|
| 342 |
.metasync-serp-result { |
| 343 |
padding: 12px; |
| 344 |
} |
| 345 |
|
| 346 |
.metasync-serp-title { |
| 347 |
font-size: 16px; |
| 348 |
} |
| 349 |
|
| 350 |
.metasync-serp-description { |
| 351 |
font-size: 13px; |
| 352 |
} |
| 353 |
} |
| 354 |
|
| 355 |
/* ============================================ |
| 356 |
OTTO Override Notice (Informational - Blue) |
| 357 |
Shows when user has custom values that will override OTTO |
| 358 |
============================================ */ |
| 359 |
|
| 360 |
.metasync-otto-override-notice { |
| 361 |
display: flex; |
| 362 |
align-items: flex-start; |
| 363 |
gap: 12px; |
| 364 |
padding: 12px 16px; |
| 365 |
margin: 0; |
| 366 |
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); |
| 367 |
border-left: 4px solid #2196f3; |
| 368 |
border-bottom: 1px solid #90caf9; |
| 369 |
} |
| 370 |
|
| 371 |
.metasync-otto-override-notice .metasync-otto-notice-icon { |
| 372 |
flex-shrink: 0; |
| 373 |
color: #1976d2; |
| 374 |
margin-top: 2px; |
| 375 |
} |
| 376 |
|
| 377 |
.metasync-otto-override-notice .metasync-otto-notice-icon svg { |
| 378 |
display: block; |
| 379 |
} |
| 380 |
|
| 381 |
.metasync-otto-override-notice .metasync-otto-notice-content { |
| 382 |
flex: 1; |
| 383 |
min-width: 0; |
| 384 |
} |
| 385 |
|
| 386 |
.metasync-otto-override-notice .metasync-otto-notice-content strong { |
| 387 |
display: block; |
| 388 |
font-size: 13px; |
| 389 |
font-weight: 600; |
| 390 |
color: #0d47a1; |
| 391 |
margin-bottom: 4px; |
| 392 |
} |
| 393 |
|
| 394 |
.metasync-otto-override-notice .metasync-otto-notice-content p { |
| 395 |
margin: 0; |
| 396 |
font-size: 12px; |
| 397 |
line-height: 1.5; |
| 398 |
color: #1565c0; |
| 399 |
} |
| 400 |
|
| 401 |
/* ============================================ |
| 402 |
Internal Link Suggestions Panel |
| 403 |
============================================ */ |
| 404 |
|
| 405 |
.metasync-link-suggestions-list { |
| 406 |
list-style: none; |
| 407 |
margin: 0; |
| 408 |
padding: 0; |
| 409 |
} |
| 410 |
|
| 411 |
.metasync-link-suggestion-item { |
| 412 |
padding: 10px 0; |
| 413 |
border-bottom: 1px solid #e0e0e0; |
| 414 |
} |
| 415 |
|
| 416 |
.metasync-link-suggestion-item:last-child { |
| 417 |
border-bottom: none; |
| 418 |
} |
| 419 |
|
| 420 |
.metasync-suggestion-title { |
| 421 |
font-weight: 600; |
| 422 |
font-size: 13px; |
| 423 |
color: #1e1e1e; |
| 424 |
display: block; |
| 425 |
margin-bottom: 2px; |
| 426 |
white-space: nowrap; |
| 427 |
overflow: hidden; |
| 428 |
text-overflow: ellipsis; |
| 429 |
} |
| 430 |
|
| 431 |
.metasync-suggestion-url { |
| 432 |
font-size: 11px; |
| 433 |
color: #646970; |
| 434 |
display: block; |
| 435 |
margin-bottom: 4px; |
| 436 |
white-space: nowrap; |
| 437 |
overflow: hidden; |
| 438 |
text-overflow: ellipsis; |
| 439 |
} |
| 440 |
|
| 441 |
.metasync-suggestion-phrase { |
| 442 |
font-size: 12px; |
| 443 |
color: #3858e9; |
| 444 |
display: block; |
| 445 |
margin-bottom: 6px; |
| 446 |
} |
| 447 |
|
| 448 |
.metasync-suggestion-phrase strong { |
| 449 |
font-style: italic; |
| 450 |
} |
| 451 |
|
| 452 |
.metasync-link-suggestions-empty { |
| 453 |
color: #646970; |
| 454 |
font-size: 13px; |
| 455 |
padding: 8px 0; |
| 456 |
} |
| 457 |
|
| 458 |
.metasync-link-suggestions-header { |
| 459 |
display: flex; |
| 460 |
justify-content: space-between; |
| 461 |
align-items: center; |
| 462 |
margin-bottom: 8px; |
| 463 |
} |
| 464 |
|
| 465 |
.metasync-link-suggestions-notice { |
| 466 |
margin-bottom: 8px; |
| 467 |
font-size: 12px; |
| 468 |
} |
| 469 |
|
| 470 |
/* Dark mode support for override notice */ |
| 471 |
@media (prefers-color-scheme: dark) { |
| 472 |
.metasync-otto-override-notice { |
| 473 |
background: linear-gradient(135deg, #1a237e 0%, #283593 100%); |
| 474 |
border-left-color: #64b5f6; |
| 475 |
border-bottom-color: #3949ab; |
| 476 |
} |
| 477 |
|
| 478 |
.metasync-otto-override-notice .metasync-otto-notice-icon { |
| 479 |
color: #64b5f6; |
| 480 |
} |
| 481 |
|
| 482 |
.metasync-otto-override-notice .metasync-otto-notice-content strong { |
| 483 |
color: #90caf9; |
| 484 |
} |
| 485 |
|
| 486 |
.metasync-otto-override-notice .metasync-otto-notice-content p { |
| 487 |
color: #bbdefb; |
| 488 |
} |
| 489 |
} |
| 490 |
|
| 491 |
/* Primary Category Note */ |
| 492 |
.metasync-primary-category-note { |
| 493 |
font-size: 12px; |
| 494 |
color: #757575; |
| 495 |
margin-top: 4px; |
| 496 |
margin-bottom: 0; |
| 497 |
} |
| 498 |
|
| 499 |
/* Primary Category panel injected below the WordPress Categories checklist */ |
| 500 |
.metasync-primary-category-panel { |
| 501 |
margin-top: 12px; |
| 502 |
padding-top: 12px; |
| 503 |
border-top: 1px solid #e0e0e0; |
| 504 |
} |
| 505 |
|
| 506 |
.metasync-primary-category-panel .components-base-control__label { |
| 507 |
font-weight: 600; |
| 508 |
font-size: 11px; |
| 509 |
text-transform: uppercase; |
| 510 |
} |
| 511 |
|
| 512 |
|