From f4cbdd8c9c75eae79eb5accdbe4c2bcc4f5e71ad Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 6 Dec 2024 16:16:58 +0530 Subject: [PATCH] css: Remove unnecessary CSS for ".clear_search_button". We can remove some of the CSS properties for ".clear_search_button" selectors because they were being overridden by CSS set using more specific selectors or by CSS set using ".bootstrap-btn" selector. As a result, we can remove some the overriding CSS as well where they were being used to set default values. --- web/styles/app_components.css | 4 ---- web/styles/popovers.css | 2 -- web/styles/recent_view.css | 1 - web/styles/subscriptions.css | 1 - 4 files changed, 8 deletions(-) diff --git a/web/styles/app_components.css b/web/styles/app_components.css index 62012595b4..b09f8216c3 100644 --- a/web/styles/app_components.css +++ b/web/styles/app_components.css @@ -425,13 +425,9 @@ input.settings_text_input { &:focus, &:active, &:disabled:hover { - position: relative; - right: 20px; background: none; border: none; text-align: center; - padding-top: 8px; - padding-left: 4px; color: var(--color-text-clear-search-button); text-shadow: none; outline: none !important; diff --git a/web/styles/popovers.css b/web/styles/popovers.css index f86bbbd622..2d522ce39c 100644 --- a/web/styles/popovers.css +++ b/web/styles/popovers.css @@ -641,8 +641,6 @@ ul.popover-group-menu-member-list { #clear_stream_search { display: none; grid-area: clear-search; - right: 0; - padding: 0; } } diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css index ed9636c423..4b84e87bcb 100644 --- a/web/styles/recent_view.css +++ b/web/styles/recent_view.css @@ -160,7 +160,6 @@ .clear_search_button { grid-area: clear-search; - right: 0; padding: 0; } diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css index ad9b38f145..d3ca6bf45b 100644 --- a/web/styles/subscriptions.css +++ b/web/styles/subscriptions.css @@ -545,7 +545,6 @@ h4.user_group_setting_subsection_title { #clear_search_stream_name, #clear_search_group_name { grid-area: clear-search; - right: 0; padding: 0; }