Skip to content

Commit 1bbd784

Browse files
committed
feat(ui): enable username background and update member list styling
Uncomment and refine CSS for username backgrounds in headers and member lists, including opacity and positioning adjustments. Remove timestamp opacity transitions for cleaner UI.
1 parent 61f6d3f commit 1bbd784

1 file changed

Lines changed: 16 additions & 50 deletions

File tree

themes/main.css

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -301,37 +301,6 @@ button.button__67645 {
301301
[class^=appMount_] [class^=layers_] [class^=layer_]:has([class^=standardSidebarView_]) {
302302
border: 1px solid hsl(var(--accent-hsl));
303303
}
304-
/* Username Background */
305-
/***
306-
.headerText_c19a55:not(:has(.roleDot_c19a55)) .username_c19a55::before {
307-
content: '';
308-
inline-size: calc(100% + 0px);
309-
block-size: 100%;
310-
border-radius: 5px;
311-
background-color: currentColor;
312-
opacity: 0.3;
313-
position: absolute;
314-
margin-block-start: 1px;
315-
z-index: -1;
316-
margin-inline-start: -3px;
317-
}
318-
.headerText_c19a55:has(.roleDot_c19a55) .username_c19a55::before {
319-
content: '';
320-
inline-size: calc(100% + 29px);
321-
block-size: 100%;
322-
border-radius: 5px;
323-
background-color: currentColor;
324-
opacity: 0.3;
325-
position: absolute;
326-
margin-block-start: 1px;
327-
padding: 1;
328-
z-index: -1;
329-
margin-inline-start: -27px;
330-
}
331-
.headerText_c19a55>span {
332-
margin-inline-start: 3px;
333-
}
334-
***/
335304
/* Jump To Present Bar Revamp */
336305
[class*="jumpToPresentBar"] {
337306
display: contents;
@@ -530,26 +499,33 @@ button.button__67645 {
530499
-webkit-animation: fadeIn 0.5s ease forwards;
531500
animation: fadeIn 0.5s ease forwards;
532501
}
502+
/* Username Background */
503+
.headerText_c19a55 .username_c19a55:not([style^="--custom-gradient-color"])::before {
504+
content: '';
505+
inline-size: calc(100% + 0px);
506+
block-size: 100%;
507+
border-radius: 5px;
508+
background-color: currentColor;
509+
opacity: 0.3;
510+
position: absolute;
511+
z-index: -1;
512+
}
533513
/*Role color background in memberlist*/
534-
.member__5d473 span.username__703b9::after {
514+
.member__5d473:not(:has([style^="--custom-gradient-color"])) span.username__703b9::after {
535515
content: "";
536-
border-radius: 10px;
516+
border-radius: 5px;
537517
background: currentColor;
538-
min-width: 243px;
539-
inline-size: 100%;
518+
inline-size: calc(100% + 0px);
540519
block-size: 100%;
541520
position: absolute;
542-
opacity: 0.11;
543-
inset-inline-start: -9px;
521+
opacity: 0.3;
522+
inset-inline-start: 0px;
544523
inset-block-start: 0;
545524
transition: opacity .2s ease;
546525
}
547526
.member__5d473 {
548527
border-radius: 10px;
549528
}
550-
.member__5d473:hover span.username__703b9::after {
551-
opacity: 0.3;
552-
}
553529
/*Remove the Avatar Decorations Banner in user profile popups*/
554530
.containerWrapper_e18107 {
555531
display: none
@@ -693,16 +669,6 @@ h3.name__29444.container_cc72c1 {
693669
.wrapper_c19a55.cozy_c19a55 {
694670
transition: ease-in-out 0.25s;
695671
}
696-
[class*=timestampInline_] {
697-
opacity: 0;
698-
transition: 0.25s;
699-
}
700-
[class*=message_]:hover [class*=timestampInline_],
701-
[class*=messageGroupWrapper_]:hover [class*=timestampInline_],
702-
[class*=messageContainer_]:hover [class*=timestampInline_],
703-
[class*=message_]:hover [class*=timestampInline_] {
704-
opacity: 1;
705-
}
706672
/* Anti Image Like Video */
707673
div[class="iconWrapper__6eb54"] {
708674
background-color: hsla(var(--accent-hsl), 0.45);

0 commit comments

Comments
 (0)