From 088bd2b30dbdd2ba3e6519bd1270787020999f85 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Tue, 5 Mar 2024 03:28:42 -0500 Subject: [PATCH] Take advantage of :where() more, which does not have specificity Signed-off-by: Suguru Hirahara --- .../feature-improvement/consistency__TextEvent/index.pcss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss b/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss index c8aaa05c4630..728ccb728824 100644 --- a/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss +++ b/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss @@ -22,9 +22,10 @@ limitations under the License. @import "./views/messages/_DisambiguatedProfile.pcss"; @define-mixin consistency__TextEvent { - /* Applied to IRC, modern layout, and the right panel */ - /* Not applied to Bubble layout, which has its own class name with sc_ */ - :where(.mx_RoomView_body[data-layout="irc"], .mx_RoomView_body[data-layout="group"], .mx_RightPanel) { + /* Applied to IRC, modern layout, and the right panel. Not applied to the + rest of the layouts. Remove the nested :where() if it is applied to them + as well. */ + :where(.mx_RoomView_body:where([data-layout="irc"], [data-layout="group"]), .mx_RightPanel) { @mixin DisambiguatedProfile; @mixin EventTile_line_M; @mixin EventTile_line_color;