Spaces:
Running
Running
Update bot_style.css
Browse files- bot_style.css +62 -160
bot_style.css
CHANGED
|
@@ -1,160 +1,62 @@
|
|
| 1 |
-
:root{
|
| 2 |
-
-
|
| 3 |
-
--
|
| 4 |
-
--
|
| 5 |
-
--text:#
|
| 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 |
-
.user-block{display:flex; gap:8px; align-items:center}
|
| 64 |
-
.user-initial{width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#29408a; color:#fff; font-weight:700}
|
| 65 |
-
.user-menu{display:flex; flex-direction:column; gap:2px}
|
| 66 |
-
.user-menu #userName{font-size:12px; color:var(--muted)}
|
| 67 |
-
|
| 68 |
-
/* layout */
|
| 69 |
-
main{padding:16px; max-width:1200px; margin:0 auto}
|
| 70 |
-
.tab{display:none}
|
| 71 |
-
.tab.active{display:block}
|
| 72 |
-
|
| 73 |
-
/* chat */
|
| 74 |
-
.chat{display:flex; flex-direction:column; min-height:70vh}
|
| 75 |
-
.chat-body{flex:1; display:flex; flex-direction:column; gap:12px; padding:8px}
|
| 76 |
-
.user-message,.bot-message{
|
| 77 |
-
background:var(--card); border-radius:16px; padding:12px 14px; box-shadow:var(--shadow);
|
| 78 |
-
max-width:85%;
|
| 79 |
-
}
|
| 80 |
-
.user-message{align-self:flex-end; background:#eaffea}
|
| 81 |
-
.bot-message{align-self:flex-start; background:#f7f9ff}
|
| 82 |
-
.bot-message.welcome{display:flex; gap:12px}
|
| 83 |
-
.bot-icon{width:42px; height:42px}
|
| 84 |
-
|
| 85 |
-
.mantra{
|
| 86 |
-
background:linear-gradient(180deg, #fff7da, #fff0b8);
|
| 87 |
-
border-left:4px solid #e1c657; padding:12px; border-radius:10px; margin-top:6px;
|
| 88 |
-
}
|
| 89 |
-
.mantra pre{white-space:pre-wrap; font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace; color:#b91c1c; font-weight:700}
|
| 90 |
-
|
| 91 |
-
.chat-footer{position:sticky; bottom:0; background:transparent; padding-top:8px}
|
| 92 |
-
.input-wrap{
|
| 93 |
-
background:var(--card); border-radius:16px; box-shadow:var(--shadow); padding:8px; display:flex; align-items:center; gap:8px;
|
| 94 |
-
}
|
| 95 |
-
#userInput{
|
| 96 |
-
flex:1; border:none; outline:none; resize:none; max-height:160px; min-height:40px; padding:8px 10px; font:inherit; background:transparent;
|
| 97 |
-
}
|
| 98 |
-
.input-actions{display:flex; gap:8px}
|
| 99 |
-
|
| 100 |
-
/* shastra */
|
| 101 |
-
.grid{display:grid; grid-template-columns: 280px 1fr; gap:16px}
|
| 102 |
-
.side{background:var(--card); padding:12px; border-radius:12px; box-shadow:var(--shadow)}
|
| 103 |
-
.tree{list-style:none; padding-left:0; margin:0}
|
| 104 |
-
.tree li{padding:8px; border-radius:8px; cursor:pointer}
|
| 105 |
-
.tree li:hover{background:#f0f5ff}
|
| 106 |
-
.content{display:flex; flex-direction:column; gap:12px}
|
| 107 |
-
.blocks{display:grid; grid-template-columns:1fr 1fr; gap:12px}
|
| 108 |
-
.block{background:var(--card); padding:12px; border-radius:12px; box-shadow:var(--shadow)}
|
| 109 |
-
.block-head{display:flex; align-items:center; justify-content:space-between; gap:10px}
|
| 110 |
-
.scroller{max-height:340px; overflow:auto}
|
| 111 |
-
#ytWrap{aspect-ratio:16/9; background:#000; border-radius:10px; overflow:hidden}
|
| 112 |
-
#ytPlayer{width:100%; height:100%}
|
| 113 |
-
|
| 114 |
-
/* satsang */
|
| 115 |
-
.satsang .row{display:flex; gap:8px; align-items:center}
|
| 116 |
-
.wrap{flex-wrap:wrap}
|
| 117 |
-
.stats{display:flex; gap:12px; margin:8px 0}
|
| 118 |
-
.stat{background:var(--card); padding:8px 12px; border-radius:10px; box-shadow:var(--shadow)}
|
| 119 |
-
.stat span{font-size:12px; color:var(--muted); display:block}
|
| 120 |
-
.video-card{background:var(--card); padding:12px; border-radius:12px; box-shadow:var(--shadow); margin-top:8px}
|
| 121 |
-
.yt{width:100%; aspect-ratio:16/9; background:#000; border-radius:10px}
|
| 122 |
-
.muted{color:var(--muted)}
|
| 123 |
-
.saved details{background:var(--card); padding:8px 10px; border-radius:10px; box-shadow:var(--shadow); margin:6px 0}
|
| 124 |
-
.saved summary{cursor:pointer}
|
| 125 |
-
|
| 126 |
-
/* modal */
|
| 127 |
-
.modal{border:none; padding:0}
|
| 128 |
-
.modal::backdrop{background:rgba(0,0,0,.45)}
|
| 129 |
-
.modal-card{background:var(--card); border-radius:16px; width:min(560px, 92vw); box-shadow:var(--shadow)}
|
| 130 |
-
.modal-head{display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #f0f0f0}
|
| 131 |
-
.modal-body{padding:12px 14px; display:grid; gap:12px}
|
| 132 |
-
.modal-foot{padding:12px 14px; display:flex; justify-content:flex-end; border-top:1px solid #f0f0f0}
|
| 133 |
-
.qr{width:160px; border-radius:12px; box-shadow:var(--shadow)}
|
| 134 |
-
.row code{background:#f5f5f5; padding:6px 8px; border-radius:8px}
|
| 135 |
-
|
| 136 |
-
.switch{display:flex; gap:10px; align-items:center}
|
| 137 |
-
.stack{display:grid; gap:6px}
|
| 138 |
-
|
| 139 |
-
/* loaders */
|
| 140 |
-
.loader{
|
| 141 |
-
position:fixed; inset:auto 16px 16px auto; background:var(--card); border-radius:12px;
|
| 142 |
-
padding:10px 12px; display:flex; gap:10px; align-items:center; box-shadow:var(--shadow)
|
| 143 |
-
}
|
| 144 |
-
.spinner{
|
| 145 |
-
width:22px; height:22px; border-radius:50%; border:3px solid #eee; border-top-color:#29408a; animation:spin 1s linear infinite;
|
| 146 |
-
}
|
| 147 |
-
@keyframes spin{to{transform:rotate(360deg)}}
|
| 148 |
-
|
| 149 |
-
/* toast */
|
| 150 |
-
.toast{
|
| 151 |
-
position:fixed; left:50%; transform:translateX(-50%);
|
| 152 |
-
bottom:20px; background:#111; color:#fff; padding:10px 14px; border-radius:10px; box-shadow:var(--shadow)
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
/* responsive */
|
| 156 |
-
@media (max-width: 960px){
|
| 157 |
-
.blocks{grid-template-columns:1fr}
|
| 158 |
-
.grid{grid-template-columns:1fr}
|
| 159 |
-
.nav{display:none}
|
| 160 |
-
}
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
color-scheme: light dark;
|
| 3 |
+
--bg: #0b0c10;
|
| 4 |
+
--panel: #111318;
|
| 5 |
+
--text: #e6e6e6;
|
| 6 |
+
--muted: #9aa3b2;
|
| 7 |
+
--accent: #7dd3fc;
|
| 8 |
+
--bubble: #171a21;
|
| 9 |
+
--user: #0f172a;
|
| 10 |
+
--ring: #1f6feb;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
* { box-sizing: border-box; }
|
| 14 |
+
html, body { height: 100%; margin: 0; }
|
| 15 |
+
body { font: 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica, Arial, "Apple Color Emoji","Noto Color Emoji","Segoe UI Emoji"; background: var(--bg); color: var(--text); }
|
| 16 |
+
|
| 17 |
+
.app { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
|
| 18 |
+
.topbar { display:flex; align-items:center; gap:.5rem; padding:.6rem .9rem; background: var(--panel); border-bottom: 1px solid #202431; position:sticky; top:0; z-index: 10; }
|
| 19 |
+
.topbar .brand { font-weight: 600; letter-spacing:.3px; }
|
| 20 |
+
.topbar button { background: transparent; color: var(--text); border: 1px solid #2a2f3d; padding:.35rem .5rem; border-radius:.6rem; cursor:pointer; }
|
| 21 |
+
.topbar .spacer { flex:1; }
|
| 22 |
+
|
| 23 |
+
.chat { overflow:auto; padding: 1rem .9rem; display:flex; flex-direction:column; gap: .8rem; }
|
| 24 |
+
|
| 25 |
+
.msg { display:flex; gap:.6rem; align-items:flex-start; }
|
| 26 |
+
.msg .avatar { width: 28px; height: 28px; border-radius:50%; background:#2b3242; flex: 0 0 28px; }
|
| 27 |
+
.msg.user .avatar { background:#334155; }
|
| 28 |
+
.msg .bubble { background: var(--bubble); border:1px solid #20283a; padding:.75rem .8rem; border-radius: 1rem; max-width: 900px; width: fit-content; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
|
| 29 |
+
.msg.user .bubble { background: var(--user); }
|
| 30 |
+
|
| 31 |
+
.header { display:flex; align-items:center; gap:.5rem; margin-bottom:.3rem; }
|
| 32 |
+
.header .who { font-weight: 600; }
|
| 33 |
+
.header .tags { font-size: 12px; color: var(--muted); }
|
| 34 |
+
|
| 35 |
+
.body pre { background:#0b1020; padding:.8rem; border-radius:.6rem; overflow:auto; border:1px solid #1a2240; }
|
| 36 |
+
.body code { white-space: pre-wrap; word-break: break-word; }
|
| 37 |
+
|
| 38 |
+
.sources { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.5rem; }
|
| 39 |
+
.source-chip { font-size:12px; color:#cbd5e1; background:#0f172a; border:1px solid #1f2937; padding:.18rem .45rem; border-radius:999px; text-decoration:none; }
|
| 40 |
+
|
| 41 |
+
.actions { display:flex; gap:.4rem; margin-top:.5rem; }
|
| 42 |
+
.action-btn { font-size:12px; border:1px solid #1e293b; background:#0b1220; color:#e2e8f0; padding:.25rem .5rem; border-radius:.5rem; cursor:pointer; }
|
| 43 |
+
|
| 44 |
+
.tools { display:flex; gap:.4rem; margin-top:.4rem; }
|
| 45 |
+
.tools button { border:1px solid #243045; background:#0b1220; color:#e2e8f0; padding:.25rem .5rem; border-radius:.5rem; cursor:pointer; }
|
| 46 |
+
|
| 47 |
+
.composer { border-top:1px solid #202431; background: var(--panel); padding:.6rem .9rem; }
|
| 48 |
+
#chatForm { display:flex; flex-direction:column; gap:.5rem; }
|
| 49 |
+
#chatForm .row { display:flex; gap:.5rem; }
|
| 50 |
+
#userInput { flex:1; padding:.6rem .7rem; border-radius:.6rem; border:1px solid #2a3348; background:#0b1020; color:var(--text); }
|
| 51 |
+
#sendBtn { padding:.6rem .9rem; border-radius:.6rem; border:1px solid #2a3348; background:#0b1220; color:var(--text); cursor:pointer; }
|
| 52 |
+
|
| 53 |
+
.meta { display:flex; gap:.6rem; flex-wrap: wrap; align-items:center; font-size:12px; color:var(--muted); }
|
| 54 |
+
.meta input { padding:.35rem .5rem; border-radius:.5rem; border:1px solid #2a3348; background:#0b1020; color:var(--text); }
|
| 55 |
+
.meta button { padding:.35rem .6rem; border-radius:.5rem; border:1px solid #2a3348; background:#0b1220; color:var(--text); cursor:pointer; }
|
| 56 |
+
|
| 57 |
+
/* Mobile tweaks */
|
| 58 |
+
@media (max-width: 680px) {
|
| 59 |
+
.body pre { max-width: 88vw; }
|
| 60 |
+
.composer .row { gap:.4rem; }
|
| 61 |
+
#userInput { min-width: 0; }
|
| 62 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|