content.css
1 month ago
docs.css
1 month ago
header.css
1 month ago
our-dashboard.css
1 month ago
post-type-help-doc-imports.css
1 month ago
post-type-help-docs.css
1 month ago
post-types.css
1 month ago
pt-tax.css
1 month ago
taxonomies.css
1 month ago
docs.css
600 lines
| 1 | /* ----------------------------------------- */ |
| 2 | /* ---------------- Buttons ---------------- */ |
| 3 | /* ----------------------------------------- */ |
| 4 | |
| 5 | .helpdocs-button, |
| 6 | #screen-options-apply, |
| 7 | #submit { |
| 8 | background: var(--helpdocs-color-button) !important; |
| 9 | color: var(--helpdocs-color-button-font) !important; |
| 10 | line-height: 1 !important; |
| 11 | padding: 8px 12px !important; |
| 12 | border: 1px solid transparent; |
| 13 | border-radius: 6px !important; |
| 14 | text-decoration: none; |
| 15 | font-size: 0.80rem !important; |
| 16 | font-weight: 500 !important; |
| 17 | transition: background 0.3s ease; |
| 18 | margin-bottom: 0 !important; |
| 19 | cursor: pointer; |
| 20 | display: inline-flex; |
| 21 | align-items: center; |
| 22 | } |
| 23 | |
| 24 | .helpdocs-button:hover, |
| 25 | #screen-options-apply:hover, |
| 26 | #submit:hover { |
| 27 | background: var(--helpdocs-color-button-hover) !important; |
| 28 | } |
| 29 | |
| 30 | .helpdocs-button.button-secondary { |
| 31 | background: #f6f7f7 !important; |
| 32 | color: #1d2327 !important; |
| 33 | } |
| 34 | |
| 35 | .helpdocs-button.button-secondary:hover { |
| 36 | background: #e1e4e6 !important; |
| 37 | } |
| 38 | |
| 39 | .helpdocs-button:disabled { |
| 40 | background: #ccc !important; |
| 41 | background: var(--helpdocs-color-button-disabled, #d5d5d5) !important; |
| 42 | color: #999 !important; |
| 43 | cursor: not-allowed !important; |
| 44 | opacity: 0.7; |
| 45 | border-color: rgba(0, 0, 0, 0.05) !important; |
| 46 | box-shadow: none !important; |
| 47 | } |
| 48 | |
| 49 | .helpdocs-button:disabled:hover { |
| 50 | background: var(--helpdocs-color-button-disabled, #d5d5d5) !important; |
| 51 | } |
| 52 | |
| 53 | .tablenav .button { |
| 54 | border-radius: 6px !important; |
| 55 | } |
| 56 | |
| 57 | .helpdocs-button.button.updating-message { |
| 58 | padding: 8px 12px 5px !important; |
| 59 | } |
| 60 | |
| 61 | .helpdocs-button.button.updating-message:before { |
| 62 | margin: 0px 5px 0 -2px !important; |
| 63 | color: var(--helpdocs-color-button-font) !important; |
| 64 | } |
| 65 | |
| 66 | |
| 67 | /* ----------------------------------------- */ |
| 68 | /* ------------- Click to Copy ------------- */ |
| 69 | /* ----------------------------------------- */ |
| 70 | |
| 71 | /* The container */ |
| 72 | .helpdocs-click-to-copy { |
| 73 | cursor: pointer; |
| 74 | position: relative; /* Essential for absolute positioning of the tip */ |
| 75 | display: inline-block; |
| 76 | transition: color 0.2s ease-in-out; |
| 77 | } |
| 78 | |
| 79 | /* Optional: subtle hover effect to indicate it's interactive */ |
| 80 | .helpdocs-click-to-copy:hover { |
| 81 | color: #2271b1; /* WordPress Blue */ |
| 82 | } |
| 83 | |
| 84 | /* The "Copied!" tip */ |
| 85 | .helpdocs-click-to-copy .helpdocs-copied-tip { |
| 86 | position: absolute; |
| 87 | bottom: 125%; /* Position it above the text */ |
| 88 | left: 50%; |
| 89 | transform: translateX( -50% ); |
| 90 | background: #32373c; /* WordPress Dark Grey */ |
| 91 | color: #fff; |
| 92 | padding: 4px 8px; |
| 93 | font-size: 11px; |
| 94 | line-height: 1; |
| 95 | border-radius: 3px; |
| 96 | white-space: nowrap; |
| 97 | pointer-events: none; /* Prevents the tip from interfering with clicks */ |
| 98 | box-shadow: 0 2px 4px rgba( 0, 0, 0, 0.2 ); |
| 99 | z-index: 100; |
| 100 | } |
| 101 | |
| 102 | /* The small arrow pointing down from the tip */ |
| 103 | .helpdocs-click-to-copy .helpdocs-copied-tip::after { |
| 104 | content: ""; |
| 105 | position: absolute; |
| 106 | top: 100%; |
| 107 | left: 50%; |
| 108 | margin-left: -5px; |
| 109 | border-width: 5px; |
| 110 | border-style: solid; |
| 111 | border-color: #32373c transparent transparent transparent; |
| 112 | } |
| 113 | |
| 114 | |
| 115 | /* ----------------------------------------- */ |
| 116 | /* ------------- Dashboard Menu ------------ */ |
| 117 | /* ----------------------------------------- */ |
| 118 | |
| 119 | #menu-dashboard a[href*="page=admin-help-dashboard"] { |
| 120 | display: none !important; |
| 121 | } |
| 122 | |
| 123 | /* Force the 'Home' link (the first item) to show the active color */ |
| 124 | #menu-dashboard.wp-menu-open ul.wp-submenu li.wp-first-item a { |
| 125 | color: #fff !important; |
| 126 | font-weight: 600 !important; |
| 127 | } |
| 128 | |
| 129 | /* Ensure the top-level Dashboard stays highlighted */ |
| 130 | #menu-dashboard.menu-top > a.wp-menu-open { |
| 131 | background-color: var( --wp-admin-theme-color-darker, #2271b1 ) !important; |
| 132 | color: #fff !important; |
| 133 | } |
| 134 | |
| 135 | |
| 136 | /* ----------------------------------------- */ |
| 137 | /* ----------- Dashboard Widgets ----------- */ |
| 138 | /* ----------------------------------------- */ |
| 139 | |
| 140 | .index-php .helpdocs-dashboard-widget-link { |
| 141 | display: contents; |
| 142 | } |
| 143 | |
| 144 | .index-php .helpdocs-dashboard-widget-link a { |
| 145 | text-decoration: none !important; |
| 146 | display: inline-flex; |
| 147 | align-items: center; |
| 148 | gap: 4px; |
| 149 | font-size: 0.875rem; |
| 150 | padding: 2px 6px; |
| 151 | border-radius: 4px; |
| 152 | transition: filter 0.15s, color 0.15s; |
| 153 | opacity: 0.5; |
| 154 | } |
| 155 | |
| 156 | .index-php .helpdocs-dashboard-widget-link a:hover { |
| 157 | opacity: 1; |
| 158 | } |
| 159 | |
| 160 | .index-php #admin-help-docs.postbox { |
| 161 | background: #F6F7F8 !important; |
| 162 | } |
| 163 | |
| 164 | .index-php #admin-help-docs .helpdocs-dashboard-widget-link a:hover { |
| 165 | filter: brightness( 0.97 ); |
| 166 | } |
| 167 | |
| 168 | .index-php div[id^="helpdocs_"].postbox { |
| 169 | background: var( --helpdocs-color-doc-bg ) !important; |
| 170 | color: var( --helpdocs-color-doc-font ) !important; |
| 171 | } |
| 172 | |
| 173 | .index-php div[id^="helpdocs_"] .helpdocs-dashboard-widget-link a { |
| 174 | color: var(--helpdocs-color-doc-title) !important; |
| 175 | } |
| 176 | |
| 177 | .index-php div[id^="helpdocs_"] .order-higher-indicator, |
| 178 | .index-php div[id^="helpdocs_"] .order-lower-indicator, |
| 179 | .index-php div[id^="helpdocs_"] .toggle-indicator { |
| 180 | color: var(--helpdocs-color-doc-accent) !important; |
| 181 | } |
| 182 | .index-php div[id^="helpdocs_"] .postbox-header h2 { |
| 183 | color: var(--helpdocs-color-doc-title) !important; |
| 184 | } |
| 185 | .index-php div[id^="helpdocs_"] .postbox-header h2 span { |
| 186 | color: revert !important; |
| 187 | } |
| 188 | .index-php div[id^="helpdocs_"] a:not(.helpdocs-dashboard-widget-link a) { |
| 189 | color: var(--helpdocs-color-doc-link) !important; |
| 190 | } |
| 191 | |
| 192 | |
| 193 | /* ----------------------------------------- */ |
| 194 | /* -------- Table of Contents Widget ------- */ |
| 195 | /* ---------------------------------------- */ |
| 196 | |
| 197 | .index-php #admin-help-docs .toc-cont ul { |
| 198 | margin-bottom: 0; |
| 199 | } |
| 200 | |
| 201 | .index-php #admin-help-docs .toc-cont ul li { |
| 202 | margin: 4px 0; |
| 203 | } |
| 204 | |
| 205 | .index-php #admin-help-docs .toc-item { |
| 206 | display: block; |
| 207 | width: calc( 100% - 20px ); |
| 208 | padding: 6px 10px; |
| 209 | border-radius: 8px; |
| 210 | text-decoration: none; |
| 211 | background: #ffffff; |
| 212 | color: #1d2327; |
| 213 | font-size: 13.5px; |
| 214 | border: 1px solid #e2e4e7; |
| 215 | transition: background 0.15s ease; |
| 216 | } |
| 217 | |
| 218 | .index-php #admin-help-docs .toc-item:hover { |
| 219 | background: #f0f2f4; |
| 220 | } |
| 221 | |
| 222 | .index-php #admin-help-docs .toc-item .dashicons { |
| 223 | font-size: 18px; |
| 224 | margin-right: 3px; |
| 225 | color: #999999; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | /* ----------------------------------------- */ |
| 230 | /* -------------- Docs General ------------- */ |
| 231 | /* ----------------------------------------- */ |
| 232 | |
| 233 | :root { |
| 234 | --helpdocs-radius-large: 10px; |
| 235 | --helpdocs-radius-small: 8px; |
| 236 | --helpdocs-shadow: 0 1px 1px rgba(0,0,0,0.04); |
| 237 | } |
| 238 | |
| 239 | .helpdocs-doc-wrapper { |
| 240 | display: flex; |
| 241 | flex-direction: column; |
| 242 | gap: 10px; |
| 243 | border-left: 4px solid var(--helpdocs-color-doc-accent) !important; |
| 244 | } |
| 245 | |
| 246 | .helpdocs-doc-title { |
| 247 | display: flex; |
| 248 | gap: 10px; |
| 249 | align-items: center; |
| 250 | } |
| 251 | |
| 252 | .helpdocs-doc-logo img { |
| 253 | height: 30px; |
| 254 | } |
| 255 | |
| 256 | .helpdocs-doc-content p:first-child { |
| 257 | margin-top: 0; |
| 258 | } |
| 259 | |
| 260 | .helpdocs-doc-content p:last-child { |
| 261 | margin-bottom: 0; |
| 262 | } |
| 263 | |
| 264 | .helpdocs-doc-content img { |
| 265 | max-width: 100%; |
| 266 | height: auto; |
| 267 | } |
| 268 | |
| 269 | .helpdocs-doc-content { |
| 270 | color: var(--helpdocs-color-doc-font) !important; |
| 271 | } |
| 272 | |
| 273 | /* ----------------------------------------- */ |
| 274 | /* -------- Standard (Top/Bottom/Manual) ---- */ |
| 275 | /* ----------------------------------------- */ |
| 276 | |
| 277 | .helpdocs-top-doc, |
| 278 | .helpdocs-bottom-doc, |
| 279 | .helpdocs-manual-doc { |
| 280 | background: var(--helpdocs-color-doc-bg); |
| 281 | padding: 16px 20px; |
| 282 | margin-bottom: 20px; |
| 283 | box-shadow: var(--helpdocs-shadow); |
| 284 | border-radius: var(--helpdocs-radius-large); |
| 285 | border: 1px solid var(--helpdocs-color-doc-accent); |
| 286 | } |
| 287 | |
| 288 | .helpdocs-top-doc:last-child, |
| 289 | .helpdocs-bottom-doc:last-child, |
| 290 | .helpdocs-manual-doc:last-child { |
| 291 | margin-bottom: 0; |
| 292 | } |
| 293 | |
| 294 | .helpdocs-top-doc h2, |
| 295 | .helpdocs-bottom-doc h2, |
| 296 | .helpdocs-manual-doc h2 { |
| 297 | margin: 0; |
| 298 | font-size: 1.1rem; |
| 299 | font-weight: 600; |
| 300 | color: var(--helpdocs-color-doc-title); |
| 301 | display: flex; |
| 302 | align-items: center; |
| 303 | } |
| 304 | |
| 305 | .helpdocs-top-content, |
| 306 | .helpdocs-bottom-content, |
| 307 | .helpdocs-manual-content { |
| 308 | font-size: 13px; |
| 309 | color: var(--helpdocs-color-doc-font); |
| 310 | line-height: 1.6; |
| 311 | } |
| 312 | |
| 313 | .helpdocs-top-content a, |
| 314 | .helpdocs-bottom-content a, |
| 315 | .helpdocs-manual-content a { |
| 316 | color: var(--helpdocs-color-doc-link); |
| 317 | } |
| 318 | |
| 319 | /* ----------------------------------------- */ |
| 320 | /* -------------- Manual Only -------------- */ |
| 321 | /* ----------------------------------------- */ |
| 322 | |
| 323 | .helpdocs-manual-wrapper { |
| 324 | clear: both; |
| 325 | margin: 20px 0; |
| 326 | width: 100%; |
| 327 | } |
| 328 | |
| 329 | /* ----------------------------------------- */ |
| 330 | /* -------------- Top Specific ------------- */ |
| 331 | /* ----------------------------------------- */ |
| 332 | |
| 333 | .helpdocs-top-wrapper.helpdocs-admin-notices { |
| 334 | clear: both; |
| 335 | margin: 40px 20px 20px 0; |
| 336 | overflow: hidden; |
| 337 | } |
| 338 | |
| 339 | .helpdocs-top-wrapper.helpdocs-gutenberg-top { |
| 340 | margin: 20px 20px; |
| 341 | } |
| 342 | |
| 343 | .helpdocs-top-wrapper.helpdocs-in-admin-header { |
| 344 | margin: 0 0 0 -20px; |
| 345 | } |
| 346 | |
| 347 | .helpdocs-top-wrapper.helpdocs-in-admin-header .helpdocs-doc-wrapper { |
| 348 | border-left-width: 0 !important; |
| 349 | } |
| 350 | |
| 351 | .helpdocs-in-admin-header .helpdocs-top-doc { |
| 352 | border-bottom: 1px solid #c3c4c7; |
| 353 | border-radius: 0; |
| 354 | border-top: 0; |
| 355 | border-left: 0; |
| 356 | border-right: 0; |
| 357 | } |
| 358 | |
| 359 | /* ----------------------------------------- */ |
| 360 | /* ------------ Bottom Specific ------------ */ |
| 361 | /* ----------------------------------------- */ |
| 362 | |
| 363 | .helpdocs-bottom-wrapper { |
| 364 | clear: both; |
| 365 | overflow: hidden; |
| 366 | } |
| 367 | |
| 368 | .helpdocs-bottom-wrapper:not(.helpdocs-gutenberg-bottom) { |
| 369 | order: 999; |
| 370 | width: calc(100% - 20px); |
| 371 | margin: 40px 20px 20px 0; |
| 372 | } |
| 373 | |
| 374 | .helpdocs-bottom-wrapper.helpdocs-gutenberg-bottom { |
| 375 | display: block !important; |
| 376 | position: relative !important; |
| 377 | z-index: 10; |
| 378 | flex: 1 1 100%; |
| 379 | align-self: flex-start; |
| 380 | margin: 20px 0; |
| 381 | padding: 0 20px; |
| 382 | width: 100%; |
| 383 | box-sizing: border-box; |
| 384 | } |
| 385 | |
| 386 | /* ----------------------------------------- */ |
| 387 | /* --------------- Side Docs --------------- */ |
| 388 | /* ----------------------------------------- */ |
| 389 | |
| 390 | .helpdocs-side-wrapper { |
| 391 | clear: both; |
| 392 | width: 100%; |
| 393 | box-sizing: border-box; |
| 394 | } |
| 395 | |
| 396 | .helpdocs-side-wrapper:not(.helpdocs-gutenberg-side) { |
| 397 | margin-bottom: 20px; |
| 398 | } |
| 399 | |
| 400 | .helpdocs-side-wrapper.helpdocs-gutenberg-side { |
| 401 | padding: 16px; |
| 402 | border-bottom: 1px solid #e0e0e0; |
| 403 | background: #fff; |
| 404 | margin-bottom: 0; |
| 405 | } |
| 406 | |
| 407 | #side-sortables .helpdocs-side-wrapper { |
| 408 | margin: 10px 0 20px 0; |
| 409 | } |
| 410 | |
| 411 | .helpdocs-side-doc { |
| 412 | background: var(--helpdocs-color-doc-bg); |
| 413 | padding: 12px 15px; |
| 414 | margin-bottom: 15px; |
| 415 | box-shadow: var(--helpdocs-shadow); |
| 416 | border-radius: var(--helpdocs-radius-small); |
| 417 | border: 1px solid var(--helpdocs-color-doc-accent); |
| 418 | } |
| 419 | |
| 420 | .helpdocs-side-doc h2 { |
| 421 | font-size: 0.95rem; |
| 422 | font-weight: 600; |
| 423 | color: var(--helpdocs-color-doc-title); |
| 424 | padding: 0 !important; |
| 425 | margin: 0; |
| 426 | display: flex; |
| 427 | align-items: center; |
| 428 | } |
| 429 | |
| 430 | .helpdocs-side-doc .helpdocs-doc-logo img { |
| 431 | height: 22px; |
| 432 | } |
| 433 | |
| 434 | .helpdocs-side-content { |
| 435 | font-size: 12px; |
| 436 | color: var(--helpdocs-color-doc-font); |
| 437 | line-height: 1.5; |
| 438 | margin-top: 8px; |
| 439 | } |
| 440 | |
| 441 | .helpdocs-side-content p { |
| 442 | margin-bottom: 10px; |
| 443 | } |
| 444 | |
| 445 | /* ----------------------------------------- */ |
| 446 | /* ------------- Element Item -------------- */ |
| 447 | /* ----------------------------------------- */ |
| 448 | |
| 449 | .helpdocs-element-item { |
| 450 | display: block; |
| 451 | margin: 8px 0; |
| 452 | padding: 12px 15px; |
| 453 | background: var(--helpdocs-color-doc-bg, #f9f9f9); |
| 454 | border: 1px solid var(--helpdocs-color-doc-accent, #2271b1); |
| 455 | border-left-width: 4px; |
| 456 | border-radius: 4px; |
| 457 | color: var(--helpdocs-color-doc-font, #3c434a); |
| 458 | font-size: 12px; |
| 459 | line-height: 1.5; |
| 460 | box-shadow: 0 1px 2px rgba(0,0,0,0.05); |
| 461 | width: fit-content; |
| 462 | max-width: 500px; |
| 463 | } |
| 464 | |
| 465 | .helpdocs-element-item a { |
| 466 | text-decoration: underline; |
| 467 | color: var(--helpdocs-color-doc-link); |
| 468 | } |
| 469 | |
| 470 | input + .helpdocs-element-item { |
| 471 | margin-top: 10px; |
| 472 | } |
| 473 | |
| 474 | td > .helpdocs-element-item { |
| 475 | margin-left: 5px; |
| 476 | } |
| 477 | |
| 478 | |
| 479 | /* ----------------------------------------- */ |
| 480 | /* -------------- Admin Bar ---------------- */ |
| 481 | /* ----------------------------------------- */ |
| 482 | |
| 483 | .has-add-new-link #wp-admin-bar-helpdocs_admin_bar-default { |
| 484 | padding-bottom: 0 !important; |
| 485 | } |
| 486 | |
| 487 | #wp-admin-bar-helpdocs_add_new .ab-item { |
| 488 | white-space: nowrap !important; |
| 489 | display: flex !important; |
| 490 | align-items: center !important; |
| 491 | padding-right: 15px !important; /* Extra breathing room on the right */ |
| 492 | } |
| 493 | |
| 494 | #wp-admin-bar-helpdocs_add_new { |
| 495 | margin-top: 6px !important; |
| 496 | background: #3C434A !important; |
| 497 | padding: 3px 0 !important; |
| 498 | } |
| 499 | |
| 500 | #wp-admin-bar-helpdocs_add_new .ab-icon { |
| 501 | padding: 0 5px 0 0 !important; |
| 502 | } |
| 503 | |
| 504 | #wp-admin-bar-helpdocs_add_new:hover, |
| 505 | #wp-admin-bar-helpdocs_add_new:hover .ab-item { |
| 506 | background: #4a525a !important; |
| 507 | } |
| 508 | |
| 509 | |
| 510 | /* ----------------------------------------- */ |
| 511 | /* -------------- Stale Posts -------------- */ |
| 512 | /* ----------------------------------------- */ |
| 513 | |
| 514 | .helpdocs-table { |
| 515 | width: 100%; |
| 516 | border-collapse: collapse; |
| 517 | font-size: 13px; |
| 518 | color: var(--helpdocs-color-doc-font, #3c434a); |
| 519 | box-shadow: var(--helpdocs-shadow); |
| 520 | border-radius: var(--helpdocs-radius-small); |
| 521 | overflow: hidden; /* Required for border-radius to clip the table edges */ |
| 522 | } |
| 523 | |
| 524 | .helpdocs-table thead tr { |
| 525 | background: var(--helpdocs-color-header-bg); |
| 526 | color: var(--helpdocs-color-header-font); |
| 527 | text-align: left; |
| 528 | } |
| 529 | |
| 530 | .helpdocs-table thead th { |
| 531 | padding: 9px 14px; |
| 532 | font-weight: 600; |
| 533 | font-size: 0.80rem; |
| 534 | text-transform: uppercase; |
| 535 | letter-spacing: 0.04em; |
| 536 | } |
| 537 | |
| 538 | .helpdocs-table-type, |
| 539 | .helpdocs-table-last-modified, |
| 540 | .helpdocs-table-age { |
| 541 | text-align: right; |
| 542 | width: 120px; |
| 543 | } |
| 544 | |
| 545 | .helpdocs-table tbody tr { |
| 546 | border-bottom: 1px solid var(--helpdocs-color-border); |
| 547 | transition: background 0.15s ease; |
| 548 | } |
| 549 | |
| 550 | .helpdocs-table tbody tr:last-child { |
| 551 | border-bottom: none; |
| 552 | } |
| 553 | |
| 554 | .helpdocs-table tbody tr:nth-child(even) { |
| 555 | background: #f6f7f7; |
| 556 | } |
| 557 | |
| 558 | .helpdocs-table tbody tr:hover { |
| 559 | background: #f0f2f4; |
| 560 | } |
| 561 | |
| 562 | .helpdocs-table tbody td { |
| 563 | padding: 8px 14px; |
| 564 | vertical-align: middle; |
| 565 | } |
| 566 | |
| 567 | .helpdocs-table tbody td:last-child { |
| 568 | white-space: nowrap; |
| 569 | font-size: 12px; |
| 570 | } |
| 571 | |
| 572 | .helpdocs-table a { |
| 573 | color: var(--helpdocs-color-doc-link); |
| 574 | text-decoration: none; |
| 575 | } |
| 576 | |
| 577 | .helpdocs-table a:hover { |
| 578 | text-decoration: underline; |
| 579 | } |
| 580 | |
| 581 | .helpdocs-table-none, |
| 582 | .helpdocs-error { |
| 583 | font-size: 13px; |
| 584 | padding: 10px 14px; |
| 585 | border-radius: var(--helpdocs-radius-small); |
| 586 | border-left: 4px solid; |
| 587 | margin: 0; |
| 588 | } |
| 589 | |
| 590 | .helpdocs-table-none { |
| 591 | background: #f6f7f7; |
| 592 | border-color: #c3c4c7; |
| 593 | color: #50575e; |
| 594 | } |
| 595 | |
| 596 | .helpdocs-error { |
| 597 | background: #fcf0f1; |
| 598 | border-color: #d63638; |
| 599 | color: #d63638; |
| 600 | } |