From 35ba96bd9d49ac2e720028d9fc73f9d568740f97 Mon Sep 17 00:00:00 2001 From: Sayam Samal Date: Wed, 20 Nov 2024 23:34:13 +0530 Subject: [PATCH] recent_view: Remove bootstrap classes from recent view buttons. This commit removes the final vestiges of `bootstrap-btn-default` class from the codebase, by moving the relevant styles from the `bootstrap-btn` and `bootstrap-btn-default` classes to the `button-recent-filters` class. --- web/styles/dark_theme.css | 8 ------ web/styles/recent_view.css | 13 ++++++++++ web/templates/recent_view_filters.hbs | 6 ++--- web/third/bootstrap/css/bootstrap-btn.css | 30 ----------------------- 4 files changed, 16 insertions(+), 41 deletions(-) diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css index 489dbd021f..fad5bd2e21 100644 --- a/web/styles/dark_theme.css +++ b/web/styles/dark_theme.css @@ -510,19 +510,11 @@ } .recent_view_container #recent_view_table .button-recent-filters { - background-color: hsl(211deg 29% 14%); - border-color: hsl(0deg 0% 0%); - color: hsl(0deg 0% 100%); - &:focus { background-color: hsl(0deg 0% 0% / 50%) !important; - outline: 0; } &.fake_disabled_button { - cursor: not-allowed; - opacity: 0.5; - &:hover { background-color: hsl(0deg 0% 0% / 50%); border-color: hsl(0deg 0% 0%); diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css index f2ae4d5264..c864c29dfb 100644 --- a/web/styles/recent_view.css +++ b/web/styles/recent_view.css @@ -162,8 +162,21 @@ } .button-recent-filters { + color: var(--color-text-default); + background-color: var(--color-background-zulip-button); + border: 1px solid var(--color-border-zulip-button); border-radius: 40px; margin: 0 5px 10px 0; + padding: 6px 12px; + line-height: 100%; + + &:hover { + background-color: var(--color-background-zulip-button-hover); + } + + &:active { + background-color: var(--color-background-zulip-button-active); + } &:focus { background-color: hsl(0deg 0% 80%); diff --git a/web/templates/recent_view_filters.hbs b/web/templates/recent_view_filters.hbs index 5ad57e3d0d..c63de33017 100644 --- a/web/templates/recent_view_filters.hbs +++ b/web/templates/recent_view_filters.hbs @@ -1,5 +1,5 @@ {{> ./dropdown_widget widget_name="recent-view-filter"}} - - -