From 1b4d539eefcd56d162fbc5ecc50b22e9cc46bb9f Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Sat, 24 Dec 2022 08:01:36 -0800 Subject: [PATCH] Added basic profile editing support --- css/styles.css | 48 +++++++++++++++++++++++++++++++++++-------- icon/edit-profile.svg | 1 + index.html | 23 +++++++++++++++++++++ js/core.js | 24 +++++++++------------- js/main.js | 5 +++++ js/nostr.js | 5 +++-- js/ui/util.js | 27 ++++++++++++++++++++++++ 7 files changed, 108 insertions(+), 25 deletions(-) create mode 100644 icon/edit-profile.svg diff --git a/css/styles.css b/css/styles.css index bbe2e08..c82fde8 100644 --- a/css/styles.css +++ b/css/styles.css @@ -440,15 +440,6 @@ details.cw summary { textarea.post-input { display: block; width: 100%; - border: none; - background: transparent; - color: var(--clrText); - font-size: var(--fsEnlarged); - font-family: var(--ffDefault); - margin: 10px 0; - padding: 0; - box-sizing: border-box; - resize: vertical; } .post-tools { @@ -513,6 +504,45 @@ label[role="profile-nip5"] { height: 100%; } +/* Profile Editor */ + +#profile-editor header { + margin-bottom: 15px; +} +#profile-editor textarea { + margin: 15px 0; +} + +/* Inputs */ + +.block { + display: block; +} +.w100 { + width: 100%; +} + +input[type="text"] { + background: transparent; + border: none; + color: var(--clrText); + font-size: var(--fsNormal); + padding: 15px; + border-bottom: 3px white solid; + box-sizing: border-box; +} +textarea { + border: none; + background: transparent; + color: var(--clrText); + font-size: var(--fsEnlarged); + font-family: var(--ffDefault); + margin: 10px 0; + padding: 0; + box-sizing: border-box; + resize: vertical; +} + @media (prefers-color-scheme: dark) { .icon.svg { filter: invert(1); diff --git a/icon/edit-profile.svg b/icon/edit-profile.svg new file mode 100644 index 0000000..0d0532f --- /dev/null +++ b/icon/edit-profile.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index fae5396..473119f 100644 --- a/index.html +++ b/index.html @@ -137,6 +137,9 @@ --> + @@ -193,6 +196,26 @@ + +