Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit b33952a

Browse files
committed
Improve the visibility of mentions with a Discord-style stripe on the left edge
1 parent 06dca23 commit b33952a

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

res/css/views/rooms/_EventTile.pcss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,14 @@ $left-gutter: 64px;
574574
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
575575
}
576576
}
577+
578+
&.mx_EventTile_highlight,
579+
&.mx_EventTile_highlight .markdown-body {
580+
> .mx_EventTile_line {
581+
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
582+
$event-highlight-edge-color;
583+
}
584+
}
577585
}
578586

579587
&[data-layout="bubble"] {

res/themes/dark/css/_dark.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ $spacePanel-bg-color: rgba(38, 39, 43, 0.82);
8383
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
8484
$h3-color: $primary-content;
8585
$event-highlight-bg-color: #25271f;
86+
$event-highlight-edge-color: #f0b132;
8687
$header-panel-text-primary-color: $text-secondary-color;
8788
/* ******************** */
8889

res/themes/legacy-dark/css/_legacy-dark.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ $widget-menu-bar-bg-color: $header-panel-bg-color;
164164
$widget-body-bg-color: #1a1d23;
165165

166166
$event-highlight-bg-color: #25271f;
167+
$event-highlight-edge-color: #f0b132;
167168

168169
/* event timestamp */
169170
$event-timestamp-color: $text-secondary-color;

res/themes/legacy-light/css/_legacy-light.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ $widget-body-bg-color: #fff;
235235
$yellow-background: #fff8e3;
236236

237237
$event-highlight-bg-color: $yellow-background;
238+
$event-highlight-edge-color: var(--cpd-color-yellow-500);
238239

239240
/* event timestamp */
240241
$event-timestamp-color: #acacac;

res/themes/light-custom/css/_custom.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ $button-danger-disabled-bg-color: var(--warning-color-50pct); /* still needs alp
100100
/* --timeline-highlights-color */
101101
$event-selected-color: var(--timeline-highlights-color);
102102
$event-highlight-bg-color: var(--timeline-highlights-color);
103+
$event-highlight-edge-color: var(--timeline-highlights-color);
103104

104105
/* redirect some variables away from their hardcoded values in the light theme */
105106
$settings-grey-fg-color: $primary-content;

res/themes/light/css/_light.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ $spacePanel-bg-color: rgba(232, 232, 232, 0.77);
112112
$panel-gradient: rgba(242, 245, 248, 0), rgba(242, 245, 248, 1);
113113
$h3-color: #3d3b39;
114114
$event-highlight-bg-color: $yellow-background;
115+
$event-highlight-edge-color: var(--cpd-color-yellow-500);
115116
$header-panel-text-primary-color: #91a1c0;
116117
/* ******************** */
117118

0 commit comments

Comments
 (0)