Changeset 3751971 for mxchat-basic/trunk/css/chat-style.css
- Timestamp:
- 10/17/2026 01:47:11 PM (12 days ago)
- File:
-
- 1 edited
-
mxchat-basic/trunk/css/chat-style.css (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxchat-basic/trunk/css/chat-style.css
r3738408 r3751971 413 413 } 414 414 415 /* The code block chrome (wrapper, header, language label, Copy) is tinted from the bubble's own 416 text colour, so it reads on every bot bubble: dark text on a light theme, light text on a dark 417 one. Each colour is declared twice: a neutral grey first for browsers without color-mix(), 418 then the currentColor tint, which those browsers skip. The pre and code colours below are 419 unchanged. */ 415 420 .mxchat-code-block-container { 416 421 margin: 16px 0; 417 422 border-radius: 8px; 418 background: rgba(255, 255, 255, 0.1); 419 border: 1px solid rgba(255, 255, 255, 0.2); 423 background: rgba(128, 128, 128, 0.08); 424 background: color-mix(in srgb, currentColor 8%, transparent); 425 border: 1px solid rgba(128, 128, 128, 0.25); 426 border: 1px solid color-mix(in srgb, currentColor 14%, transparent); 420 427 overflow: hidden; 421 428 font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace; … … 426 433 justify-content: space-between; 427 434 align-items: center; 428 background: rgba(255, 255, 255, 0.15); 435 background: rgba(128, 128, 128, 0.08); 436 background: color-mix(in srgb, currentColor 8%, transparent); 429 437 padding: 8px 12px; 430 border-bottom: 1px solid rgba(255, 255, 255, 0.2); 438 border-bottom: 1px solid rgba(128, 128, 128, 0.25); 439 border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); 431 440 font-size: 11px; 432 441 min-height: 36px; … … 434 443 435 444 .mxchat-code-language { 436 color: rgba(255, 255, 255, 0.8); 445 color: inherit; 446 opacity: 0.85; 437 447 font-weight: 600; 438 448 text-transform: uppercase; … … 442 452 443 453 .mxchat-copy-button { 444 background: rgba(255, 255, 255, 0.2); 445 color: white; 446 border: 1px solid rgba(255, 255, 255, 0.3); 454 background: rgba(128, 128, 128, 0.12); 455 background: color-mix(in srgb, currentColor 10%, transparent); 456 color: inherit; 457 border: 1px solid rgba(128, 128, 128, 0.4); 458 border: 1px solid color-mix(in srgb, currentColor 30%, transparent); 447 459 padding: 4px 8px; 448 460 border-radius: 4px; … … 455 467 456 468 .mxchat-copy-button:hover { 457 background: rgba(255, 255, 255, 0.3); 458 border-color: rgba(255, 255, 255, 0.4); 469 background: rgba(128, 128, 128, 0.2); 470 background: color-mix(in srgb, currentColor 16%, transparent); 471 border-color: rgba(128, 128, 128, 0.5); 472 border-color: color-mix(in srgb, currentColor 40%, transparent); 459 473 } 460 474 461 475 .mxchat-copy-button:active { 462 background: rgba(255, 255, 255, 0.4); 476 background: rgba(128, 128, 128, 0.28); 477 background: color-mix(in srgb, currentColor 22%, transparent); 463 478 } 464 479
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)