| 1 |
/** |
| 2 |
* Schema Markup Admin Styles |
| 3 |
* |
| 4 |
* @package MetaSync |
| 5 |
* @subpackage Schema_Markup |
| 6 |
*/ |
| 7 |
|
| 8 |
/* Multiple Schema Types Support */ |
| 9 |
.schema-types-container { |
| 10 |
margin-top: 15px; |
| 11 |
} |
| 12 |
|
| 13 |
.schema-types-header h4 { |
| 14 |
margin: 0 0 10px 0; |
| 15 |
color: #333; |
| 16 |
} |
| 17 |
|
| 18 |
.schema-type-item { |
| 19 |
margin: 15px 0; |
| 20 |
padding: 15px; |
| 21 |
border: 1px solid #ddd; |
| 22 |
border-radius: 4px; |
| 23 |
background: #f9f9f9; |
| 24 |
position: relative; |
| 25 |
} |
| 26 |
|
| 27 |
.schema-type-header { |
| 28 |
display: flex; |
| 29 |
justify-content: space-between; |
| 30 |
align-items: center; |
| 31 |
margin-bottom: 15px; |
| 32 |
padding-bottom: 10px; |
| 33 |
border-bottom: 1px solid #e0e0e0; |
| 34 |
} |
| 35 |
|
| 36 |
.schema-type-header h5 { |
| 37 |
margin: 0; |
| 38 |
color: #333; |
| 39 |
font-size: 16px; |
| 40 |
} |
| 41 |
|
| 42 |
.schema-type-header .dashicons { |
| 43 |
color: #0073aa; |
| 44 |
margin-right: 5px; |
| 45 |
} |
| 46 |
|
| 47 |
.remove-schema-type { |
| 48 |
display: inline-flex; |
| 49 |
align-items: center; |
| 50 |
gap: 4px; |
| 51 |
color: #dc3232; |
| 52 |
text-decoration: none; |
| 53 |
font-size: 12px; |
| 54 |
padding: 6px 12px !important; |
| 55 |
} |
| 56 |
|
| 57 |
.remove-schema-type .dashicons { |
| 58 |
display: inline-flex; |
| 59 |
align-items: center; |
| 60 |
justify-content: center; |
| 61 |
color: #dc3232 !important; |
| 62 |
flex-shrink: 0; |
| 63 |
width: 16px; |
| 64 |
height: 16px; |
| 65 |
font-size: 16px; |
| 66 |
line-height: 1; |
| 67 |
} |
| 68 |
|
| 69 |
.remove-schema-type:hover, |
| 70 |
.remove-schema-type:hover .dashicons { |
| 71 |
color: #a00; |
| 72 |
} |
| 73 |
|
| 74 |
.no-schema-types { |
| 75 |
text-align: center; |
| 76 |
padding: 20px; |
| 77 |
background: #f9f9f9; |
| 78 |
border: 2px dashed #ddd; |
| 79 |
border-radius: 4px; |
| 80 |
color: #666; |
| 81 |
} |
| 82 |
|
| 83 |
.no-schema-types p { |
| 84 |
margin: 0; |
| 85 |
font-style: italic; |
| 86 |
} |
| 87 |
|
| 88 |
.add-schema-type-section { |
| 89 |
margin-top: 20px; |
| 90 |
text-align: center; |
| 91 |
} |
| 92 |
|
| 93 |
.add-schema-type-section .button { |
| 94 |
font-size: 14px; |
| 95 |
padding: 8px 16px; |
| 96 |
display: inline-flex; |
| 97 |
align-items: center; |
| 98 |
gap: 6px; |
| 99 |
} |
| 100 |
|
| 101 |
.add-schema-type-section .button .dashicons { |
| 102 |
flex-shrink: 0; |
| 103 |
width: 16px; |
| 104 |
height: 16px; |
| 105 |
font-size: 16px; |
| 106 |
line-height: 1; |
| 107 |
} |
| 108 |
|
| 109 |
#add_schema_type_button.button.button-primary .dashicons { |
| 110 |
color: #fff !important; |
| 111 |
} |
| 112 |
|
| 113 |
/* Schema Type Modal */ |
| 114 |
#schema-type-modal { |
| 115 |
position: fixed; |
| 116 |
top: 0; |
| 117 |
left: 0; |
| 118 |
width: 100%; |
| 119 |
height: 100%; |
| 120 |
background: rgba(0,0,0,0.5); |
| 121 |
z-index: 9999; |
| 122 |
display: flex; |
| 123 |
align-items: center; |
| 124 |
justify-content: center; |
| 125 |
} |
| 126 |
|
| 127 |
#schema-type-modal > div { |
| 128 |
background: white; |
| 129 |
padding: 20px; |
| 130 |
border-radius: 4px; |
| 131 |
min-width: 300px; |
| 132 |
box-shadow: 0 4px 8px rgba(0,0,0,0.2); |
| 133 |
} |
| 134 |
|
| 135 |
#schema-type-modal h3 { |
| 136 |
margin-top: 0; |
| 137 |
color: #333; |
| 138 |
} |
| 139 |
|
| 140 |
#schema-type-modal select { |
| 141 |
width: 100%; |
| 142 |
margin-bottom: 15px; |
| 143 |
padding: 8px; |
| 144 |
border: 1px solid #ddd; |
| 145 |
border-radius: 3px; |
| 146 |
} |
| 147 |
|
| 148 |
#schema-type-modal .button { |
| 149 |
margin-left: 5px; |
| 150 |
} |
| 151 |
|
| 152 |
/* Enhanced Schema Field Groups */ |
| 153 |
.schema-field-group { |
| 154 |
margin: 15px 0; |
| 155 |
padding: 15px; |
| 156 |
border: 1px solid #ddd; |
| 157 |
border-radius: 4px; |
| 158 |
background: #fff; |
| 159 |
} |
| 160 |
|
| 161 |
.schema-field-group h4 { |
| 162 |
margin: 0 0 15px 0; |
| 163 |
color: #333; |
| 164 |
font-size: 14px; |
| 165 |
font-weight: 600; |
| 166 |
text-transform: uppercase; |
| 167 |
letter-spacing: 0.5px; |
| 168 |
} |
| 169 |
|
| 170 |
/* Schema Fields Container */ |
| 171 |
.schema-fields-container { |
| 172 |
margin-top: 10px; |
| 173 |
} |
| 174 |
|
| 175 |
/* Improved Field Styling */ |
| 176 |
.schema-field { |
| 177 |
margin: 12px 0; |
| 178 |
} |
| 179 |
|
| 180 |
.schema-field label { |
| 181 |
display: block; |
| 182 |
font-weight: 600; |
| 183 |
margin-bottom: 5px; |
| 184 |
color: #333; |
| 185 |
} |
| 186 |
|
| 187 |
.schema-field input, |
| 188 |
.schema-field select, |
| 189 |
.schema-field textarea { |
| 190 |
width: 100%; |
| 191 |
max-width: 500px; |
| 192 |
padding: 8px 12px; |
| 193 |
border: 1px solid #ddd; |
| 194 |
border-radius: 3px; |
| 195 |
font-size: 14px; |
| 196 |
} |
| 197 |
|
| 198 |
.schema-field input:focus, |
| 199 |
.schema-field select:focus, |
| 200 |
.schema-field textarea:focus { |
| 201 |
border-color: #0073aa; |
| 202 |
box-shadow: 0 0 0 1px #0073aa; |
| 203 |
outline: none; |
| 204 |
} |
| 205 |
|
| 206 |
.schema-field textarea { |
| 207 |
height: 80px; |
| 208 |
resize: vertical; |
| 209 |
} |
| 210 |
|
| 211 |
/* Logo Upload Container */ |
| 212 |
.logo-upload-container { |
| 213 |
display: flex; |
| 214 |
align-items: center; |
| 215 |
gap: 10px; |
| 216 |
margin-bottom: 10px; |
| 217 |
} |
| 218 |
|
| 219 |
.logo-upload-container input { |
| 220 |
flex: 1; |
| 221 |
margin-right: 10px; |
| 222 |
} |
| 223 |
|
| 224 |
.logo-preview { |
| 225 |
margin-top: 10px; |
| 226 |
} |
| 227 |
|
| 228 |
.logo-preview img { |
| 229 |
max-width: 200px; |
| 230 |
max-height: 100px; |
| 231 |
border: 1px solid #ddd; |
| 232 |
padding: 5px; |
| 233 |
border-radius: 3px; |
| 234 |
} |
| 235 |
|
| 236 |
/* FAQ Items Styling */ |
| 237 |
.faq-items-list { |
| 238 |
margin: 15px 0; |
| 239 |
} |
| 240 |
|
| 241 |
.faq-item { |
| 242 |
margin: 15px 0; |
| 243 |
padding: 15px; |
| 244 |
border: 1px solid #ddd; |
| 245 |
border-radius: 4px; |
| 246 |
background: #f9f9f9; |
| 247 |
position: relative; |
| 248 |
} |
| 249 |
|
| 250 |
.faq-item .schema-field { |
| 251 |
margin-bottom: 15px; |
| 252 |
} |
| 253 |
|
| 254 |
.faq-item .schema-field:last-child { |
| 255 |
margin-bottom: 10px; |
| 256 |
} |
| 257 |
|
| 258 |
.remove-faq-item { |
| 259 |
background: #dc3232; |
| 260 |
color: white; |
| 261 |
border: none; |
| 262 |
padding: 6px 12px; |
| 263 |
border-radius: 3px; |
| 264 |
cursor: pointer; |
| 265 |
font-size: 12px; |
| 266 |
} |
| 267 |
|
| 268 |
.remove-faq-item:hover { |
| 269 |
background: #a00; |
| 270 |
} |
| 271 |
|
| 272 |
/* Ingredients and Instructions */ |
| 273 |
.ingredients-list, |
| 274 |
.instructions-list { |
| 275 |
margin: 10px 0; |
| 276 |
} |
| 277 |
|
| 278 |
.ingredient-item, |
| 279 |
.instruction-item { |
| 280 |
margin: 8px 0; |
| 281 |
display: flex; |
| 282 |
align-items: flex-start; |
| 283 |
gap: 10px; |
| 284 |
} |
| 285 |
|
| 286 |
.ingredient-item input, |
| 287 |
.instruction-item textarea { |
| 288 |
flex: 1; |
| 289 |
margin-right: 10px; |
| 290 |
} |
| 291 |
|
| 292 |
.instruction-item textarea { |
| 293 |
min-height: 60px; |
| 294 |
} |
| 295 |
|
| 296 |
.remove-item { |
| 297 |
background: #dc3232; |
| 298 |
color: white; |
| 299 |
border: none; |
| 300 |
padding: 6px 10px; |
| 301 |
cursor: pointer; |
| 302 |
border-radius: 3px; |
| 303 |
font-size: 12px; |
| 304 |
flex-shrink: 0; |
| 305 |
} |
| 306 |
|
| 307 |
.remove-item:hover { |
| 308 |
background: #a00; |
| 309 |
} |
| 310 |
|
| 311 |
.add-ingredient, |
| 312 |
.add-instruction, |
| 313 |
.add-faq-item { |
| 314 |
background: #0073aa; |
| 315 |
color: white; |
| 316 |
border: none; |
| 317 |
padding: 8px 16px; |
| 318 |
cursor: pointer; |
| 319 |
border-radius: 3px; |
| 320 |
margin-top: 10px; |
| 321 |
font-size: 13px; |
| 322 |
} |
| 323 |
|
| 324 |
.add-ingredient:hover, |
| 325 |
.add-instruction:hover, |
| 326 |
.add-faq-item:hover { |
| 327 |
background: #005a87; |
| 328 |
} |
| 329 |
|
| 330 |
/* Preview Section */ |
| 331 |
.schema-preview-section { |
| 332 |
margin-top: 20px; |
| 333 |
padding-top: 20px; |
| 334 |
border-top: 1px solid #e0e0e0; |
| 335 |
} |
| 336 |
|
| 337 |
.schema-preview-section .button { |
| 338 |
margin-right: 10px; |
| 339 |
display: inline-flex; |
| 340 |
align-items: center; |
| 341 |
gap: 6px; |
| 342 |
} |
| 343 |
|
| 344 |
.schema-preview-section .button .dashicons { |
| 345 |
flex-shrink: 0; |
| 346 |
width: 16px; |
| 347 |
height: 16px; |
| 348 |
font-size: 16px; |
| 349 |
line-height: 1; |
| 350 |
} |
| 351 |
|
| 352 |
#schema-preview-output { |
| 353 |
margin-top: 15px; |
| 354 |
padding: 15px; |
| 355 |
background: #f9f9f9; |
| 356 |
border: 1px solid #ddd; |
| 357 |
border-radius: 4px; |
| 358 |
} |
| 359 |
|
| 360 |
#schema-preview-output h4 { |
| 361 |
margin: 0 0 10px 0; |
| 362 |
color: #333; |
| 363 |
} |
| 364 |
|
| 365 |
#schema-json-preview { |
| 366 |
background: #1e1e1e; |
| 367 |
color: #ffffff; |
| 368 |
padding: 15px; |
| 369 |
border: 1px solid #333; |
| 370 |
border-radius: 4px; |
| 371 |
overflow-x: auto; |
| 372 |
max-height: 500px; |
| 373 |
font-family: 'Courier New', Consolas, monospace; |
| 374 |
font-size: 13px; |
| 375 |
line-height: 1.5; |
| 376 |
white-space: pre-wrap; |
| 377 |
} |
| 378 |
|
| 379 |
/* Responsive Design */ |
| 380 |
@media (max-width: 768px) { |
| 381 |
.schema-type-header { |
| 382 |
flex-direction: column; |
| 383 |
align-items: flex-start; |
| 384 |
gap: 10px; |
| 385 |
} |
| 386 |
|
| 387 |
.logo-upload-container { |
| 388 |
flex-direction: column; |
| 389 |
align-items: stretch; |
| 390 |
} |
| 391 |
|
| 392 |
.logo-upload-container input { |
| 393 |
margin-right: 0; |
| 394 |
margin-bottom: 10px; |
| 395 |
} |
| 396 |
|
| 397 |
.ingredient-item, |
| 398 |
.instruction-item { |
| 399 |
flex-direction: column; |
| 400 |
align-items: stretch; |
| 401 |
} |
| 402 |
|
| 403 |
.ingredient-item input, |
| 404 |
.instruction-item textarea { |
| 405 |
margin-right: 0; |
| 406 |
margin-bottom: 10px; |
| 407 |
} |
| 408 |
} |
| 409 |
|
| 410 |
/* Validation Warnings and Notices */ |
| 411 |
.metasync-schema-validation-warning { |
| 412 |
background: #fff3cd; |
| 413 |
border-left: 4px solid #ffc107; |
| 414 |
padding: 12px; |
| 415 |
margin: 15px 0; |
| 416 |
border-radius: 4px; |
| 417 |
} |
| 418 |
|
| 419 |
.metasync-schema-validation-warning p:first-child { |
| 420 |
margin: 0 0 8px 0; |
| 421 |
font-weight: 600; |
| 422 |
color: #856404; |
| 423 |
} |
| 424 |
|
| 425 |
.metasync-schema-validation-warning .dashicons { |
| 426 |
color: #ffc107; |
| 427 |
vertical-align: middle; |
| 428 |
margin-right: 5px; |
| 429 |
} |
| 430 |
|
| 431 |
.metasync-schema-validation-warning ul { |
| 432 |
margin: 0; |
| 433 |
padding-left: 20px; |
| 434 |
color: #856404; |
| 435 |
} |
| 436 |
|
| 437 |
.metasync-schema-validation-warning li { |
| 438 |
margin: 5px 0; |
| 439 |
} |
| 440 |
|
| 441 |
/* Schema Requirements Info Box */ |
| 442 |
.metasync-schema-requirements-info { |
| 443 |
background: #e7f3ff; |
| 444 |
border-left: 4px solid #2196F3; |
| 445 |
padding: 12px; |
| 446 |
margin-bottom: 20px; |
| 447 |
border-radius: 4px; |
| 448 |
} |
| 449 |
|
| 450 |
.metasync-schema-requirements-info p { |
| 451 |
margin: 0 0 8px 0; |
| 452 |
color: #1565C0; |
| 453 |
} |
| 454 |
|
| 455 |
.metasync-schema-requirements-info p:first-child { |
| 456 |
font-weight: 600; |
| 457 |
color: #1976D2; |
| 458 |
} |
| 459 |
|
| 460 |
.metasync-schema-requirements-info .dashicons { |
| 461 |
color: #2196F3; |
| 462 |
vertical-align: middle; |
| 463 |
margin-right: 5px; |
| 464 |
} |
| 465 |
|
| 466 |
.metasync-schema-requirements-info ul { |
| 467 |
margin: 8px 0 0 20px; |
| 468 |
color: #1565C0; |
| 469 |
font-size: 13px; |
| 470 |
} |
| 471 |
|
| 472 |
/* Admin Notice Enhancement */ |
| 473 |
.metasync-schema-validation-notice h3 { |
| 474 |
margin: 0.5em 0; |
| 475 |
color: #d63638; |
| 476 |
} |
| 477 |
|
| 478 |
.metasync-schema-validation-notice ul { |
| 479 |
list-style: disc; |
| 480 |
margin-left: 20px; |
| 481 |
} |
| 482 |
|
| 483 |
.metasync-schema-validation-notice p em { |
| 484 |
color: #646970; |
| 485 |
} |
| 486 |
|
| 487 |
/* Schema Type Selection */ |
| 488 |
.schema-type-selection { |
| 489 |
margin-top: 15px; |
| 490 |
} |
| 491 |
|
| 492 |
/* Description text */ |
| 493 |
.schema-field .description { |
| 494 |
color: #646970; |
| 495 |
font-size: 12px; |
| 496 |
margin-top: 4px; |
| 497 |
font-style: italic; |
| 498 |
} |
| 499 |
|
| 500 |
|