|
131 | 131 | gap: 8px; |
132 | 132 | border-top: 1px solid rgba(0, 0, 0, 0.06); |
133 | 133 | background-color: rgba(0, 0, 0, 0.02); |
| 134 | + width: 100%; |
134 | 135 | } |
135 | 136 |
|
136 | 137 | [data-theme="dark"] .inputForm { |
|
144 | 145 | color: var(--ifm-color-primary); |
145 | 146 | font-weight: 600; |
146 | 147 | flex-shrink: 0; |
| 148 | + white-space: nowrap; |
147 | 149 | } |
148 | 150 |
|
149 | 151 | .terminalInput { |
150 | 152 | flex: 1; |
151 | | - min-width: 0; /* Prevents input from overflowing flex container on mobile */ |
152 | | - background: transparent; |
153 | | - border: none; |
| 153 | + min-width: 80px; /* Prevents flexbox from collapsing input to 0px width */ |
| 154 | + background: rgba(0, 0, 0, 0.04); |
| 155 | + border: 1px solid rgba(0, 0, 0, 0.12); |
154 | 156 | outline: none; |
155 | | - color: #f8fafc; |
| 157 | + color: #0f172a; |
156 | 158 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
157 | 159 | font-size: 0.9rem; |
158 | 160 | caret-color: var(--ifm-color-primary); |
159 | | - padding: 4px 6px; |
| 161 | + padding: 6px 8px; |
160 | 162 | border-radius: 4px; |
| 163 | + transition: border-color 0.15s ease; |
161 | 164 | } |
162 | 165 |
|
163 | | -[data-theme="light"] .terminalInput { |
164 | | - color: #0f172a; |
| 166 | +[data-theme="dark"] .terminalInput { |
| 167 | + background: rgba(255, 255, 255, 0.05); |
| 168 | + border-color: rgba(255, 255, 255, 0.12); |
| 169 | + color: #f8fafc; |
| 170 | +} |
| 171 | + |
| 172 | +.terminalInput:focus { |
| 173 | + border-color: var(--ifm-color-primary); |
165 | 174 | } |
166 | 175 |
|
167 | 176 | /* Accessible and clean action button */ |
|
173 | 182 | font-weight: 600; |
174 | 183 | font-size: 0.8rem; |
175 | 184 | letter-spacing: 0.02rem; |
176 | | - padding: 6px 14px; |
| 185 | + padding: 6px 12px; |
177 | 186 | cursor: pointer; |
178 | 187 | border-radius: 4px; |
179 | 188 | transition: background-color 0.15s ease; |
|
200 | 209 | } |
201 | 210 |
|
202 | 211 | .inputForm { |
203 | | - padding: 0.6rem 0.8rem; |
204 | | - flex-wrap: wrap; /* Allows wrap on tight screens to keep button visible */ |
| 212 | + padding: 0.5rem 0.75rem; |
| 213 | + gap: 6px; /* Tightens gaps so prompt, input, and button fit cleanly on one line */ |
| 214 | + } |
| 215 | + |
| 216 | + .submitInputBtn { |
| 217 | + padding: 6px 10px; |
| 218 | + font-size: 0.75rem; |
205 | 219 | } |
206 | 220 | } |
207 | 221 |
|
|
0 commit comments