Agent banner: green instead of orange
Browse files41 unmodified lines4243444546474849505152535455565711 unmodified lines69707172737475767741 unmodified linesCSS = """.u3d-agent {position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px;border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent);border-radius: var(--block-radius, 8px);background: color-mix(in srgb, var(--color-accent) 9%, var(--block-background-fill));}/* color: inherit, or Gradio's prose styles paint icons in the body text colour. */.u3d-agent svg { color: inherit; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.u3d-agent svg * { color: inherit; stroke: inherit; fill: inherit; }.u3d-agent-icon {flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;background: var(--color-accent); color: #fff;}.u3d-agent-text { flex: 0 1 auto; min-width: 0; line-height: 1.3; }.u3d-agent-title { font-size: 15px; font-weight: 600; color: var(--body-text-color); }11 unmodified linesflex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;padding: 7px 14px; border-radius: var(--button-large-radius, 8px); border: none;font-size: 14px; font-weight: 600;background: var(--button-primary-background-fill); color: var(--button-primary-text-color);}.u3d-agent-copy:hover { background: var(--button-primary-background-fill-hover); }.u3d-agent-copy span { color: inherit; }.u3d-agent-copy svg { width: 16px; height: 16px; }.u3d-agent-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }41 unmodified lines42434445464748495051525354555657585911 unmodified lines71727374757677787941 unmodified linesCSS = """.u3d-agent {position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px;/* Green, set apart from the app's orange accent; white text on --u3d-green is 5:1. */--u3d-green: #15803d; --u3d-green-hover: #166534; --u3d-green-tint: #16a34a;border: 1px solid color-mix(in srgb, var(--u3d-green-tint) 45%, transparent);border-radius: var(--block-radius, 8px);background: color-mix(in srgb, var(--u3d-green-tint) 9%, var(--block-background-fill));}/* color: inherit, or Gradio's prose styles paint icons in the body text colour. */.u3d-agent svg { color: inherit; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.u3d-agent svg * { color: inherit; stroke: inherit; fill: inherit; }.u3d-agent-icon {flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;background: var(--u3d-green); color: #fff;}.u3d-agent-text { flex: 0 1 auto; min-width: 0; line-height: 1.3; }.u3d-agent-title { font-size: 15px; font-weight: 600; color: var(--body-text-color); }11 unmodified linesflex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;padding: 7px 14px; border-radius: var(--button-large-radius, 8px); border: none;font-size: 14px; font-weight: 600;background: var(--u3d-green); color: #fff;}.u3d-agent-copy:hover { background: var(--u3d-green-hover); }.u3d-agent-copy span { color: inherit; }.u3d-agent-copy svg { width: 16px; height: 16px; }.u3d-agent-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
agent_banner.py+7-5