element-web/res/css/views/messages
Eric Eastwood 9b0da552e7
Fix vertical spacing in `compact` `<ContextMenu>` (#7684)
Fix https://github.com/vector-im/element-web/issues/20801

Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/7339

Relevant styles were first added in https://github.com/matrix-org/matrix-react-sdk/pull/4858
(context behind why the original styles were added)

---

## Cause

Battling CSS specificity between the default and compact styles, https://specificity.keegan.st/

Known good (On `app.element.io` (expected)):
```css
// 0 3 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton {
    padding-top: 12px;
    padding-bottom: 12px;
}

// Compact styles override our default rules because they come
// after the other styles (source order) and have the same specificity
// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```

Bad (On `develop` (broken)):
```css
// Default rules always override because they have higher specificity.
// The `:not()` selector doesn't add any extra specificity but the selectors inside the `:not(...)` do.
// 0 4 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) {
    padding-top: 12px;
    padding-bottom: 12px;
}

// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```
2022-02-01 11:23:21 -06:00
..
_CallEvent.scss Show bubble tile timestamps for bubble layout inside the bubble (#7622) 2022-01-25 13:10:17 +00:00
_CreateEvent.scss Color cleanup number 10 (#7132) 2021-11-16 10:10:44 +00:00
_DateSeparator.scss Add jump to date functionality to date headers in timeline v2 (#7339) 2022-01-27 16:32:12 -06:00
_EventTileBubble.scss Show bubble tile timestamps for bubble layout inside the bubble (#7622) 2022-01-25 13:10:17 +00:00
_HiddenBody.scss MSC3531 - Implementing message hiding pending moderation (#7518) 2022-01-17 16:04:37 +01:00
_JumpToDatePicker.scss Fix vertical spacing in `compact` `<ContextMenu>` (#7684) 2022-02-01 11:23:21 -06:00
_MEmoteBody.scss
_MFileBody.scss Color cleanup 8 (#7108) 2021-11-11 13:37:29 +00:00
_MImageBody.scss s/boarder/border/g (#7174) 2021-11-21 18:56:25 +01:00
_MImageReplyBody.scss Add `max-empty-lines` and `no-eol-whitespace` to stylelint (#7034) 2021-10-26 08:23:23 +01:00
_MJitsiWidgetEvent.scss Color cleanup number 10 (#7132) 2021-11-16 10:10:44 +00:00
_MLocationBody.scss Display general marker on non-self location shares (#7574) 2022-01-19 09:33:49 +00:00
_MNoticeBody.scss
_MPollBody.scss Support reactions, replies and forwards of polls (#7318) 2021-12-09 12:54:31 +00:00
_MStickerBody.scss Add an option to hide image previews 2019-09-27 21:08:31 -06:00
_MTextBody.scss move css rule to be more generic; remove overriden rule 2018-06-13 19:08:24 +01:00
_MVideoBody.scss s/boarder/border/g (#7174) 2021-11-21 18:56:25 +01:00
_MediaBody.scss Get rid of message-body-panel colors 2021-09-27 09:04:51 +02:00
_MessageActionBar.scss Add view in room to action bar in thread list (#7519) 2022-01-19 10:39:33 +00:00
_MessageTimestamp.scss Use OpenType tabular numbers in timestamps 2020-07-23 14:52:01 +01:00
_MjolnirBody.scss Appease the other linter 2019-10-31 16:30:51 -06:00
_ReactionsRow.scss A11y - fix anchors-as-buttons (#7444) 2022-01-07 10:40:53 +01:00
_ReactionsRowButton.scss Task/colors-13 (#7271) 2021-12-03 09:23:38 +00:00
_RedactedBody.scss Fix redacted messages (again) 2021-07-02 15:09:02 +02:00
_RoomAvatarEvent.scss Auto-fix stylelint issues 2019-07-10 16:56:40 +01:00
_SenderProfile.scss Use the same styling as for mx_TextualEvent 2021-06-10 15:31:27 +02:00
_TextualEvent.scss Color cleanup 8 (#7108) 2021-11-11 13:37:29 +00:00
_UnknownBody.scss Bring back UnknownBody for UISIs 2020-05-08 19:15:59 +01:00
_ViewSourceEvent.scss A11y - fix anchors-as-buttons (#7444) 2022-01-07 10:40:53 +01:00
_common_CryptoEvent.scss Color cleanup number 10 (#7132) 2021-11-16 10:10:44 +00:00