From fe8457ac4cb341962a21bc410cab875ed4d37891 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 14 Feb 2022 22:51:31 +0300 Subject: [PATCH 1/6] notes editor - use tiny cloud editor --- index.css | 21 +++- index.html | 21 ++-- libs/pell.min.js | 2 - modules/ui/general.js | 5 +- modules/ui/notes-editor.js | 227 +++++++++++++++++++------------------ 5 files changed, 142 insertions(+), 134 deletions(-) delete mode 100644 libs/pell.min.js diff --git a/index.css b/index.css index 17913cb4..e7a1a231 100644 --- a/index.css +++ b/index.css @@ -2036,7 +2036,7 @@ div.textual span, fill: none; } -div#notes { +#notes { display: none; position: fixed; width: 28vw; @@ -2046,22 +2046,31 @@ div#notes { border: 1px solid #5e4fa2; background: rgba(255, 250, 228, 0.7); box-shadow: 2px 2px 5px -3px #3a2804; - white-space: pre-line; } -div#notesHeader { +@media screen and (max-width: 600px) { + #notes { + width: 50vw; + } +} + +#notesHeader { font-weight: bold; font-size: 1.3em; - padding: 0 0 4px 14px; + padding: 16px 0 4px 12px; border-bottom: 1px solid #5e4fa2; } -div#notesBody { - padding: 0 1em; +#notesBody { + padding: 14px 12px; max-height: 80vh; overflow: auto; } +#notesBody p { + margin: 4px; +} + svg.button { position: relative; background-color: transparent; diff --git a/index.html b/index.html index 698bfb94..da81a2bf 100644 --- a/index.html +++ b/index.html @@ -2911,22 +2911,20 @@ -