refactor(github): clean out unused/dead code (#516)

This commit is contained in:
uncenter authored and GitHub committed 2024-02-15 11:41:58 -05:00
1 parent 3df9bc476c
commit b3528f75a4
1 file changed
+193 -347
+193 -347
View File
@@ -2,7 +2,7 @@
@name GitHub Catppuccin
@namespace github.com/catppuccin/userstyles/styles/github
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/github
@version 1.3.9
@version 1.3.10
@description Soothing pastel theme for GitHub
@author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/github/catppuccin.user.css
@@ -13,8 +13,6 @@
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater*", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
@var checkbox search-beta "[BETA]: Enable Search" 1
==/UserStyle== */
/* prettier-ignore */
@@ -134,199 +132,190 @@
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
&,
& body {
accent-color: @accent-color;
--bgColor-default: @base;
--rgh-heat-color: @red;
--color-page-header-bg: @base;
--color-marketing-icon-primary: @sky;
--color-marketing-icon-secondary: @blue;
--color-diff-blob-addition-num-text: @text;
--color-diff-blob-addition-fg: @text;
--color-diff-blob-addition-num-bg: fadeout(@green, 70%);
--color-diff-blob-addition-line-bg: fadeout(@green, 85%);
--color-diff-blob-addition-word-bg: fadeout(@green, 70%);
--color-diff-blob-deletion-num-text: @text;
--color-diff-blob-deletion-fg: @text;
--color-diff-blob-deletion-num-bg: fadeout(@red, 70%);
--color-diff-blob-deletion-line-bg: fadeout(@red, 85%);
--color-diff-blob-deletion-word-bg: fadeout(@red, 70%);
--color-diff-blob-hunk-num-bg: fadeout(@blue, 60%);
--color-diffstat-addition-bg: @green;
--color-prettylights-syntax-comment: @overlay1;
--color-prettylights-syntax-constant: @blue;
--color-prettylights-syntax-entity: @blue;
--color-prettylights-syntax-storage-modifier-import: @peach;
--color-prettylights-syntax-entity-tag: @teal;
--color-prettylights-syntax-keyword: @pink;
--color-prettylights-syntax-string: @green;
--color-prettylights-syntax-variable: @peach;
--color-prettylights-syntax-invalid-illegal-text: @red;
--color-prettylights-syntax-invalid-illegal-bg: fadeout(@red, 85%);
--color-prettylights-syntax-markup-heading: @teal;
--color-prettylights-syntax-markup-italic: @yellow;
--color-prettylights-syntax-markup-bold: @yellow;
--color-prettylights-syntax-markup-deleted-text: @text;
--color-prettylights-syntax-markup-deleted-bg: fadeout(@red, 60%);
--color-prettylights-syntax-markup-inserted-text: @text;
--color-prettylights-syntax-markup-inserted-bg: fadeout(@green, 60%);
--color-prettylights-syntax-markup-changed-text: @text;
--color-prettylights-syntax-markup-changed-bg: fadeout(@yellow, 60%);
--color-prettylights-syntax-markup-ignored-text: @text;
--color-codemirror-text: @text;
--color-codemirror-bg: @base;
--color-codemirror-gutters-bg: @base;
--color-codemirror-guttermarker-text: @base;
--color-codemirror-lines-bg: @base;
--color-codemirror-guttermarker-subtle-text: @overlay0;
--color-codemirror-linenumber-text: @subtext1;
--color-codemirror-matchingbracket-text: @text;
--color-codemirror-syntax-comment: @overlay0;
--color-codemirror-syntax-constant: @blue;
--color-codemirror-syntax-entity: @blue;
--color-codemirror-syntax-keyword: @pink;
--color-codemirror-syntax-storage: @peach;
--color-codemirror-syntax-string: @green;
--color-codemirror-syntax-variable: @peach;
--color-checks-bg: @mantle;
--color-checks-text-primary: @text;
--color-checks-text-secondary: @subtext1;
--color-checks-text-link: @sapphire;
--color-checks-btn-icon: @text;
--color-checks-btn-hover-icon: @text;
--color-checks-btn-hover-bg: @crust;
--color-checks-input-text: @surface1;
--color-checks-input-placeholder-text: @subtext1;
--color-checks-input-focus-text: @text;
--color-checks-input-bg: @surface0;
--color-checks-donut-error: @red;
--color-checks-donut-pending: @peach;
--color-checks-donut-success: @green;
--color-checks-donut-neutral: @overlay2;
--color-checks-dropdown-text: @text;
--color-checks-dropdown-bg: @surface0;
--color-checks-dropdown-border: @surface1;
--color-checks-dropdown-shadow: @crust;
--color-checks-dropdown-hover-text: @subtext0;
--color-checks-dropdown-hover-bg: @mantle;
--color-checks-dropdown-btn-hover-text: @text;
--color-checks-dropdown-btn-hover-bg: @mantle;
--color-checks-scrollbar-thumb-bg: @mantle;
--color-checks-header-label-text: @text;
--color-checks-header-label-open-text: @accent-color;
--color-checks-header-border: @surface0;
--color-checks-header-icon: @text;
--color-checks-line-text: @subtext0;
--color-checks-line-num-text: @subtext0;
--color-checks-line-timestamp-text: @subtext0;
--color-checks-line-hover-bg: @surface0;
--color-checks-line-selected-bg: @surface0;
--color-checks-gate-text: @text;
--color-checks-gate-waiting-text: @yellow;
--color-checks-step-header-open-bg: @surface0;
--color-checks-step-error-text: @maroon;
--color-checks-step-warning-text: @peach;
--color-checks-logline-text: @text;
--color-checks-logline-num-text: @text;
--color-checks-logline-debug-text: @mauve;
--color-checks-logline-error-text: @text;
--color-checks-logline-error-num-text: @maroon;
--color-checks-logline-error-bg: fadeout(@maroon, 85%);
--color-checks-logline-warning-text: @subtext1;
--color-checks-logline-warning-num-text: @peach;
--color-checks-logline-warning-bg: fadeout(@peach, 85%);
--color-checks-logline-command-text: @blue;
--color-checks-logline-section-text: @green;
--color-checks-ansi-black: @surface1;
--color-checks-ansi-black-bright: @surface2;
--color-checks-ansi-white: @subtext1;
--color-checks-ansi-white-bright: @subtext0;
--divider-color: @surface1;
--underlineNav-borderColor-active: @accent-color;
--color-scale-yellow-2: @yellow; /* used for stars */
& when (@lookup =latte) {
--color-checks-ansi-black: @subtext1;
--color-checks-ansi-black-bright: @subtext0;
--color-checks-ansi-white: @surface2;
--color-checks-ansi-white-bright: @surface1;
}
--color-checks-ansi-red: @red;
--color-checks-ansi-red-bright: @red;
--color-checks-ansi-green: @green;
--color-checks-ansi-green-bright: @green;
--color-checks-ansi-yellow: @yellow;
--color-checks-ansi-yellow-bright: @yellow;
--color-checks-ansi-blue: @blue;
--color-checks-ansi-blue-bright: @blue;
--color-checks-ansi-magenta: @pink;
--color-checks-ansi-magenta-bright: @pink;
--color-checks-ansi-cyan: @teal;
--color-checks-ansi-cyan-bright: @teal;
--color-header-text: var(--subtext2);
--color-header-bg: @mantle;
--color-header-logo: @text;
--color-header-search-bg: @surface0;
--color-header-search-border: @surface1;
--color-sidenav-selected-bg: @surface1;
--color-menu-bg-active: @surface2;
--color-timeline-badge-bg: @surface0;
--color-btn-text: @text;
--color-btn-bg: @surface0;
--color-btn-border: @surface1;
--color-btn-hover-bg: @surface1;
--color-btn-hover-border: @surface2;
--color-btn-active-bg: @surface2;
--color-btn-selected-bg: @surface2;
--color-btn-counter-bg: @surface2;
--color-btn-outline-text: @accent-color;
#coloredButton(primary, @green, false);
#coloredButton(danger, @red, true);
--color-action-list-item-inline-divider: @surface2;
--color-action-list-item-default-hover-bg: @surface1;
--color-action-list-item-default-selected-bg: @surface1;
--color-fg-default: @text;
--color-fg-muted: @subtext1;
--color-fg-subtle: @subtext1;
--color-fg-on-emphasis: @base;
--color-canvas-default: @base;
--color-canvas-overlay: @surface0;
--color-canvas-inset: @mantle; // background
--color-canvas-subtle: @surface0;
--color-border-default: @surface1;
--color-border-muted: @surface0;
--color-shadow-medium: 0 3px 6px @crust;
--color-shadow-large: 0 8px 24px @crust;
--color-shadow-extra-large: 0 12px 48px @crust;
--color-neutral-emphasis-plus: @overlay0;
--color-neutral-emphasis: @overlay2;
--color-neutral-muted: fadeout(@overlay0, 60%);
--color-accent-fg: @accent-color;
--color-accent-emphasis: @accent-color;
--color-accent-muted: fadeout(@accent-color, 60%);
--color-accent-subtle: fadeout(@accent-color, 85%);
--color-success-fg: @green;
--color-success-emphasis: @green;
--color-attention-fg: @peach;
--color-attention-emphasis: @peach;
--color-severe-fg: @maroon;
--color-severe-emphasis: @maroon;
--color-danger-fg: @red;
--color-danger-muted: fadeout(@red, 60%);
--color-danger-emphasis: @red;
--color-open-fg: @green;
--color-open-emphasis: @green;
--color-closed-fg: @red;
--color-closed-emphasis: @red;
--color-done-fg: @mauve;
--color-done-emphasis: @mauve;
--color-sponsors-fg: @mauve;
--color-sponsors-emphasis: @mauve;
--color-primer-fg-disabled: fadeout(@accent-color, 50%);
--color-primer-border-active: @red;
accent-color: @accent-color;
--bgColor-default: @base;
--color-page-header-bg: @base;
--color-marketing-icon-primary: @sky;
--color-marketing-icon-secondary: @blue;
--color-diff-blob-addition-num-text: @text;
--color-diff-blob-addition-fg: @text;
--color-diff-blob-addition-num-bg: fadeout(@green, 70%);
--color-diff-blob-addition-line-bg: fadeout(@green, 85%);
--color-diff-blob-addition-word-bg: fadeout(@green, 70%);
--color-diff-blob-deletion-num-text: @text;
--color-diff-blob-deletion-fg: @text;
--color-diff-blob-deletion-num-bg: fadeout(@red, 70%);
--color-diff-blob-deletion-line-bg: fadeout(@red, 85%);
--color-diff-blob-deletion-word-bg: fadeout(@red, 70%);
--color-diff-blob-hunk-num-bg: fadeout(@blue, 60%);
--color-diffstat-addition-bg: @green;
--color-prettylights-syntax-comment: @overlay1;
--color-prettylights-syntax-constant: @blue;
--color-prettylights-syntax-entity: @blue;
--color-prettylights-syntax-storage-modifier-import: @peach;
--color-prettylights-syntax-entity-tag: @teal;
--color-prettylights-syntax-keyword: @pink;
--color-prettylights-syntax-string: @green;
--color-prettylights-syntax-variable: @peach;
--color-prettylights-syntax-invalid-illegal-text: @red;
--color-prettylights-syntax-invalid-illegal-bg: fadeout(@red, 85%);
--color-prettylights-syntax-markup-heading: @teal;
--color-prettylights-syntax-markup-italic: @yellow;
--color-prettylights-syntax-markup-bold: @yellow;
--color-prettylights-syntax-markup-deleted-text: @text;
--color-prettylights-syntax-markup-deleted-bg: fadeout(@red, 60%);
--color-prettylights-syntax-markup-inserted-text: @text;
--color-prettylights-syntax-markup-inserted-bg: fadeout(@green, 60%);
--color-prettylights-syntax-markup-changed-text: @text;
--color-prettylights-syntax-markup-changed-bg: fadeout(@yellow, 60%);
--color-prettylights-syntax-markup-ignored-text: @text;
--color-codemirror-text: @text;
--color-codemirror-bg: @base;
--color-codemirror-gutters-bg: @base;
--color-codemirror-guttermarker-text: @base;
--color-codemirror-lines-bg: @base;
--color-codemirror-guttermarker-subtle-text: @overlay0;
--color-codemirror-linenumber-text: @subtext1;
--color-codemirror-matchingbracket-text: @text;
--color-codemirror-syntax-comment: @overlay0;
--color-codemirror-syntax-constant: @blue;
--color-codemirror-syntax-entity: @blue;
--color-codemirror-syntax-keyword: @pink;
--color-codemirror-syntax-storage: @peach;
--color-codemirror-syntax-string: @green;
--color-codemirror-syntax-variable: @peach;
--color-checks-bg: @mantle;
--color-checks-text-primary: @text;
--color-checks-text-secondary: @subtext1;
--color-checks-text-link: @sapphire;
--color-checks-btn-icon: @text;
--color-checks-btn-hover-icon: @text;
--color-checks-btn-hover-bg: @crust;
--color-checks-input-text: @surface1;
--color-checks-input-placeholder-text: @subtext1;
--color-checks-input-focus-text: @text;
--color-checks-input-bg: @surface0;
--color-checks-donut-error: @red;
--color-checks-donut-pending: @peach;
--color-checks-donut-success: @green;
--color-checks-donut-neutral: @overlay2;
--color-checks-dropdown-text: @text;
--color-checks-dropdown-bg: @surface0;
--color-checks-dropdown-border: @surface1;
--color-checks-dropdown-shadow: @crust;
--color-checks-dropdown-hover-text: @subtext0;
--color-checks-dropdown-hover-bg: @mantle;
--color-checks-dropdown-btn-hover-text: @text;
--color-checks-dropdown-btn-hover-bg: @mantle;
--color-checks-scrollbar-thumb-bg: @mantle;
--color-checks-header-label-text: @text;
--color-checks-header-label-open-text: @accent-color;
--color-checks-header-border: @surface0;
--color-checks-header-icon: @text;
--color-checks-line-text: @subtext0;
--color-checks-line-num-text: @subtext0;
--color-checks-line-timestamp-text: @subtext0;
--color-checks-line-hover-bg: @surface0;
--color-checks-line-selected-bg: @surface0;
--color-checks-gate-text: @text;
--color-checks-gate-waiting-text: @yellow;
--color-checks-step-header-open-bg: @surface0;
--color-checks-step-error-text: @maroon;
--color-checks-step-warning-text: @peach;
--color-checks-logline-text: @text;
--color-checks-logline-num-text: @text;
--color-checks-logline-debug-text: @mauve;
--color-checks-logline-error-text: @text;
--color-checks-logline-error-num-text: @maroon;
--color-checks-logline-error-bg: fadeout(@maroon, 85%);
--color-checks-logline-warning-text: @subtext1;
--color-checks-logline-warning-num-text: @peach;
--color-checks-logline-warning-bg: fadeout(@peach, 85%);
--color-checks-logline-command-text: @blue;
--color-checks-logline-section-text: @green;
--color-checks-ansi-black: @surface1;
--color-checks-ansi-black-bright: @surface2;
--color-checks-ansi-white: @subtext1;
--color-checks-ansi-white-bright: @subtext0;
& when (@lookup =latte) {
--color-checks-ansi-black: @subtext1;
--color-checks-ansi-black-bright: @subtext0;
--color-checks-ansi-white: @surface2;
--color-checks-ansi-white-bright: @surface1;
}
--color-checks-ansi-red: @red;
--color-checks-ansi-red-bright: @red;
--color-checks-ansi-green: @green;
--color-checks-ansi-green-bright: @green;
--color-checks-ansi-yellow: @yellow;
--color-checks-ansi-yellow-bright: @yellow;
--color-checks-ansi-blue: @blue;
--color-checks-ansi-blue-bright: @blue;
--color-checks-ansi-magenta: @pink;
--color-checks-ansi-magenta-bright: @pink;
--color-checks-ansi-cyan: @teal;
--color-checks-ansi-cyan-bright: @teal;
--color-header-text: var(--subtext2);
--color-header-bg: @mantle;
--color-header-logo: @text;
--color-header-search-bg: @surface0;
--color-header-search-border: @surface1;
--color-sidenav-selected-bg: @surface1;
--color-menu-bg-active: @surface2;
--color-timeline-badge-bg: @surface0;
--color-btn-text: @text;
--color-btn-bg: @surface0;
--color-btn-border: @surface1;
--color-btn-hover-bg: @surface1;
--color-btn-hover-border: @surface2;
--color-btn-active-bg: @surface2;
--color-btn-selected-bg: @surface2;
--color-btn-counter-bg: @surface2;
--color-btn-outline-text: @accent-color;
#coloredButton(primary, @green, false);
#coloredButton(danger, @red, true);
--color-action-list-item-inline-divider: @surface2;
--color-action-list-item-default-hover-bg: @surface1;
--color-action-list-item-default-selected-bg: @surface1;
--color-fg-default: @text;
--color-fg-muted: @subtext1;
--color-fg-subtle: @subtext1;
--color-fg-on-emphasis: @base;
--color-canvas-default: @base;
--color-canvas-overlay: @surface0;
--color-canvas-inset: @mantle; // background
--color-canvas-subtle: @surface0;
--color-border-default: @surface1;
--color-border-muted: @surface0;
--color-shadow-medium: 0 3px 6px @crust;
--color-shadow-large: 0 8px 24px @crust;
--color-shadow-extra-large: 0 12px 48px @crust;
--color-neutral-emphasis-plus: @overlay0;
--color-neutral-emphasis: @overlay2;
--color-neutral-muted: fadeout(@overlay0, 60%);
--color-accent-fg: @accent-color;
--color-accent-emphasis: @accent-color;
--color-accent-muted: fadeout(@accent-color, 60%);
--color-accent-subtle: fadeout(@accent-color, 85%);
--color-success-fg: @green;
--color-success-emphasis: @green;
--color-attention-fg: @peach;
--color-attention-emphasis: @peach;
--color-severe-fg: @maroon;
--color-severe-emphasis: @maroon;
--color-danger-fg: @red;
--color-danger-muted: fadeout(@red, 60%);
--color-danger-emphasis: @red;
--color-open-fg: @green;
--color-open-emphasis: @green;
--color-closed-fg: @red;
--color-closed-emphasis: @red;
--color-done-fg: @mauve;
--color-done-emphasis: @mauve;
--color-sponsors-fg: @mauve;
--color-sponsors-emphasis: @mauve;
--color-primer-fg-disabled: fadeout(@accent-color, 50%);
--color-primer-border-active: @red;
--color-workflow-card-connector: @overlay0;
--color-workflow-card-connector-bg: @overlay0;
--color-workflow-card-connector-inactive: @surface1;
@@ -346,11 +335,9 @@
--color-notifications-row-bg: var(--color-canvas-subtle);
--color-icon-directory: @text;
--color-checks-step-error-icon: var(--color-scale-red-4);
--color-user-mention-fg: @accent-color;
--color-user-mention-bg: fade(@accent-color, 30%);
--color-text-white: @text;
--color-calendar-halloween-graph-day-L1-bg: fadeout(@accent-color, 3);
--color-calendar-halloween-graph-day-L2-bg: fadeout(@accent-color, 2);
--color-calendar-halloween-graph-day-L3-bg: @accent-color;
@@ -365,8 +352,16 @@
--color-calendar-graph-day-L4-border: transparent !important;
--color-calendar-graph-day-border: transparent !important;
--color-calendar-graph-day-bg: @surface0 !important;
--color-segmented-control-button-bg: @base;
--color-segmented-control-button-hover-bg: @surface0;
--color-segmented-control-button-active-bg: @mantle;
--color-segmented-control-button-selected-border: @overlay0;
/* Other */
--rgh-heat-color: @red;
--divider-color: @surface1;
--underlineNav-borderColor-active: @accent-color;
--color-scale-yellow-2: @yellow;
/* Focus states */
*:focus-visible,
@@ -420,12 +415,6 @@
box-shadow: none;
}
/* Header above repo documents (README, CoC, LICENSE, etc) */
.Box-sc-g0xbh4-0.jMdYTc {
background-color: @base;
border-bottom-color: @surface1;
}
/* Currently selected "tab" */
.gcnonJ::after,
.cnHXaE::after {
@@ -439,153 +428,10 @@
--color-fg-on-emphasis: @text !important;
}
/* Code explorer/viewer */
.bESQXL,
.fzMvzt,
.hAuZAP {
background-color: @mantle;
}
.etfROT,
.brFBoI {
border-color: @surface1;
}
.cvKirU {
background-color: @surface1;
}
#repos-header-breadcrumb-mobile a {
color: @accent-color;
}
/* Preview/code/blame tabs */
[aria-label="File view"],
[aria-label="Edit mode"] {
button[aria-current="true"] .segmentedControl-content {
background-color: @base;
}
}
/* Edit file */
.cm-placeholder {
color: @overlay1 !important;
}
/* -- 🚧 DANGER ZONE 🚧-- */
/* Cleaning up unknown code here... */
/* New repo layout button, pr button on repo, tick */
.dvJnjZ,
.types__StyledButton-sc-ws60qy-0.gHIvvy,
.ldavJa {
background-color: @green;
color: @crust;
&:hover {
background-color: darken(@green, 15%);
}
}
.ezbPok * {
fill: @text;
}
.jMEWXM > * > *,
/* Code view file tree */
#repos-file-tree #branch-picker-repos-header-ref-selector,
#repos-file-tree button[aria-label="Search this repository"],
#repos-file-tree span[aria-label="Add file"] a,
.gtXnmh .Box-sc-g0xbh4-0.jGfYmh > * {
background-color: @surface0;
border-color: @surface1;
&:hover {
background-color: @surface1;
border-color: @surface2;
}
& * {
fill: @text;
color: @text;
}
}
.cPEOjV,
.gtXnmh {
background-color: @mantle;
}
/* GitHub decided to manually override these links' colors for whatever reason */
.GCHqa,
.QBrkF {
color: @accent-color;
}
.QBrkF {
background-color: fade(@accent-color, 10%);
}
.Box-sc-g0xbh4-0.bUCzHg,
.ehcSsh > * {
border-color: @surface1 !important;
}
.eYedVD .Box-sc-g0xbh4-0.jGfYmh *,
.Text-sc-17v1xeu-0.foaUgQ {
color: @subtext0;
}
.hRMLtq,
.ilcYjX *,
.lcModf,
button.types__StyledButton-sc-ws60qy-0.kRuNkv {
color: @text;
}
.Flash__StyledFlash-sc-hzrzfc-0.kUDiXM {
background-color: fadeout(@peach, 90%);
border-color: @peach;
}
.kUDiXM svg {
fill: @peach;
}
/* Some popup */
.iGzDhH,
.hBobmI,
#__primerPortalRoot__ > div > div > div {
background-color: @mantle;
[class^="TabNav__TabNavTabList-"] button {
&.selected {
background-color: @mantle;
border-color: @surface1;
}
&:not(.selected) {
color: @overlay2;
}
&:hover {
background-color: @surface1;
}
}
.eJLRZa {
border-color: @surface1;
}
}
.Text-sc-17v1xeu-0.gPDEWA {
color: @subtext1;
}
& when (@search-beta = 1) {
// search menu links
.Link__StyledLink-sc-14289xe-0.ifbDxt {
color: @blue;
}
.Link__StyledLink-sc-14289xe-0.ifbDxt:hover {
background-color: fadeout(@blue, 60%);
}
// Search page buttons
.cxcvTj,
.rDvrp,
.fvQAVN,
.Box-sc-g0xbh4-0.grSspY button {
background-color: @mantle;
border-color: @surface1;
}
.lpbCdH,
.ibvJxz,
.fjInzX {
background-color: @mantle;
}
.search-results-page {
background-color: @base;
}
}
}
}