Skip to content

Commit

Permalink
Relocate and lint goosenest
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Apr 6, 2024
1 parent 3cab398 commit 73ebee0
Show file tree
Hide file tree
Showing 16 changed files with 1,855 additions and 506 deletions.
26 changes: 13 additions & 13 deletions src/goosenest/RevertRebrand.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,44 @@
/* If you do not want some things reverted, commend out imports like /* @import url("...") */

/* [Recommended] Revert CSS variables: colors, fonts */
@import url("./variables.css");
@import url("./src/variables.css");

/* Generated hardcoded color fixes */
@import url("./hardcoded.css");
@import url("./src/hardcoded.css");

/* Individual components: */

/* Revert mentions */
@import url("./components/mentions.css");
@import url("./src/components/mentions.css");

/* Revert reactions */
@import url("./components/reactions.css");
@import url("./src/components/reactions.css");

/* Revert profile pictures */
@import url("./components/pfps.css");
@import url("./src/components/pfps.css");

/* Revert folders (default colors back to old blurple) */
@import url("./components/folders.css");
@import url("./src/components/folders.css");

/* Revert windows wordmark */
@import url("./components/wordmark.css");
@import url("./src/components/wordmark.css");

/* [Optional] Revert new user popouts */
/* @import url('./components/userPopout.css'); */
/* @import url('components/userPopout.css'); */

/* [Optional] Revert new role designs */
/* @import url('./components/roles.css'); */
/* @import url('components/roles.css'); */

/* General changes: */

/* Revert some BD specific elements */
@import url("./general/bd.css");
@import url("./src/general/bd.css");

/* Revert some inputs */
@import url("./general/inputs.css");
@import url("./src/general/inputs.css");

/* Revert some SVGs (colors for smaller icons) */
@import url("./general/svgs.css");
@import url("./src/general/svgs.css");

/* Revert some other minor things */
@import url("./general/other.css");
@import url("./src/general/other.css");
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/* Revert reactions */
.reaction_ef7e09 {
border-radius: .25rem;
border-radius: 0.25rem;
background: var(--background-modifier-selected);

border: none;
}

.mentioned_fa6fd2 .reaction_ef7e09,
.mentioned_fa6fd2 .reaction_ef7e09:hover {
background-color:var(--background-modifier-accent);
background-color: var(--background-modifier-accent);
}

.reaction_ef7e09 .reactionCount_b780c8 {
color: var(--text-muted); /* A11Y-- */
}

.reaction_ef7e09 .reactionInner_d6d30f {
padding: 0 .375rem;
padding: 0 0.375rem;
}

/* Self reactions */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Role Revert in user modal */
.role_d81130{
.role_d81130 {
background: transparent;
border: 1px solid;
border-radius: 11px;
Expand All @@ -17,8 +17,8 @@
width: 10px;
height: 10px;
}
.addButtonIcon__8ad56>path {
d: path('M3 0h1v7H3zM0 3h7v1H0z');
color: #b9bbbe;
transform: scale(calc(24 / 7));
.addButtonIcon__8ad56 > path {
d: path("M3 0h1v7H3zM0 3h7v1H0z");
color: #b9bbbe;
transform: scale(calc(24 / 7));
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

.headerText-2WJ44e {
text-align: center;
}
}
15 changes: 15 additions & 0 deletions src/goosenest/src/components/wordmark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Color BD specific settings elements */
#bd-pub-button, .bd-addon-views .bd-view-button.selected, .bd-button {
#bd-pub-button,
.bd-addon-views .bd-view-button.selected,
.bd-button {
background-color: var(--brand-experiment);
}
.bd-button:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

/* On switches to old green */
.container-2nx-BQ[style*="opacity: 1; background-color: hsl(139"] {
background-color: var(--old-green) !important;
background-color: var(--old-green) !important;
}

/* Text input focus border color is now focus / link, change back to original brand color */
.input-2yCVqe.focused-1AtTHC, .input-2yCVqe:focus {
.input-2yCVqe.focused-1AtTHC,
.input-2yCVqe:focus {
border-color: var(--brand-experiment);
}

Expand All @@ -35,7 +36,7 @@

/* Revert the 'Add Friend' button to the old green*/
.item_e4ca95.item-3XjbnG.themed-2-lozF[style*="background-color: hsl(139"] {
background-color: var(--old-green) !important;
background-color: var(--old-green) !important;
}

/* Fixed "Add Friend" button to correct colors when selected */
Expand All @@ -51,6 +52,5 @@

/* Revert the progress bar when uploading files back to blurple */
.progressBar-1T6LYX {
background-color: var(--brand-experiment) !important;
background-color: var(--brand-experiment) !important;
}

122 changes: 122 additions & 0 deletions src/goosenest/src/general/other.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/* Change green colorables from the new green color to the old green color. */
/* In particular, this fixes the join call buttons, but it may also fix other stuff around the app */
.colorable__4f530.green_a14a3a {
background-color: var(--old-green);
}

/* Also fix the colorables when they're active or being hovered over, for example when hovering over the call buttons */
.colorable__4f530.green_a14a3a.active_ff29dc,
.colorable__4f530.green_a14a3a:hover {
background: var(--old-green);
}

/* Change red colorables from the new red color to the old red color. */
/* In particular, this fixes the decline call buttons, but it may also fix other stuff around the app */
.colorable__4f530.red__45e65 {
background-color: var(--old-red);
}

/* Also fix the colorables when they're active or being hovered over, for example when hovering over the decline call buttons */
.colorable__4f530.red__45e65.active_ff29dc,
.colorable__4f530.red__45e65:hover {
background: var(--old-red);
}

/* Verified check mark color */
.verified_dd501b {
color: var(--old-green);
}

/* Fix the speaking ring around your avatar in the bottom left corner of your screen */
.avatarSpeaking_f239de {
box-shadow:
inset 0 0 0 2px var(--old-green),
inset 0 0 0 3px #2f3136;
}

/* And fix speaking avatars in calls in general */
.speaking-B2MXPi.border-Jn5IOt {
box-shadow:
inset 0 0 0 2px var(--old-green),
inset 0 0 0 3px #2f3136;
}

/* And fix speaking in call when your camera is enabled */
.border-3dQmSY.speaking-WDn8Wm {
box-shadow:
inset 0 0 0 2px var(--old-green),
inset 0 0 0 3px #000;
}

/* Revert new Nitro icon by setting item */
div[class*="premiumLabel-"] > svg {
display: none;
}

/* Revert new Nitro color by setting item */
.premiumLabel__68f78 {
color: #7289da;
}
.premiumLabel__68f78.selected__18a0b {
color: #fffbfc;
}

/* Online status */
.wrapper-1VLyxH
rect.pointerEvents-9SZWKj[mask="url(#svg-mask-status-online)"]:not([fill="#ffffff"]) {
fill: var(--old-green);
}

/* Online status (mobile) */
.wrapper-1VLyxH
rect.pointerEvents-9SZWKj[mask="url(#svg-mask-status-online-mobile)"]:not([fill="#ffffff"]) {
fill: var(--old-green);
}

/* Online status (typing and other) */
.wrapper-1VLyxH svg.cursorDefault--wfhy5 > rect[fill="#3ba55c"] {
fill: var(--old-green);
}

/* Revert loading tip title color */
.tipTitle-GL9qAt {
color: var(--brand-experiment) !important;
}

/* Revert home icon */
.homeIcon__560eb > path {
d: path(
"M 20.6644 20 C 20.6644 20 19.8014 18.9762 19.0822 18.0714 C 22.2226 17.1905 23.4212 15.2381 23.4212 15.2381 C 22.4384 15.881 21.5034 16.3334 20.6644 16.6429 C 19.4658 17.1429 18.3151 17.4762 17.1884 17.6667 C 14.887 18.0953 12.7774 17.9762 10.9795 17.6429 C 9.61301 17.381 8.43836 17 7.45548 16.6191 C 6.90411 16.4048 6.30479 16.1429 5.70548 15.8096 C 5.63356 15.7619 5.56164 15.7381 5.48973 15.6905 C 5.44178 15.6667 5.41781 15.6429 5.39384 15.6191 C 4.96233 15.381 4.7226 15.2143 4.7226 15.2143 C 4.7226 15.2143 5.87329 17.1191 8.91781 18.0238 C 8.19863 18.9286 7.31164 20 7.31164 20 C 2.0137 19.8333 0 16.381 0 16.381 C 0 8.7144 3.45205 2.50017 3.45205 2.50017 C 6.90411 -0.07123 10.1884 0.000197861 10.1884 0.000197861 L 10.4281 0.285909 C 6.11301 1.52399 4.12329 3.40493 4.12329 3.40493 C 4.12329 3.40493 4.65068 3.11921 5.53767 2.71446 C 8.10274 1.59542 10.1404 1.2859 10.9795 1.21447 C 11.1233 1.19066 11.2432 1.16685 11.387 1.16685 C 12.8493 0.976379 14.5034 0.92876 16.2295 1.11923 C 18.5068 1.38114 20.9521 2.0478 23.4452 3.40493 C 23.4452 3.40493 21.5514 1.61923 17.476 0.381146 L 17.8116 0.000197861 C 17.8116 0.000197861 21.0959 -0.07123 24.5479 2.50017 C 24.5479 2.50017 28 8.7144 28 16.381 C 28 16.381 25.9623 19.8333 20.6644 20 Z M 9.51712 8.88106 C 8.15068 8.88106 7.07192 10.0715 7.07192 11.5239 C 7.07192 12.9763 8.17466 14.1667 9.51712 14.1667 C 10.8836 14.1667 11.9623 12.9763 11.9623 11.5239 C 11.9863 10.0715 10.8836 8.88106 9.51712 8.88106 Z M 18.2671 8.88106 C 16.9007 8.88106 15.8219 10.0715 15.8219 11.5239 C 15.8219 12.9763 16.9247 14.1667 18.2671 14.1667 C 19.6336 14.1667 20.7123 12.9763 20.7123 11.5239 C 20.7123 10.0715 19.6336 8.88106 18.2671 8.88106 Z"
);
}

/* Revert the command names and 'dismiss message' button to blurple */
.commandName_fd97e7.clickable__09456,
.ephemeralMessage__24192 .anchor-1MIwyf.anchorUnderlineOnHover-2qPutX[role="button"] {
color: var(--brand-experiment);
}

/* Fix the color of the spotify play icon on the upload button when playing on spotify */
div[class*="attachButtonPlay-"] {
color: var(--old-green);
}

/* Green tooltips */
.tooltipGreen-oouJdx {
background-color: var(--old-green) !important;
}
/* Revert background of fake activity icon when customizing profile */
.fakeActivityIcon__7d0ce.wumpus-otZFUO {
background-color: var(--brand-experiment);
}
/* Revert some buttons on login page back to old blurple */
.marginBottom20__9fcf3.marginTop4_d4cd52.linkButton__8dff8.button__581d0.lookLink-15mFoz.lowSaturationUnderline-Z6CW6z.colorLink-1Md3RZ.sizeMin-DfpWCE.grow-2sR_-F
.contents-3ca1mk,
.smallRegisterLink-1qEJhz.linkButton__8dff8.button__581d0.lookLink-15mFoz.lowSaturationUnderline-Z6CW6z.colorLink-1Md3RZ.sizeMin-DfpWCE.grow-2sR_-F
.contents-3ca1mk,
.marginTop8__7da6c.linkButton__8dff8.button__581d0.lookLink-15mFoz.lowSaturationUnderline-Z6CW6z.colorLink-1Md3RZ.sizeMin-DfpWCE.grow-2sR_-F
.contents-3ca1mk,
.colorStandard-21JIj7.size12-oc4dx4.subText__39b07.marginTop20__7e0ad
.anchor-1MIwyf.anchorUnderlineOnHover-2qPutX {
color: var(--brand-experiment);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
/* Permission checkmarks in authorized apps to the old green */
/* The images in these are specified by class, so it's impossible to get more specific of a match than this */
.permissionCheckmark__6860a {
background: url("https://Goose-Nest.github.io/GT-RevertRebrand/assets/authorized_apps_checkmark_icon.svg") no-repeat;
background: url("https://Goose-Nest.github.io/GT-RevertRebrand/assets/authorized_apps_checkmark_icon.svg")
no-repeat;
}

/* Revert the 'An adventure begins' popup to the old green */
[src="/assets/3fba9b3d08682f3ce0344e289fe668cb.svg"] {
content: url("https://Goose-Nest.github.io/GT-RevertRebrand/assets/add_friends_to_server.svg") no-repeat center 20px;
content: url("https://Goose-Nest.github.io/GT-RevertRebrand/assets/add_friends_to_server.svg")
no-repeat center 20px;
}

/* Change the report submitted logo back to old one */
Expand Down
Loading

0 comments on commit 73ebee0

Please sign in to comment.