diff --git a/app.py b/app.py index 0d84bb4..cff4fe2 100644 --- a/app.py +++ b/app.py @@ -140,6 +140,7 @@ HTML = """ --text: #111; --border: #ddd; --btn-bg: #fff; + --btn-hover: #f0f0f0; --gutter-bg: #f8fafc; --gutter-border: #eee; --gutter-color: #9ca3af; @@ -151,6 +152,7 @@ HTML = """ --text: #F0F0F0; --border: #3a3b45; --btn-bg: #2a2b33; + --btn-hover: #35363f; --gutter-bg: #1e1f28; --gutter-border: #2e2f3a; --gutter-color: #6b7280; @@ -162,8 +164,9 @@ HTML = """ body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji"; max-width: 1000px; margin: 0 auto; padding: 1rem; display: flex; flex-direction: column; height: 100vh; box-sizing: border-box; } header { display:flex; justify-content:space-between; align-items:center; margin-bottom: .5rem; flex-shrink: 0; } - a,button { padding:.35rem .6rem; text-decoration:none; border:1px solid var(--border); border-radius:4px; background:var(--btn-bg); color:var(--text); cursor:pointer; } - #newpad { background:#000; color:#fff; border:1px solid #000; font-weight:bold; } + a,button { padding:.35rem 0; text-decoration:none; border:1px solid var(--border); border-radius:4px; background:var(--btn-bg); color:var(--text); cursor:pointer; font-size:.9rem; font-weight:bold; min-width:2rem; text-align:center; display:inline-block; } + a:hover,button:hover { background:var(--btn-hover); } + #lock-btn { font-weight:normal; } #status { font-size:.9rem; opacity:.7; margin-left:.5rem; } #status::before { content: "β"; margin-right: .3rem; color: #ef4444; } #status.connected::before { color: #22c55e; } @@ -175,8 +178,6 @@ HTML = """ user-select:none; min-width: 3ch; white-space: pre; height: 100%; overflow: hidden; } #t { padding:.5rem .75rem; width:100%; height: 100%; resize: none; border:0; outline:0; overflow:auto; white-space: pre; background:var(--bg); color:var(--text); } - #newpad { margin-left:.5rem; } - #info { margin-left:.5rem; font-size: 0.8rem; } pre { margin: 0; } /* Password protection */ #lock-btn.locked { background:#dbeafe; border-color:#3b82f6; } @@ -206,11 +207,11 @@ HTML = """ disconnected