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