59 lines
3.5 KiB
CSS
59 lines
3.5 KiB
CSS
* { box-sizing: border-box; }
|
|
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; padding: 0; background: #0d0d1a; color: #e0e0e0; }
|
|
|
|
#app { display: flex; height: 100vh; }
|
|
#main { flex: 1; padding: 20px; max-width: 680px; margin: 0 auto; overflow-y: auto; }
|
|
|
|
#ver { font-size: 14px; color: #666; font-weight: normal; }
|
|
|
|
h1 { color: #7c6ff7; margin: 0 0 4px; font-size: 20px; }
|
|
|
|
#models { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
|
|
.model-tag { padding: 4px 12px; background: #1a1a3e; border: 1px solid #2a2a4e; border-radius: 14px; font-size: 12px; color: #888; white-space: nowrap; }
|
|
|
|
#visualizer { margin: 10px 0; }
|
|
#meter { border-radius: 6px; background: #1a1a2e; display: block; margin: 0 auto; }
|
|
|
|
#controls { display: flex; gap: 8px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
|
|
#btnRecord { padding: 10px 24px; background: #e84393; color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }
|
|
#btnRecord:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
#btnPlay { padding: 10px 16px; background: #00b894; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
|
|
#btnPlay:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
#btnReset { padding: 10px 16px; background: #636e72; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
|
|
|
|
#status { text-align: center; color: #888; font-size: 14px; min-height: 20px; margin: 6px 0; }
|
|
|
|
#chat { border: 1px solid #2a2a3e; border-radius: 8px; padding: 14px; min-height: 200px; max-height: 340px; overflow-y: auto; background: #13132a; line-height: 1.6; }
|
|
.user { background: #0d2d2d; border-left: 3px solid #00cec9; padding: 8px 12px; margin: 8px 0; border-radius: 0 6px 6px 0; color: #00cec9; font-size: 14px; }
|
|
.user p { margin: 0; }
|
|
.bot { background: #1a1a3e; border-left: 3px solid #a29bfe; padding: 10px 14px; margin: 8px 0 16px; border-radius: 0 6px 6px 0; color: #d0d0f0; font-size: 14px; }
|
|
.bot p { margin: 4px 0; }
|
|
.bot h1, .bot h2, .bot h3 { color: #7c6ff7; margin: 8px 0 4px; font-size: 15px; }
|
|
.bot b { color: #fff; }
|
|
.bot code { background: #2a2a4e; padding: 1px 5px; border-radius: 3px; font-size: 13px; color: #f8c291; }
|
|
.bot ul, .bot ol { margin: 4px 0; padding-left: 20px; }
|
|
.bot li { margin: 2px 0; }
|
|
.bot hr { border: none; border-top: 1px solid #2a2a3e; margin: 10px 0; }
|
|
|
|
#sidebar { width: 280px; background: #111122; border-left: 1px solid #2a2a3e; padding: 14px; overflow-y: auto; }
|
|
#history-title { color: #7c6ff7; font-weight: bold; margin-bottom: 10px; font-size: 15px; }
|
|
.hitem { padding: 6px 8px; border-radius: 4px; cursor: pointer; margin-bottom: 4px; font-size: 13px; color: #bbb; }
|
|
.hitem:hover { background: #1a1a3e; }
|
|
.hq { display: block; }
|
|
|
|
/* Светлая тема */
|
|
body.light { background: #f5f5f5; color: #222; }
|
|
body.light #main h1 { color: #5b4ae0; }
|
|
body.light #chat { background: #fff; border-color: #ddd; }
|
|
body.light .user { background: #e0f7f7; border-left-color: #009688; color: #00695c; }
|
|
body.light .bot { background: #ede7f6; border-left-color: #7c6ff7; color: #333; }
|
|
body.light .bot b { color: #000; }
|
|
body.light .bot code { background: #e0e0e0; color: #c62828; }
|
|
body.light #status { color: #666; }
|
|
body.light #sidebar { background: #e8e8e8; border-color: #ddd; }
|
|
body.light #history-title { color: #5b4ae0; }
|
|
body.light .hitem { color: #555; }
|
|
body.light .hitem:hover { background: #dcdcdc; }
|
|
body.light .model-tag { background: #e0e0e0; border-color: #ccc; color: #555; }
|
|
body.light #meter { background: #e0e0e0; }
|
|
body.light #btnReset { background: #999; } |