Skip to content

Commit 53eb9e6

Browse files
authored
Updated themes/redesign
1 parent 38aa304 commit 53eb9e6

File tree

1 file changed

+55
-25
lines changed

1 file changed

+55
-25
lines changed

Diff for: discord/themes/redesign/import.css

+55-25
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ html {
125125
z-index: 4;
126126
padding: 0;
127127

128-
>[class*="gradient_"] {
128+
>[class^="gradient_"] {
129129
display: none;
130130
}
131131
}
@@ -257,7 +257,7 @@ html {
257257
border: 1px solid var(--border-subtle);
258258
border-radius: var(--border-radius);
259259

260-
>[class*="chat_"]:before {
260+
>[class^="chat_"]:before {
261261
box-shadow: none !important;
262262
}
263263
}
@@ -304,27 +304,31 @@ html {
304304
z-index: 10;
305305
}
306306

307-
div[class*="channelBottomBarArea_"] {
307+
div[class^="channelBottomBarArea_"] {
308308
background: var(--bg-overlay-3, var(--channeltextarea-background));
309309
display: grid;
310310
grid-template-rows: 1fr;
311311
grid-template-columns: 1fr auto;
312312

313-
>div[class*="channelAppLauncher_"] {
313+
>div[class^="channelAppLauncher_"] {
314314
position: absolute;
315315
top: -50px;
316316
right: 16px;
317317
}
318318

319-
>div[class*="channelTextArea_"] {
319+
>div[class^="channelTextArea_"] {
320320
position: relative;
321321
margin: 0 !important;
322322
width: 100%;
323323

324-
div[class*="scrollableContainer_"] {
324+
div[class^="scrollableContainer_"] {
325325
border-radius: 0;
326326
min-height: 49px;
327327
padding-top: 4px;
328+
329+
&:has(button[aria-label="Send Message"]) {
330+
padding-right: 8px;
331+
}
328332
}
329333
}
330334
}
@@ -370,10 +374,10 @@ html {
370374
}
371375

372376
>main,
373-
>[class*="shop_"],
374-
>[class*="applicationStore_"],
377+
>[class^="shop_"],
378+
>[class^="applicationStore_"],
375379
>[class="pageWrapper_a3a4ce"],
376-
>[class*="chat_"]:not(:has(.video_d880dc)),
380+
>[class^="chat_"]:not(:has(.video_d880dc)),
377381
>.container_d1c246 {
378382
border: 1px solid var(--border-subtle);
379383

@@ -383,7 +387,7 @@ html {
383387
}
384388
}
385389

386-
>[class*="chat_"]:has(.video_d880dc)>.wrapper_d880dc {
390+
>[class^="chat_"]:has(.video_d880dc)>.wrapper_d880dc {
387391

388392
>*:first-child,
389393
>*>.container_d1c246 {
@@ -399,7 +403,7 @@ html {
399403
}
400404

401405
>main,
402-
>[class*="chat_"] {
406+
>[class^="chat_"] {
403407
.peopleList_e0840f {
404408
>div:first-child {
405409
display: flex;
@@ -418,7 +422,7 @@ html {
418422
}
419423

420424
[aria-label="Message Requests"] {
421-
[data-list-item-id*="message-requests-spam-list_"] {
425+
[data-list-item-id^="message-requests-spam-list_"] {
422426
border: 1px solid var(--border-subtle);
423427
border-radius: calc(var(--border-radius) - 4px);
424428
padding: 16px 10px;
@@ -445,14 +449,14 @@ html {
445449
}
446450
}
447451

448-
>[class*="content_"] {
452+
>[class^="content_"] {
449453
.wrapper_a3747e {
450454
max-width: 320px;
451455
}
452456
}
453457
}
454458

455-
>[class*="chat_"] {
459+
>[class^="chat_"] {
456460

457461
.searchResultsWrap_c2b47d,
458462
.membersWrap_cbd271,
@@ -493,9 +497,9 @@ html {
493497
}
494498
}
495499

496-
>.container_d1c246>[class*="chat_"],
500+
>.container_d1c246>[class^="chat_"],
497501
>* section.container_fc4f04,
498-
>[class*="chat_"]>[class*="subtitleContainer_"]>[class*="title_"] {
502+
>[class^="chat_"]>[class^="subtitleContainer_"]>[class^="title_"] {
499503
padding: 0 8px;
500504
min-height: 56px;
501505
border-bottom: 1px solid var(--border-subtle);
@@ -508,8 +512,8 @@ html {
508512
padding: 0;
509513
}
510514

511-
[class*="tabBar_"]>*,
512-
[class*="toolbar_"] button {
515+
[class^="tabBar_"]>*,
516+
[class^="toolbar_"] button {
513517
height: 32px;
514518
border-radius: calc(var(--border-radius) - 8px) !important;
515519
overflow: hidden
@@ -620,7 +624,7 @@ html {
620624
}
621625
}
622626

623-
>div:has([class*="channelNotice_"])>div {
627+
>div:has([class^="channelNotice_"])>div {
624628
margin: 16px 0 0;
625629
padding: 0 16px 16px;
626630
}
@@ -646,6 +650,32 @@ html {
646650
}
647651
}
648652

653+
&:has([class*="discoverHeader_"]) {
654+
.sidebarContainer_a3a4ce {
655+
scrollbar-width: none;
656+
657+
>h2 {
658+
margin: 0;
659+
min-height: 55px;
660+
padding: 0 16px;
661+
border-bottom: 1px solid var(--border-subtle);
662+
display: flex;
663+
align-items: center;
664+
font-size: 18px;
665+
line-height: 1.25;
666+
font-weight: 600;
667+
margin-bottom: 8px;
668+
}
669+
670+
>div {
671+
height: 42px;
672+
margin: 1.5px 8px;
673+
border-radius: calc(var(--border-radius) - 4px) !important;
674+
overflow: hidden;
675+
}
676+
}
677+
}
678+
649679
>div[class^="container_"] {
650680
gap: 8px;
651681

@@ -702,7 +732,7 @@ html {
702732
}
703733
}
704734

705-
>[class*="wrapper_"] {
735+
>[class^="wrapper_"] {
706736
width: 240px;
707737

708738
>div {
@@ -711,7 +741,7 @@ html {
711741
}
712742
}
713743

714-
>[class*="container_"] {
744+
>[class^="container_"] {
715745
background: var(--background-secondary);
716746
border-radius: calc(var(--border-radius) - 4px);
717747
border: 1px solid var(--border-subtle);
@@ -802,7 +832,7 @@ html {
802832
.layer_cd0de5:not(:has(.accountProfilePopoutWrapper_b2ca13)) {
803833
z-index: 10;
804834

805-
&:has(.statusItem_ad5fac, [id*="account-switch-account--"]) {
835+
&:has(.statusItem_ad5fac, [id^="account-switch-account--"]) {
806836
margin-left: calc(12px + var(--space));
807837
margin-top: -10px;
808838
}
@@ -824,7 +854,7 @@ html {
824854
}
825855
}
826856

827-
ol[aria-label*="Messages in"]>.divider_c2654d {
857+
ol[aria-label^="Messages in"]>.divider_c2654d {
828858
display: none;
829859
}
830860

@@ -850,14 +880,14 @@ html:is(.is-mobile) {
850880

851881
>.sidebar_a4d4d9 {
852882
>section {
853-
>[class*="container_"] {
883+
>[class^="container_"] {
854884
width: calc(100% + (55px - var(--space)));
855885
}
856886
}
857887
}
858888
}
859889

860-
>[class*="chat_"] {
890+
>[class^="chat_"] {
861891

862892
.searchResultsWrap_c2b47d,
863893
.membersWrap_cbd271,

0 commit comments

Comments
 (0)