From 7b7e21384f4da84e8c57a6643c1d1bed8936452f Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Wed, 11 Sep 2024 13:46:53 -0500 Subject: [PATCH] cleanup: Remove remaining CSS, JS .new-style references. --- web/e2e-tests/lib/common.ts | 2 +- web/styles/message_row.css | 3 +-- web/styles/settings.css | 2 +- web/styles/widgets.css | 2 +- web/templates/stream_settings/stream_settings_overlay.hbs | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index bf12c70ab8..853a9a660e 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -538,7 +538,7 @@ export async function open_streams_modal(page: Page): Promise { await page.waitForSelector(all_streams_selector, {visible: true}); await page.click(all_streams_selector); - await page.waitForSelector("#subscription_overlay.new-style", {visible: true}); + await page.waitForSelector("#subscription_overlay", {visible: true}); const url = await page_url_with_fragment(page); assert.ok(url.includes("#channels/notsubscribed")); } diff --git a/web/styles/message_row.css b/web/styles/message_row.css index b253cbef16..868f3102c4 100644 --- a/web/styles/message_row.css +++ b/web/styles/message_row.css @@ -659,8 +659,7 @@ } &:disabled { - /* Replicate the `.new-style` disabled values, - without any color shifts. */ + /* Replicate disabled values, without any color shifts. */ cursor: not-allowed; opacity: 0.5; } diff --git a/web/styles/settings.css b/web/styles/settings.css index 28145b27a8..94ef55cf59 100644 --- a/web/styles/settings.css +++ b/web/styles/settings.css @@ -713,7 +713,7 @@ input[type="checkbox"] { #show-add-default-streams-modal { /* We want this button to have the same height as the filter button on its right. We're overriding the default vertical - padding of `.new-style` and setting it to 0. Having the + button padding and setting it to 0. Having the height fixed will mean that the vertical whitespace will adjust itself for different font-sizes without changing the height. diff --git a/web/styles/widgets.css b/web/styles/widgets.css index fe21292e99..5eafa190f5 100644 --- a/web/styles/widgets.css +++ b/web/styles/widgets.css @@ -49,7 +49,7 @@ display: flex; /* Arrange that a multi-line description line wraps properly. */ /* Keep checkboxes vertically aligned, including with multi-line tasks. */ align-items: baseline; - /* Reset things from .new-style */ + /* Reset default label.checkbox styles. */ gap: 5px; position: static; min-height: 0; diff --git a/web/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbs index 9f6599a92d..6cab4addd1 100644 --- a/web/templates/stream_settings/stream_settings_overlay.hbs +++ b/web/templates/stream_settings/stream_settings_overlay.hbs @@ -1,4 +1,4 @@ -
+