From 42a0fd947337fea48a0313090c427265f7ac6790 Mon Sep 17 00:00:00 2001 From: elioat Date: Tue, 30 Sep 2025 21:23:06 -0400 Subject: * --- html/notebook/index.html | 161 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 139 insertions(+), 22 deletions(-) (limited to 'html') diff --git a/html/notebook/index.html b/html/notebook/index.html index 9ad3068..bf322d3 100644 --- a/html/notebook/index.html +++ b/html/notebook/index.html @@ -23,6 +23,10 @@ border-bottom: 1px solid #8888cc; display: flex; gap: 8px; + align-items: center; + } + .toolbar-spacer { + flex: 1; } button { background: #8888cc; @@ -34,6 +38,10 @@ font-size: 16px; } button:hover { background: #aaaaee; } + button:disabled { + opacity: 0.4; + cursor: not-allowed; + } #container { flex: 1; overflow-y: auto; @@ -63,6 +71,10 @@ font-family: Georgia, serif; } .cell-input:focus { outline: 1px solid #8888cc; } + .cell.collapsed .cell-input, + .cell.collapsed .cell-output { + display: none; + } .cell-toolbar { background: #aaaaee; padding: 6px 10px; @@ -113,47 +125,89 @@ /* Dark mode */ @media (prefers-color-scheme: dark) { - body { + body:not(.light-mode) { background: #1e1e1e; color: #d4d4d4; } - #toolbar { + body:not(.light-mode) #toolbar { background: #252526; border-bottom: 1px solid #3e3e42; } - button { + body:not(.light-mode) button { background: #0e639c; color: white; border: none; } - button:hover { background: #1177bb; } - .cell { + body:not(.light-mode) button:hover { background: #1177bb; } + body:not(.light-mode) .cell { border: 1px solid #3e3e42; background: #252526; } - .cell-input { + body:not(.light-mode) .cell-input { background: #1e1e1e; color: #d4d4d4; } - .cell-input:focus { outline: 1px solid #0e639c; } - .cell-toolbar { + body:not(.light-mode) .cell-input:focus { outline: 1px solid #0e639c; } + body:not(.light-mode) .cell-toolbar { background: #2d2d30; } - .cell-type { + body:not(.light-mode) .cell-type { color: #858585; } - .cell-output { + body:not(.light-mode) .cell-output { background: #1e1e1e; border-top: 1px solid #3e3e42; } - .output-result { color: #4ec9b0; } - .output-error { color: #f48771; } - .output-log { color: #d4d4d4; } - .output-scope { + body:not(.light-mode) .output-result { color: #4ec9b0; } + body:not(.light-mode) .output-error { color: #f48771; } + body:not(.light-mode) .output-log { color: #d4d4d4; } + body:not(.light-mode) .output-scope { color: #858585; border-top: 1px solid #3e3e42; } } + + /* Force dark mode when class is set */ + body.dark-mode { + background: #1e1e1e; + color: #d4d4d4; + } + body.dark-mode #toolbar { + background: #252526; + border-bottom: 1px solid #3e3e42; + } + body.dark-mode button { + background: #0e639c; + color: white; + border: none; + } + body.dark-mode button:hover { background: #1177bb; } + body.dark-mode .cell { + border: 1px solid #3e3e42; + background: #252526; + } + body.dark-mode .cell-input { + background: #1e1e1e; + color: #d4d4d4; + } + body.dark-mode .cell-input:focus { outline: 1px solid #0e639c; } + body.dark-mode .cell-toolbar { + background: #2d2d30; + } + body.dark-mode .cell-type { + color: #858585; + } + body.dark-mode .cell-output { + background: #1e1e1e; + border-top: 1px solid #3e3e42; + } + body.dark-mode .output-result { color: #4ec9b0; } + body.dark-mode .output-error { color: #f48771; } + body.dark-mode .output-log { color: #d4d4d4; } + body.dark-mode .output-scope { + color: #858585; + border-top: 1px solid #3e3e42; + } @@ -164,6 +218,7 @@ @@ -597,6 +712,8 @@ document.addEventListener('DOMContentLoaded', function() { +
+
-- cgit