mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
message_row: Better target first children.
This commit is contained in:
@@ -156,6 +156,16 @@
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
/* For the sake of paragraphs and lists that include
|
||||
links, we adjust the vertical space here to keep
|
||||
it uniform. */
|
||||
&:has(> p:first-child, > ol:first-child, > ul:first-child) {
|
||||
padding-top: calc(
|
||||
var(--message-box-markdown-aligned-vertical-space) -
|
||||
var(--message-box-link-focus-ring-block-padding)
|
||||
);
|
||||
}
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
@@ -381,16 +391,6 @@
|
||||
grid-area: message;
|
||||
}
|
||||
|
||||
/* For the sake of paragraphs and lists that include
|
||||
links, we adjust the vertical space here to keep
|
||||
it uniform. */
|
||||
.message_content:has(p:first-child, ol:first-child, ul:first-child) {
|
||||
padding-top: calc(
|
||||
var(--message-box-markdown-aligned-vertical-space) -
|
||||
var(--message-box-link-focus-ring-block-padding)
|
||||
);
|
||||
}
|
||||
|
||||
.slow-send-spinner {
|
||||
align-self: center;
|
||||
position: unset;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
/* To avoid cutting off the focus ring on links, we set
|
||||
padding on first children most likely to take links.
|
||||
We account for this extra space on `.message_content`. */
|
||||
& p:first-child,
|
||||
& ul:first-child,
|
||||
& ol:first-child {
|
||||
& > p:first-child,
|
||||
& > ul:first-child,
|
||||
& > ol:first-child {
|
||||
padding-top: var(--message-box-link-focus-ring-block-padding);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user