From f5d79897d90ca38cb42a7243db15a69aa0ff6af2 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 3 May 2023 13:26:10 +0000 Subject: [PATCH] Remove some obsolete CSS rules (#10754) * Remove `mx_MImageReplyBody_info` from `_MImageReplyBody.pcss` Edited by 866a11d7e39b6746689453639018d221f40f94f3 Deprecated by 6b3098d8fe0cfd1633f5f9474030650337fa2a60 Signed-off-by: Suguru Hirahara * Remove `mx_WidgetCard_maxPinnedTooltip` from `_WidgetCard.pcss` Added by ef0843d4ad00bfd9c3572469351c5d771f858836 Deprecated by ada6d1aa46ee909eb27e055faa255193a3416d05 Signed-off-by: Suguru Hirahara * Remove `mx_AliasSettings_editable` from `_AliasSettings.pcss` Added by eac50aa800887583e46b19a2fd91455dc1c76bcb Deprecated by 2903a0e71218830c8b1c9ef072f1e8d98f589a67 Signed-off-by: Suguru Hirahara * Remove `mx_AliasSettings_localAliasHeader` from `_AliasSettings.pcss` Added by 3253d0b93dc8a61a9a1b230ae441dfa83aeda4ab Deprecated by 2e3f225520d2224212c596c44108824df5535361 Signed-off-by: Suguru Hirahara * Remove `mx_RoomList_explorePrompt` from `_RoomList.pcss` Added by e20b3754339e77eff3add18ca10854c830bb32c4 Deprecated by 328d7ea5ebb0af8056d77660545aa3d069cf0b2c Signed-off-by: Suguru Hirahara * Remove `mx_Stickers_hideStickers` from `_Stickers.pcss` Added by 79d3cca6e9a2769239220d6eb057b176535fc4c3 Deprecated by 31b3b2e2ed7d4006fb603e4f72c197ac76d9898b Signed-off-by: Suguru Hirahara --------- Signed-off-by: Suguru Hirahara --- res/css/views/messages/_MImageReplyBody.pcss | 17 +------ res/css/views/right_panel/_WidgetCard.pcss | 5 -- .../views/room_settings/_AliasSettings.pcss | 13 ------ res/css/views/rooms/_RoomList.pcss | 46 ------------------- res/css/views/rooms/_Stickers.pcss | 4 -- 5 files changed, 1 insertion(+), 84 deletions(-) diff --git a/res/css/views/messages/_MImageReplyBody.pcss b/res/css/views/messages/_MImageReplyBody.pcss index f1b9514adc..51ed8ed2bd 100644 --- a/res/css/views/messages/_MImageReplyBody.pcss +++ b/res/css/views/messages/_MImageReplyBody.pcss @@ -18,23 +18,8 @@ limitations under the License. display: flex; column-gap: $spacing-4; - .mx_MImageBody_thumbnail_container, - .mx_MImageReplyBody_info { + .mx_MImageBody_thumbnail_container { flex: 1; min-width: 0; /* Prevent a blowout */ } - - .mx_MImageReplyBody_info { - .mx_MImageReplyBody_sender { - grid-area: sender; - - .mx_DisambiguatedProfile { - max-width: 100%; - } - } - - .mx_MImageReplyBody_filename { - grid-area: filename; - } - } } diff --git a/res/css/views/right_panel/_WidgetCard.pcss b/res/css/views/right_panel/_WidgetCard.pcss index 6759cbc0d8..b50f30145e 100644 --- a/res/css/views/right_panel/_WidgetCard.pcss +++ b/res/css/views/right_panel/_WidgetCard.pcss @@ -22,8 +22,3 @@ limitations under the License. border: 0; } } - -.mx_WidgetCard_maxPinnedTooltip { - background-color: $alert; - color: #ffffff; -} diff --git a/res/css/views/room_settings/_AliasSettings.pcss b/res/css/views/room_settings/_AliasSettings.pcss index 15a7b8a870..31f111fa69 100644 --- a/res/css/views/room_settings/_AliasSettings.pcss +++ b/res/css/views/room_settings/_AliasSettings.pcss @@ -14,19 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -.mx_AliasSettings_editable { - border: 0px; - border-bottom: 1px solid $strong-input-border-color; - padding: 0px; - min-width: 240px; -} - -.mx_AliasSettings_editable:focus { - border-bottom: 1px solid $accent; - outline: none; - box-shadow: none; -} - .mx_AliasSettings_localAddresses { cursor: pointer; color: $accent; diff --git a/res/css/views/rooms/_RoomList.pcss b/res/css/views/rooms/_RoomList.pcss index 93a8fc0994..32d03253d4 100644 --- a/res/css/views/rooms/_RoomList.pcss +++ b/res/css/views/rooms/_RoomList.pcss @@ -42,49 +42,3 @@ limitations under the License. .mx_RoomList_iconInvite::before { mask-image: url("$(res)/img/element-icons/room/share.svg"); } - -.mx_RoomList_explorePrompt { - margin: 4px 12px 4px; - padding-top: 12px; - border-top: 1px solid $input-border-color; - font-size: $font-14px; - - div:first-child { - font-weight: var(--font-semi-bold); - line-height: $font-18px; - color: $primary-content; - } - - .mx_AccessibleButton { - color: $primary-content; - position: relative; - padding: 8px 8px 8px 32px; - font-size: inherit; - margin-top: 12px; - display: block; - text-align: start; - background-color: $panel-actions; - border-radius: 4px; - - &::before { - content: ""; - width: 16px; - height: 16px; - position: absolute; - top: 8px; - left: 8px; - background: $secondary-content; - mask-position: center; - mask-size: contain; - mask-repeat: no-repeat; - } - - &.mx_RoomList_explorePrompt_startChat::before { - mask-image: url("$(res)/img/element-icons/feedback.svg"); - } - - &.mx_RoomList_explorePrompt_explore::before { - mask-image: url("$(res)/img/element-icons/roomlist/explore.svg"); - } - } -} diff --git a/res/css/views/rooms/_Stickers.pcss b/res/css/views/rooms/_Stickers.pcss index 2aafca71bc..75d947f499 100644 --- a/res/css/views/rooms/_Stickers.pcss +++ b/res/css/views/rooms/_Stickers.pcss @@ -44,7 +44,3 @@ cursor: pointer; color: $accent; } - -.mx_Stickers_hideStickers { - z-index: 2001; -}