From 26cf42a419f085e6ef4f999412898d282bd9be00 Mon Sep 17 00:00:00 2001 From: Grace Kind Date: Wed, 22 Jul 2026 22:51:10 -0500 Subject: [PATCH] Tweak styles --- package.json | 2 +- src/css/style.css | 81 +++---------------- src/js/templates/icons/alertIcon.template.js | 8 +- src/js/templates/icons/arrowLeft.template.js | 8 +- .../icons/automatedAccountIcon.template.js | 2 + .../templates/icons/bookmarkIcon.template.js | 9 ++- src/js/templates/icons/boxIcon.template.js | 4 + src/js/templates/icons/cameraIcon.template.js | 8 +- src/js/templates/icons/chatIcon.template.js | 4 + src/js/templates/icons/checkIcon.template.js | 8 +- .../templates/icons/chevronLeft.template.js | 8 +- .../templates/icons/chevronRight.template.js | 8 +- src/js/templates/icons/chevronUp.template.js | 8 +- .../icons/circleCheckIcon.template.js | 8 +- src/js/templates/icons/closeIcon.template.js | 8 +- src/js/templates/icons/codeIcon.template.js | 8 +- .../templates/icons/contactsIcon.template.js | 8 +- .../icons/cornerDownRightIcon.template.js | 8 +- .../icons/cropIndicatorIcon.template.js | 8 +- src/js/templates/icons/editIcon.template.js | 8 +- src/js/templates/icons/emojiIcon.template.js | 2 + src/js/templates/icons/eyeIcon.template.js | 8 +- .../templates/icons/eyeSlashIcon.template.js | 8 +- src/js/templates/icons/globeIcon.template.js | 8 +- .../templates/icons/hashtagIcon.template.js | 4 + src/js/templates/icons/heartIcon.template.js | 14 +++- src/js/templates/icons/homeIcon.template.js | 4 + src/js/templates/icons/imageIcon.template.js | 8 +- src/js/templates/icons/inboxIcon.template.js | 8 +- src/js/templates/icons/infoIcon.template.js | 8 +- src/js/templates/icons/likeIcon.template.js | 2 + src/js/templates/icons/linkIcon.template.js | 8 +- src/js/templates/icons/listIcon.template.js | 4 + src/js/templates/icons/lockIcon.template.js | 8 +- src/js/templates/icons/menuIcon.template.js | 2 + .../icons/messagePlusIcon.template.js | 8 +- .../templates/icons/moreMenuIcon.template.js | 8 +- .../templates/icons/mutedWordIcon.template.js | 8 +- .../icons/notificationsIcon.template.js | 4 + src/js/templates/icons/pinIcon.template.js | 4 + src/js/templates/icons/playIcon.template.js | 8 +- src/js/templates/icons/plusIcon.template.js | 8 +- src/js/templates/icons/reloadIcon.template.js | 8 +- src/js/templates/icons/replyIcon.template.js | 2 + src/js/templates/icons/repostIcon.template.js | 2 + .../icons/restrictedIcon.template.js | 8 +- src/js/templates/icons/searchIcon.template.js | 4 + src/js/templates/icons/sendIcon.template.js | 8 +- .../templates/icons/settingsIcon.template.js | 4 + src/js/templates/icons/smileIcon.template.js | 8 +- .../templates/icons/trashCanIcon.template.js | 8 +- src/js/templates/icons/userIcon.template.js | 4 + .../templates/icons/userPlusIcon.template.js | 4 + src/js/templates/icons/usersIcon.template.js | 8 +- .../icons/verifiedCheckIcon.template.js | 2 + .../icons/verifierCheckIcon.template.js | 2 + 56 files changed, 324 insertions(+), 106 deletions(-) diff --git a/package.json b/package.json index bd843339..6a4ebd02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "impro", - "version": "0.18.58", + "version": "0.18.59", "type": "module", "scripts": { "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve", diff --git a/src/css/style.css b/src/css/style.css index 321357df..f9b914c8 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -501,11 +501,6 @@ plugin-rich-text { color: var(--highlight-color); } -.text-pill-button:disabled { - opacity: 0.5; - cursor: default; -} - .icon-button { display: inline-flex; align-items: center; @@ -520,11 +515,6 @@ plugin-rich-text { transition: background-color 0.2s; } -.icon-button:disabled { - opacity: 0.5; - cursor: default; -} - .icon-button .icon { width: 24px; height: 24px; @@ -1627,7 +1617,7 @@ container-link { } .post { - padding-top: 10px; + padding-top: 12px; padding-left: 16px; padding-right: 16px; padding-bottom: 10px; @@ -2121,6 +2111,12 @@ container-link { position: relative; } +.icon svg { + width: 100%; + height: 100%; + display: block; +} + .close-icon { width: 24px; height: 24px; @@ -2234,7 +2230,6 @@ container-link { } .post-action-button[disabled] { - opacity: 0.5; cursor: auto; } @@ -4586,11 +4581,6 @@ chat-input .rich-text-input-placeholder { } } -.message-input-emoji-button:disabled { - opacity: 0.5; - cursor: default; -} - .message-input-emoji-button .emoji-icon { width: 22px; height: 22px; @@ -4628,11 +4618,6 @@ chat-input .rich-text-input-placeholder { opacity: 0.8; } -.message-input-send-button:disabled { - opacity: 0.5; - cursor: default; -} - .message-input-send-button .send-icon { color: var(--overlay-text-color); width: 20px; @@ -4773,7 +4758,6 @@ chat-input .rich-text-input-placeholder { } .reaction-palette-button[disabled] { - opacity: 0.4; cursor: not-allowed; } @@ -4921,6 +4905,10 @@ chat-input .rich-text-input-placeholder { font: inherit; } +.reaction-row:disabled { + opacity: 1; +} + .reaction-row-own { cursor: pointer; } @@ -5310,7 +5298,7 @@ emoji-picker-dialog emoji-picker, display: flex; flex-direction: column; gap: 8px; - padding: 16px; + padding: 12px 16px; border-bottom: var(--hair) solid var(--post-border-color); cursor: pointer; } @@ -5701,11 +5689,6 @@ emoji-picker-dialog emoji-picker, cursor: pointer; } -.feeds-list-item-unpin-button:disabled { - cursor: default; - opacity: 0.5; -} - .feeds-list-item-unpin-button svg { width: 20px; height: 20px; @@ -5758,11 +5741,6 @@ emoji-picker-dialog emoji-picker, height: 24px; } -.new-chat-button:disabled { - opacity: 0.5; - cursor: default; -} - .header svg { display: block; } @@ -6682,11 +6660,6 @@ context-menu-item-group:not(:last-child) .context-menu-item-group { border: none; } -.context-menu-item button[disabled] { - opacity: 0.5; - cursor: default; -} - @media (min-width: 800px) { .context-menu { position: absolute; @@ -7238,11 +7211,6 @@ context-menu-item-group:not(:last-child) .context-menu-item-group { } } -.lightbox-nav:disabled { - opacity: 0.3; - cursor: default; -} - .lightbox-nav-prev { left: 20px; } @@ -7519,11 +7487,6 @@ context-menu-item-group:not(:last-child) .context-menu-item-group { line-height: 1.4; } -.muted-word-renew-button:disabled { - opacity: 0.5; - cursor: default; -} - .muted-word-delete-button { flex-shrink: 0; width: 28px; @@ -7917,11 +7880,6 @@ context-menu-item-group:not(:last-child) .context-menu-item-group { } } -.account-switcher-close[disabled] { - opacity: 0.5; - cursor: default; -} - .account-switcher-list { display: flex; flex-direction: column; @@ -7954,11 +7912,6 @@ context-menu-item-group:not(:last-child) .context-menu-item-group { } } -.account-switcher-item[disabled] { - opacity: 0.6; - cursor: default; -} - .account-switcher-item.is-pending { opacity: 1; } @@ -8531,7 +8484,6 @@ moderation-warning .toggle-content { } .label-pref-button:disabled { - opacity: 0.5; cursor: not-allowed; } @@ -8811,7 +8763,6 @@ moderation-warning .toggle-content { } .report-submit-button:disabled { - opacity: 0.6; cursor: not-allowed; } @@ -8969,7 +8920,6 @@ toggle-switch { } .post-notifications-dialog-save:disabled { - opacity: 0.5; cursor: not-allowed; } @@ -9062,7 +9012,6 @@ toggle-switch { } .add-to-lists-toggle:disabled { - opacity: 0.5; cursor: not-allowed; } @@ -9294,7 +9243,6 @@ toggle-switch { } .new-chat-result.is-not-messageable { - opacity: 0.5; cursor: not-allowed; } @@ -9415,11 +9363,6 @@ tab-bar[full-width] .tab-bar-button { padding: 4px 0; } -.form-dialog-header-button:disabled { - opacity: 0.5; - cursor: default; -} - .form-dialog-save-button:enabled, .form-dialog-save-button.saving { color: var(--primary-button-color); diff --git a/src/js/templates/icons/alertIcon.template.js b/src/js/templates/icons/alertIcon.template.js index b6215dc6..0b7dea80 100644 --- a/src/js/templates/icons/alertIcon.template.js +++ b/src/js/templates/icons/alertIcon.template.js @@ -4,7 +4,13 @@ import { html } from "/js/lib/lit-html.js"; export function alertIconTemplate() { return html`
- + - + ${filled - ? html` + ? html` - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/js/templates/icons/eyeIcon.template.js b/src/js/templates/icons/eyeIcon.template.js index 000d139e..98fada85 100644 --- a/src/js/templates/icons/eyeIcon.template.js +++ b/src/js/templates/icons/eyeIcon.template.js @@ -4,7 +4,13 @@ import { html } from "/js/lib/lit-html.js"; export function eyeIconTemplate() { return html`
- + - + - + ${filled - ? html` + ? html` ` - : html` + : html` - + - + - +
- + diff --git a/src/js/templates/icons/verifierCheckIcon.template.js b/src/js/templates/icons/verifierCheckIcon.template.js index 855376ad..28889f0f 100644 --- a/src/js/templates/icons/verifierCheckIcon.template.js +++ b/src/js/templates/icons/verifierCheckIcon.template.js @@ -4,6 +4,8 @@ export function verifierCheckIconTemplate() { return html`