| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
|
|
|
| .gradio-container, .main {
|
| padding: 0 !important;
|
| --layout-gap: 0 !important;
|
| }
|
|
|
| footer {
|
| display: none !important;
|
| }
|
|
|
| html {
|
| scroll-behavior: smooth;
|
| }
|
|
|
| html, body {
|
| height: 100%;
|
| overflow: hidden;
|
| }
|
|
|
| #main-row {
|
| height: var(--vh, 100%);
|
| max-height: 100%;
|
| }
|
|
|
| button[aria-label="Clear"] {
|
| display: none;
|
| }
|
|
|
| #chat-column {
|
| height: 100%;
|
| display: flex;
|
| flex-direction: column;
|
| padding: 0;
|
| overflow: hidden;
|
| position: relative;
|
| }
|
|
|
| #chatbot {
|
| flex: 1;
|
| min-height: 100px;
|
| border: 0;
|
| }
|
|
|
| .sidebar {
|
| border-right: 1px solid var(--border-color-primary);
|
| box-shadow: none;
|
| }
|
|
|
| .sidebar-parent:has(.sidebar.open:not(.right)) {
|
| padding-left: 320px;
|
| }
|
|
|
| .sidebar-content {
|
| position: relative;
|
| padding: 50px 0 0 0 !important;
|
| background: none;
|
| }
|
|
|
| .sidebar-content::before {
|
| content: "";
|
| position: absolute;
|
| inset: 0;
|
| background: url("/gradio_api/file=static/svg/logo.svg") no-repeat top;
|
| background-size: 180px 52px;
|
| pointer-events: none;
|
| z-index: 0;
|
| }
|
|
|
| .toggle-button {
|
| top: 10px;
|
| }
|
|
|
|
|
| .sidebar > :first-child {
|
| margin-bottom: 8px;
|
| }
|
|
|
|
|
| #main-row .sidebar button {
|
| transition: all 0.15s ease;
|
| }
|
|
|
| #main-row .sidebar button:hover {
|
| transform: translateY(-1px);
|
| }
|
|
|
| .sidebar-content .form {
|
| border: 0;
|
| background: transparent;
|
| }
|
|
|
| .wrap {
|
| gap: 0;
|
| }
|
|
|
|
|
| #conversations-radio {
|
| padding: 0;
|
| border: 0;
|
| background: transparent;
|
| }
|
|
|
| #conversations-radio > div:last-child {
|
| display: grid;
|
| gap: 2px;
|
| }
|
|
|
| #conversations-radio input[type="radio"] {
|
| opacity: 0;
|
| position: absolute;
|
| width: 0;
|
| height: 0;
|
| }
|
|
|
| #conversations-radio span[data-testid="block-info"] {
|
| display: none;
|
| }
|
|
|
| #conversations-radio label {
|
| padding: 10px 14px;
|
| margin: 0;
|
| cursor: pointer;
|
| display: flex;
|
| align-items: center;
|
| transition: all 0.2s ease;
|
| overflow: hidden;
|
| text-overflow: ellipsis;
|
| white-space: nowrap;
|
| background: transparent;
|
| color: var(--button-secondary-text-color);
|
| border-bottom: 1px solid var(--border-color-primary);
|
| }
|
|
|
| label span {
|
| margin: 0;
|
| }
|
|
|
| .icon-button-wrapper {
|
| display: hidden;
|
| }
|
|
|
|
|
| @keyframes messageSlideIn {
|
| from {
|
| opacity: 0;
|
| transform: translateY(16px);
|
| }
|
| to {
|
| opacity: 1;
|
| transform: translateY(0);
|
| }
|
| }
|
|
|
|
|
| #chatbot [data-testid="bot"],
|
| #chatbot [data-testid="user"],
|
| #chatbot [class*="message"] {
|
| animation: messageSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
| }
|
|
|
|
|
|
|
|
|
|
|
| #send-btn, #stop-btn {
|
| font-size: 0;
|
| height: 100%;
|
| min-width: 40px;
|
| transition: transform 0.15s ease, opacity 0.15s ease;
|
| cursor: pointer;
|
| padding: 0;
|
| }
|
|
|
| #send-btn::after {
|
| content: "";
|
| display: inline-block;
|
| width: 20px;
|
| height: 20px;
|
| background: url("/gradio_api/file=static/svg/send.svg") no-repeat center;
|
| background-size: contain;
|
| }
|
|
|
| #stop-btn::after {
|
| content: "";
|
| display: inline-block;
|
| width: 20px;
|
| height: 20px;
|
| background: url("/gradio_api/file=static/svg/stop.svg") no-repeat center;
|
| background-size: contain;
|
| }
|
|
|
|
|
| #chatbot::-webkit-scrollbar {
|
| width: 6px;
|
| }
|
|
|
| #chatbot::-webkit-scrollbar-track {
|
| background: transparent;
|
| }
|
|
|
| #chatbot::-webkit-scrollbar-thumb {
|
| background: var(--border-color-primary);
|
| transition: background 0.2s ease;
|
| }
|
|
|
| #chatbot::-webkit-scrollbar-thumb:hover {
|
| background: var(--neutral-400);
|
| }
|
|
|
|
|
| .sidebar::-webkit-scrollbar {
|
| width: 4px;
|
| }
|
|
|
| .sidebar::-webkit-scrollbar-track {
|
| background: transparent;
|
| }
|
|
|
| .sidebar::-webkit-scrollbar-thumb {
|
| background: var(--border-color-primary);
|
| border-radius: 2px;
|
| }
|
|
|
| .input-container textarea {
|
| background: var(--background-fill-secondary) !important;
|
| }
|
|
|
| .bubble-wrap {
|
| background: var(--background-fill-primary) !important;
|
| }
|
|
|
| |
| |
|
|
|
|
| #landing-page-container {
|
| position: absolute;
|
| top: 0;
|
| left: 0;
|
| right: 0;
|
| bottom: 0;
|
| display: flex;
|
| align-items: center;
|
| justify-content: center;
|
| background: var(--background-fill-primary);
|
| z-index: 10;
|
| pointer-events: auto;
|
| }
|
|
|
| #landing-page {
|
| width: 100%;
|
| height: 100%;
|
| display: flex;
|
| align-items: center;
|
| justify-content: center;
|
| }
|
|
|
| .landing-content {
|
| display: flex;
|
| flex-direction: column;
|
| align-items: center;
|
| gap: 32px;
|
| padding: 40px;
|
| max-width: 600px;
|
| width: 100%;
|
| }
|
|
|
|
|
| .landing-logo {
|
| margin-bottom: 100px !important;
|
| }
|
|
|
| .landing-logo svg {
|
| height: 60px;
|
| width: auto;
|
| }
|
|
|
|
|
| #landing-page-container.hidden {
|
| display: none !important;
|
| }
|
|
|
| .landing-prompt {
|
| bottom: 5%;
|
| position: absolute;
|
| text-align: center;
|
| }
|
|
|
| body:not(.dark) .landing-logo img, body:not(.dark) .sidebar-content::before {
|
| filter: invert(0.8);
|
| }
|
|
|
| |
| |
|
|
|
|
|
|
| #chat-column.landing-active #input-row {
|
| position: absolute;
|
| top: 50%;
|
| left: 50%;
|
| transform: translateX(-50%);
|
| width: 100%;
|
| max-width: 600px;
|
| z-index: 20;
|
| }
|
|
|
| #chat-column.landing-active #send-btn,
|
| #chat-column.landing-active #stop-btn {
|
| align-self: stretch;
|
| min-width: 56px;
|
| padding: 0 8px;
|
| height: auto;
|
| }
|
|
|
|
|
| #chat-column:not(.landing-active) #input-row {
|
| position: relative;
|
| bottom: 3%;
|
| left: auto;
|
| transform: none;
|
| max-width: none;
|
| }
|
|
|
|
|
| #input-row {
|
| z-index: 15;
|
| position: relative;
|
| }
|
|
|
| #input-row .form {
|
| background: rgba(255, 255, 255, 0.03) !important;
|
| border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
| border-radius: 8px !important;
|
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace !important;
|
| transition: all 0.2s ease !important;
|
| }
|
|
|
| #input-row .form:focus-within {
|
| border-color: rgba(255, 255, 255, 0.3) !important;
|
| background: rgba(255, 255, 255, 0.05) !important;
|
| box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
|
| }
|
|
|
|
|
| #input-row textarea,
|
| #input-row input[type="text"] {
|
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace !important;
|
| caret-color: var(--body-text-color) !important;
|
| caret-shape: block !important;
|
| }
|
|
|
|
|
| @keyframes inputCursorBlink {
|
| 0%, 50% { border-right-color: var(--body-text-color); }
|
| 51%, 100% { border-right-color: transparent; }
|
| }
|
|
|
|
|
| @media (max-width: 768px) {
|
| .landing-content {
|
| padding: 20px;
|
| gap: 24px;
|
| }
|
|
|
| .landing-logo svg {
|
| height: 40px;
|
| }
|
| }
|
|
|
|
|
| @media (min-width: 749px) {
|
| #chat-column {
|
| max-width: 748px;
|
| margin: 0 auto;
|
| }
|
| }
|
|
|
|
|
| body, .gradio-container {
|
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace !important;
|
| }
|
|
|
|
|
| #chatbot:empty,
|
| #chatbot .empty-state {
|
| display: flex;
|
| align-items: center;
|
| justify-content: center;
|
| height: 100%;
|
| }
|
|
|
|
|
| #chatbot {
|
| z-index: 5;
|
| }
|
|
|
| .message-wrap {
|
| margin-bottom: 40px;
|
| }
|
|
|