Skip to content

Commit

Permalink
fix: update classes name for theme's addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtrath committed Nov 3, 2023
1 parent d02bb36 commit df60a57
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 59 deletions.
34 changes: 17 additions & 17 deletions addons/compact-mode.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@media screen and (min-width: 601px) and (max-width: 920px) {
/* Minimize channels sidebar */
.wrapper-1_HaEi.guilds-2JjMmN[aria-label] {
.wrapper_a7e7a8.guilds__2b93a[aria-label] {
z-index: 30 !important;
}

.base-2jDfDU .sidebar-1tnWFu {
.base__3e6af .sidebar_ded4b5 {
position: fixed;
z-index: 20;
top: 0;
Expand All @@ -15,19 +15,19 @@
transition-delay: 150ms;
}

.sidebar-1tnWFu:hover,
.wrapper-1_HaEi:hover + .base-2jDfDU > .content-1SgpWY > .sidebar-1tnWFu{
.sidebar_ded4b5:hover,
.wrapper_a7e7a8:hover + .base__3e6af > .content__4bf10 > .sidebar_ded4b5{
left: 72px;
}

/* Hide member list */
.membersWrap-3NUR2t {
.membersWrap__90226 {
display: none;
}

/* Compact Top bar */
.toolbar-3_r2xA > :nth-child(2),
.toolbar-3_r2xA > :nth-child(4) {
.toolbar__88c63 > :nth-child(2),
.toolbar__88c63 > :nth-child(4) {
display: none;
}

Expand All @@ -36,7 +36,7 @@
width: 28px;
transition: width 0.2s ease-in-out;
}
.searchBar-zdmu7v .iconContainer-1RqWJj {
.searchBar-zdmu7v .iconContainer__8fa9c {
width: 24px !important;
height: 24px;
cursor: pointer !important;
Expand Down Expand Up @@ -65,13 +65,13 @@

/* Very Compact (chat only) */
@media screen and (min-width: 0px) and (max-width: 600px) {
.panels-3wFtMD { position: fixed; bottom: -999px; }
.chat-2ZfjoI { margin-left: 0px; }
.sidebar-1tnWFu { width: 0px; }
.sidebar-1tnWFu .thin-31rlnD { display: none; }
.sidebar-1tnWFu { padding: 0px !important; }
.toolbar-3_r2xA { display: none; }
.children-3xh0VB { margin-right: 10px; }
.wrapper-1_HaEi { display: none; }
.membersWrap-3NUR2t { display: none; }
.panels__58331 { position: fixed; bottom: -999px; }
.chat__52833 { margin-left: 0px; }
.sidebar_ded4b5 { width: 0px; }
.sidebar_ded4b5 .thin_b1c063 { display: none; }
.sidebar_ded4b5 { padding: 0px !important; }
.toolbar__88c63 { display: none; }
.children__32014 { margin-right: 10px; }
.wrapper_a7e7a8 { display: none; }
.membersWrap__90226 { display: none; }
}
26 changes: 13 additions & 13 deletions addons/mac-titlebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,54 @@
--button-position: row;
}

.withFrame-2dL45i {
.withFrame__485f4 {
margin: 0;
height: 24px;
}
.typeWindows-2-g3UY {
.typeWindows__5fa63 {
flex-direction: var(--button-position);
margin-left: 3px !important;
}
.withFrame-2dL45i .winButton-3UMjdg > svg {
.withFrame__485f4 .winButton__88672 > svg {
display: none;
}
.withFrame-2dL45i .winButton-3UMjdg:hover {
.withFrame__485f4 .winButton__88672:hover {
background-color: var(--background-teritary);
}
.withFrame-2dL45i .winButton-3UMjdg {
.withFrame__485f4 .winButton__88672 {
pointer-events: none;
margin-left: -4px;
top: 0;
}
.withFrame-2dL45i .winButton-3UMjdg::after {
.withFrame__485f4 .winButton__88672::after {
content: "";
padding: 7px;
border-radius: 50px;
pointer-events: fill;
transition-duration: 200ms;
}
.withFrame-2dL45i .winButtonClose-3Q8ZH5::after {
.withFrame__485f4 .winButtonClose__73489::after {
background-color: var(--close-button-color) !important;
margin-top: 0px;
}
.withFrame-2dL45i .winButtonMinMax-3RsPUg:nth-child(3)::after {
.withFrame__485f4 .winButtonMinMax__72f36:nth-child(3)::after {
background-color: var(--maximize-button-color) !important;
margin-top: 0px;
}
.withFrame-2dL45i .winButtonMinMax-3RsPUg:nth-child(4):after {
.withFrame__485f4 .winButtonMinMax__72f36:nth-child(4):after {
background-color: var(--minimize-button-color) !important;
margin-top: 0px;
}
.typeWindows-2-g3UY > div:hover::after {
.typeWindows__5fa63 > div:hover::after {
transform: scale(1.1);
}

.withFrame-2dL45i .winButton-3UMjdg:nth-last-child(1) {
.withFrame__485f4 .winButton__88672:nth-last-child(1) {
order: 2;
}
.withFrame-2dL45i .winButton-3UMjdg:nth-last-child(2) {
.withFrame__485f4 .winButton__88672:nth-last-child(2) {
order: 3;
}
.withFrame-2dL45i .winButton-3UMjdg:nth-last-child(3) {
.withFrame__485f4 .winButton__88672:nth-last-child(3) {
order: 1;
}
16 changes: 8 additions & 8 deletions addons/monospace-fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@

/* Settings Menu Title */
.bd-settings-title,
.customScroller-m1-jZn div h1,
.contentColumnDefault-3eyv5o .marginBottom4-1fdMNe h1,
.customScroller_f72801 div h1,
.contentColumnDefault_c66386 .marginBottom4__12b08 h1,
.sectionTitle-3j2YI1 h1,
.alignCenter-14kD11 h1 {
.alignCenter__84269 h1 {
font-style: italic;
font-weight: 600;
}

/* Server Name */
.header-3OsQeK .name-3Uvkvr {
.header__104ca .name_c08dbc {
font-style: italic;
font-weight: 500;
}

/* Category Name */
.name-3BUDLf.container-q97qHp .overflow-1wOqNV {
.name__590d6.container-q97qHp .overflow__87fe8 {
font-weight: 600;
}

/* Username on userpopout */
.bot-XvK26D, .username-3JLfHz,
.bot__7a1c9, .username__2cac3,
.nameTag-2Nlmsy .discriminator-1bqsd3,
.headerText-1-WmDq .nickname-t08Mck,
.headerTagUsernameNoNickname-1TjuLc,
Expand All @@ -46,8 +46,8 @@
}

/* Timestamp */
.compact-2Nkcau .timestamp-p1Df1m,
.cozy-VmLDNB .timestamp-p1Df1m {
.compact__54ecc .timestamp_cdbd93,
.cozy_f5c119 .timestamp_cdbd93 {
font-style: italic;
font-weight: 500;
font-size: 0.7rem;
Expand Down
10 changes: 5 additions & 5 deletions addons/revert-rebrand.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ body {
}

/* Revert SVG path data */
.wordmarkWindows-2dq6rw path {
.wordmarkWindows__05c46 path {
d: path("M3.57642276,0.141304348 L0,0.141304348 L0,4.22826087 L2.38069106,6.40217391 L2.38069106,2.43478261 L3.66260163,2.43478261 C4.47052846,2.43478261 4.86910569,2.83695652 4.86910569,3.4673913 L4.86910569,6.5 C4.86910569,7.13043478 4.49207317,7.55434783 3.66260163,7.55434783 L0,7.55434783 L0,9.85869565 L3.57642276,9.85869565 C5.49390244,9.86956522 7.29288618,8.90217391 7.29288618,6.66304348 L7.29288618,3.39130435 C7.29288618,1.13043478 5.49390244,0.141304348 3.57642276,0.141304348 Z M22.3310976,6.67391304 L22.3310976,3.32608696 C22.3310976,2.11956522 24.4640244,1.83695652 25.1103659,3.05434783 L27.0817073,2.23913043 C26.3168699,0.510869565 24.8949187,0 23.7207317,0 C21.803252,0 19.9073171,1.13043478 19.9073171,3.32608696 L19.9073171,6.67391304 C19.9073171,8.88043478 21.803252,10 23.6776423,10 C24.8841463,10 26.3276423,9.39130435 27.1247967,7.81521739 L25.0134146,6.82608696 C24.4963415,8.17391304 22.3310976,7.84782609 22.3310976,6.67391304 Z M15.8030488,3.7826087 C15.0597561,3.61956522 14.5642276,3.34782609 14.5319106,2.88043478 C14.575,1.75 16.2878049,1.7173913 17.2896341,2.79347826 L18.8731707,1.55434783 C17.8821138,0.326086957 16.7617886,0 15.598374,0 C13.8424797,0 12.1404472,1 12.1404472,2.91304348 C12.1404472,4.77173913 13.5408537,5.76086957 15.0813008,6 C15.8676829,6.10869565 16.7402439,6.42391304 16.7186992,6.97826087 C16.654065,8.02173913 14.5426829,7.9673913 13.5839431,6.7826087 L12.0650407,8.23913043 C12.9591463,9.40217391 14.1764228,10 15.3182927,10 C17.074187,10 19.0239837,8.9673913 19.0993902,7.08695652 C19.2071138,4.69565217 17.5050813,4.09782609 15.8030488,3.7826087 Z M8.59634146,9.85869565 L11.0093496,9.85869565 L11.0093496,0.141304348 L8.59634146,0.141304348 L8.59634146,9.85869565 Z M49.2835366,0.141304348 L45.7071138,0.141304348 L45.7071138,4.22826087 L48.0878049,6.40217391 L48.0878049,2.43478261 L49.3589431,2.43478261 C50.1668699,2.43478261 50.5654472,2.83695652 50.5654472,3.4673913 L50.5654472,6.5 C50.5654472,7.13043478 50.1884146,7.55434783 49.3589431,7.55434783 L45.6963415,7.55434783 L45.6963415,9.85869565 L49.2727642,9.85869565 C51.1902439,9.86956522 52.9892276,8.90217391 52.9892276,6.66304348 L52.9892276,3.39130435 C53,1.13043478 51.2010163,0.141304348 49.2835366,0.141304348 Z M31.7353659,0 C29.753252,0 27.7819106,1.09782609 27.7819106,3.33695652 L27.7819106,6.66304348 C27.7819106,8.89130435 29.7640244,10 31.7569106,10 C33.7390244,10 35.7103659,8.89130435 35.7103659,6.66304348 L35.7103659,3.33695652 C35.7103659,1.10869565 33.7174797,0 31.7353659,0 Z M33.2865854,6.66304348 C33.2865854,7.35869565 32.5109756,7.7173913 31.7461382,7.7173913 C30.9705285,7.7173913 30.1949187,7.36956522 30.1949187,6.66304348 L30.1949187,3.33695652 C30.1949187,2.61956522 30.9489837,2.23913043 31.7030488,2.23913043 C32.4894309,2.23913043 33.2865854,2.58695652 33.2865854,3.33695652 L33.2865854,6.66304348 Z M44.3605691,3.33695652 C44.3067073,1.05434783 42.7770325,0.141304348 40.8056911,0.141304348 L36.9815041,0.141304348 L36.9815041,9.86956522 L39.4268293,9.86956522 L39.4268293,6.77173913 L39.8577236,6.77173913 L42.0768293,9.85869565 L45.0930894,9.85869565 L42.4861789,6.52173913 C43.6495935,6.15217391 44.3605691,5.14130435 44.3605691,3.33695652 Z M40.8487805,4.65217391 L39.4268293,4.65217391 L39.4268293,2.43478261 L40.8487805,2.43478261 C42.3784553,2.43478261 42.3784553,4.65217391 40.8487805,4.65217391 Z");
}
.wordmarkWindows-2dq6rw path:not(:first-child) {
.wordmarkWindows__05c46 path:not(:first-child) {
display: none;
}
/* Tweak positioning */
.wordmarkWindows-2dq6rw g {
.wordmarkWindows__05c46 g {
transform: translateY(3px);
}

Expand All @@ -122,15 +122,15 @@ body {
}

/* Revert mentions and channel links */
#app-mount .wrapper-1ZcZW- {
#app-mount .wrapper__2d9b1 {
color: var(--brand-experiment-460);
background: var(--brand-experiment-10a);

text-decoration: none !important;
padding: 0 1px;
}

#app-mount .wrapper-1ZcZW-:hover {
#app-mount .wrapper__2d9b1:hover {
background: var(--brand-experiment);
color: var(--brand-experiment-100);
}
Expand Down
22 changes: 11 additions & 11 deletions addons/square-avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,41 @@
}

.avatar-2Vndt_,
.userInfo-2WpsYG .avatar-2MSPKk svg foreignObject, /* Friend list avatars */
.avatar-6qzftW svg:not(.linkButtonIcon-7rsZcu) foreignObject, /* Server members avatars */
.userInfo__18240 .avatar__8986c svg foreignObject, /* Friend list avatars */
.avatar__6337f svg:not(.linkButtonIcon__2f35b) foreignObject, /* Server members avatars */
.avatar-2Vndt_ foreignObject, /* User card avatar */
.wrapper-1VLyxH svg foreignObject,
.avatarHint-k7pYop foreignObject,
.container-YkUktl .avatar-1EWyVD svg foreignObject, /* Status bar avatar */
.headerAvatar-GgCKcl svg foreignObject, /* Active now avatars */
.avatarHint__8e5b9 foreignObject,
.container_ca50b9 .avatar_f8541f svg foreignObject, /* Status bar avatar */
.headerAvatar__27d08 svg foreignObject, /* Active now avatars */
.avatar-3QF_VA svg foreignObject {
/* Profile modal avatar */
mask: none;
border-radius: var(--avatar-radius);
}
.wrapper-1VLyxH, /* user popout */
.avatar-2Vndt_,
.avatar-2e8lTP.clickable-31pE3P, /* Chat avatar */
.repliedMessage-3Z6XBG .replyAvatar-sHd2sU {
.avatar__08316.clickable_d866f1, /* Chat avatar */
.repliedMessage_e2bf4a .replyAvatar_cea07c {
/* Replying to avatar */
border-radius: var(--avatar-radius);
}

/* Status Pill */
.wrapper-1VLyxH > svg > rect,
.avatar-3mTjvZ > .mask-1FEkla > rect,
.avatar__6c108 > .mask-1FEkla > rect,
.avatar-2Vndt_ > svg > rect,
.avatar-3QF_VA > svg > rect,
.listAvatar-2bU5Uh > svg > rect {
.listAvatar__907d4 > svg > rect {
rx: var(--avatar-radius);
mask: none;
stroke: var(--background-floating);
stroke-width: 3px;
}
.avatar-3mTjvZ > .mask-1FEkla > rect,
.avatar__6c108 > .mask-1FEkla > rect,
.avatar-2Vndt_ > svg > rect,
.avatar-3QF_VA > svg > rect,
.listAvatar-2bU5Uh > svg > rect {
.listAvatar__907d4 > svg > rect {
width: 20px !important;
height: 20px !important;
}
10 changes: 5 additions & 5 deletions addons/username-background.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Compact Mode */
.compact-2Nkcau .headerText-2z4IhQ > .username-h_Y3Us::before {
.compact__54ecc .headerText_f47574 > .username_d30d99::before {
content: '';
width: calc(100% + 6px);
height: 100%;
Expand All @@ -11,12 +11,12 @@
left: -4px;
z-index: -1;
}
.compact-2Nkcau .headerText-2z4IhQ > .username-h_Y3Us::after {
.compact__54ecc .headerText_f47574 > .username_d30d99::after {
content: ":";
}

/* Cozy Mode */
.cozy-VmLDNB .headerText-2z4IhQ > .username-h_Y3Us::before {
.cozy_f5c119 .headerText_f47574 > .username_d30d99::before {
content: '';
width: calc(100% + 7px);
height: 100%;
Expand All @@ -29,10 +29,10 @@
/* repairs left shift*/
left: -3px;
}
.cozy-VmLDNB .headerText-2z4IhQ > .username-h_Y3Us::after {
.cozy_f5c119 .headerText_f47574 > .username_d30d99::after {
content: ":";
}
/* repairs left shift */
.cozy-VmLDNB .headerText-2z4IhQ > .username-h_Y3Us {
.cozy_f5c119 .headerText_f47574 > .username_d30d99 {
margin-left: 3px;
}

0 comments on commit df60a57

Please sign in to comment.