Skip to content

Commit

Permalink
Take advantage of :where() more, which does not have specificity
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <[email protected]>
  • Loading branch information
luixxiul committed Mar 5, 2024
1 parent c043a2e commit 088bd2b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 088bd2b

Please sign in to comment.