@@ -243,11 +243,11 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
243243 padding-left : 2px ;
244244 padding-right : 2px ;
245245 cursor : pointer ;
246- }
247246
248- .mx_EventTile_searchHighlight a {
249- background-color : $accent ;
250- color : $accent-fg-color ;
247+ a {
248+ background-color : $accent ;
249+ color : $accent-fg-color ;
250+ }
251251 }
252252
253253 & .mx_EventTile_contextual {
@@ -264,10 +264,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
264264 Replaces margin-top: -6px. This interacts better with a read
265265 marker being in between. Content overflows. */
266266 height : 1px ;
267- }
268267
269- .mx_EventTile_msgOption a {
270- text-decoration : none ;
268+ a {
269+ text-decoration : none ;
270+ }
271271 }
272272
273273 /* De-zalgoing */
@@ -538,32 +538,69 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
538538 }
539539}
540540
541- /* Various markdown overrides */
542-
543541.mx_EventTile_body {
544542 a :hover {
545543 text-decoration : underline ;
546544 }
547545
548546 pre {
549547 border : 1px solid transparent ;
548+
549+ .mx_EventTile :hover & ,
550+ .mx_EventTile.focus-visible :focus-within & {
551+ border : 1px solid $tertiary-content ;
552+ }
550553 }
551554
552555 // selector wrongly applies to pill avatars but those have explicit width/height passed at a higher specificity
553556 & .markdown-body img {
554557 object-fit : contain ;
555558 object-position : left top ;
556559 }
557- }
558560
559- .mx_EventTile_clamp {
560- .mx_EventTile_body {
561+ .mx_EventTile_clamp & {
561562 -webkit-line-clamp : 2 ;
562563 -webkit-box-orient : vertical ;
563564 overflow : hidden ;
564565 text-overflow : ellipsis ;
565566 display : -webkit-box ;
566567 }
568+
569+ .mx_EventTile_pre_container {
570+ // For correct positioning of _copyButton (See TextualBody)
571+ position : relative ;
572+
573+ & :focus-within ,
574+ & :hover {
575+ .mx_EventTile_button {
576+ visibility : visible ;
577+ }
578+ }
579+
580+ .mx_EventTile_collapsedCodeBlock {
581+ max-height : 30vh ;
582+ }
583+
584+ // Inserted adjacent to <pre> blocks, (See TextualBody)
585+ .mx_EventTile_button {
586+ position : absolute ;
587+ top : $spacing-8 ;
588+ right : $spacing-8 ;
589+ width : 19px ;
590+ height : 19px ;
591+ visibility : hidden ;
592+ background-color : $message-action-bar-fg-color ;
593+
594+ & .mx_EventTile_buttonBottom {
595+ top : 33px ;
596+ }
597+
598+ & .mx_EventTile_collapseButton ,
599+ & .mx_EventTile_expandButton {
600+ mask-size : 75% ;
601+ }
602+ }
603+ }
567604}
568605
569606.mx_EventTile_lineNumbers {
@@ -578,11 +615,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
578615 }
579616}
580617
581- .mx_EventTile :hover .mx_EventTile_body pre ,
582- .mx_EventTile.focus-visible :focus-within .mx_EventTile_body pre {
583- border : 1px solid $tertiary-content ;
584- }
585-
586618.mx_EventTile_button {
587619 display : inline-block ;
588620 cursor : pointer ;
@@ -606,44 +638,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
606638 mask-image : url (" $(res)/img/element-icons/maximise-expand.svg" );
607639}
608640
609- .mx_EventTile_body .mx_EventTile_pre_container {
610- // For correct positioning of _copyButton (See TextualBody)
611- position : relative ;
612-
613- & :focus-within ,
614- & :hover {
615- .mx_EventTile_button {
616- visibility : visible ;
617- }
618- }
619-
620- .mx_EventTile_collapsedCodeBlock {
621- max-height : 30vh ;
622- }
623-
624- // Inserted adjacent to <pre> blocks, (See TextualBody)
625- .mx_EventTile_button {
626- position : absolute ;
627- top : 8px ;
628- right : 8px ;
629- width : 19px ;
630- height : 19px ;
631- visibility : hidden ;
632- background-color : $message-action-bar-fg-color ;
633-
634- & .mx_EventTile_buttonBottom {
635- top : 33px ;
636- }
637-
638- & .mx_EventTile_collapseButton ,
639- & .mx_EventTile_expandButton {
640- mask-size : 75% ;
641- }
642- }
643- }
644-
645- /* end of overrides */
646-
647641.mx_EventTile_keyRequestInfo {
648642 font-size : $font-12px ;
649643
@@ -685,10 +679,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
685679 .mx_EventTile_line {
686680 padding-left : 0 ;
687681 margin-right : 0 ;
688- }
689682
690- .mx_EventTile_line span {
691- padding : 4px 8px ;
683+ span {
684+ padding : $spacing-4 $spacing-8 ;
685+ }
692686 }
693687
694688 a {
0 commit comments