Spaces:
Running
Running
File size: 2,387 Bytes
814c07e 6c01099 814c07e 6c01099 814c07e 6c01099 814c07e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | :root {
--bg: #0a0a0a;
--bg-2: #141414;
--fg: #e8e8e8;
--fg-dim: #888;
--accent: #fff;
--border: #222;
--error: #ff6b6b;
font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
* {
box-sizing: border-box;
}
body {
background: var(--bg);
color: var(--fg);
margin: 0;
min-height: 100vh;
}
.mono {
font-family: inherit;
}
.topbar {
padding: 16px 24px;
border-bottom: 1px solid var(--border);
}
.brand-name {
font-weight: 600;
}
.brand-sub {
color: var(--fg-dim);
margin-left: 8px;
}
.grid {
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 16px;
padding: 16px 24px;
min-height: calc(100vh - 60px);
}
.pane {
display: flex;
flex-direction: column;
gap: 8px;
}
.pane-header {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 13px;
color: var(--fg-dim);
}
.model-indicator,
.loading-indicator {
font-size: 12px;
color: var(--fg-dim);
}
textarea#tools {
flex: 1;
min-height: 400px;
background: var(--bg-2);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 12px;
font-size: 13px;
resize: none;
}
input#query {
background: var(--bg-2);
color: var(--fg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 10px 12px;
font-size: 14px;
}
.result-pane {
flex: 1;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: 4px;
padding: 12px;
font-size: 13px;
white-space: pre-wrap;
word-break: break-word;
margin: 0;
overflow: auto;
}
.result-pane.error {
color: var(--error);
}
.examples {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.example-chip {
background: transparent;
color: var(--fg);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px 12px;
font-size: 12px;
cursor: pointer;
transition: opacity 120ms ease-in-out;
}
.example-chip:hover:not(:disabled) {
background: var(--bg-2);
}
.example-chip:disabled,
input#query:disabled,
textarea#tools:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* Subtle pulse on the status text while model is loading or generating. */
.loading-indicator.busy {
animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.55; }
50% { opacity: 1; }
}
.error-inline {
color: var(--error);
font-size: 12px;
margin-top: 4px;
}
|