refactor(github): clean out unused/dead code (#516)
This commit is contained in:
1 parent
3df9bc476c
commit
b3528f75a4
1 file changed
+10
-164
@@ -2,7 +2,7 @@
|
|||||||
@name GitHub Catppuccin
|
@name GitHub Catppuccin
|
||||||
@namespace github.com/catppuccin/userstyles/styles/github
|
@namespace github.com/catppuccin/userstyles/styles/github
|
||||||
@homepageURL https://github.com/catppuccin/userstyles/tree/main/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
|
@description Soothing pastel theme for GitHub
|
||||||
@author Catppuccin
|
@author Catppuccin
|
||||||
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/github/catppuccin.user.css
|
@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 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 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 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== */
|
==/UserStyle== */
|
||||||
|
|
||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
@@ -134,11 +132,8 @@
|
|||||||
@crust: @catppuccin[@@lookup][@crust];
|
@crust: @catppuccin[@@lookup][@crust];
|
||||||
@accent-color: @catppuccin[@@lookup][@@accent];
|
@accent-color: @catppuccin[@@lookup][@@accent];
|
||||||
|
|
||||||
&,
|
|
||||||
& body {
|
|
||||||
accent-color: @accent-color;
|
accent-color: @accent-color;
|
||||||
--bgColor-default: @base;
|
--bgColor-default: @base;
|
||||||
--rgh-heat-color: @red;
|
|
||||||
--color-page-header-bg: @base;
|
--color-page-header-bg: @base;
|
||||||
--color-marketing-icon-primary: @sky;
|
--color-marketing-icon-primary: @sky;
|
||||||
--color-marketing-icon-secondary: @blue;
|
--color-marketing-icon-secondary: @blue;
|
||||||
@@ -242,17 +237,12 @@
|
|||||||
--color-checks-ansi-black-bright: @surface2;
|
--color-checks-ansi-black-bright: @surface2;
|
||||||
--color-checks-ansi-white: @subtext1;
|
--color-checks-ansi-white: @subtext1;
|
||||||
--color-checks-ansi-white-bright: @subtext0;
|
--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) {
|
& when (@lookup =latte) {
|
||||||
--color-checks-ansi-black: @subtext1;
|
--color-checks-ansi-black: @subtext1;
|
||||||
--color-checks-ansi-black-bright: @subtext0;
|
--color-checks-ansi-black-bright: @subtext0;
|
||||||
--color-checks-ansi-white: @surface2;
|
--color-checks-ansi-white: @surface2;
|
||||||
--color-checks-ansi-white-bright: @surface1;
|
--color-checks-ansi-white-bright: @surface1;
|
||||||
}
|
}
|
||||||
|
|
||||||
--color-checks-ansi-red: @red;
|
--color-checks-ansi-red: @red;
|
||||||
--color-checks-ansi-red-bright: @red;
|
--color-checks-ansi-red-bright: @red;
|
||||||
--color-checks-ansi-green: @green;
|
--color-checks-ansi-green: @green;
|
||||||
@@ -326,7 +316,6 @@
|
|||||||
--color-sponsors-emphasis: @mauve;
|
--color-sponsors-emphasis: @mauve;
|
||||||
--color-primer-fg-disabled: fadeout(@accent-color, 50%);
|
--color-primer-fg-disabled: fadeout(@accent-color, 50%);
|
||||||
--color-primer-border-active: @red;
|
--color-primer-border-active: @red;
|
||||||
}
|
|
||||||
--color-workflow-card-connector: @overlay0;
|
--color-workflow-card-connector: @overlay0;
|
||||||
--color-workflow-card-connector-bg: @overlay0;
|
--color-workflow-card-connector-bg: @overlay0;
|
||||||
--color-workflow-card-connector-inactive: @surface1;
|
--color-workflow-card-connector-inactive: @surface1;
|
||||||
@@ -346,11 +335,9 @@
|
|||||||
--color-notifications-row-bg: var(--color-canvas-subtle);
|
--color-notifications-row-bg: var(--color-canvas-subtle);
|
||||||
--color-icon-directory: @text;
|
--color-icon-directory: @text;
|
||||||
--color-checks-step-error-icon: var(--color-scale-red-4);
|
--color-checks-step-error-icon: var(--color-scale-red-4);
|
||||||
|
|
||||||
--color-user-mention-fg: @accent-color;
|
--color-user-mention-fg: @accent-color;
|
||||||
--color-user-mention-bg: fade(@accent-color, 30%);
|
--color-user-mention-bg: fade(@accent-color, 30%);
|
||||||
--color-text-white: @text;
|
--color-text-white: @text;
|
||||||
|
|
||||||
--color-calendar-halloween-graph-day-L1-bg: fadeout(@accent-color, 3);
|
--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-L2-bg: fadeout(@accent-color, 2);
|
||||||
--color-calendar-halloween-graph-day-L3-bg: @accent-color;
|
--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-L4-border: transparent !important;
|
||||||
--color-calendar-graph-day-border: transparent !important;
|
--color-calendar-graph-day-border: transparent !important;
|
||||||
--color-calendar-graph-day-bg: @surface0 !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-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 states */
|
||||||
*:focus-visible,
|
*:focus-visible,
|
||||||
@@ -420,12 +415,6 @@
|
|||||||
box-shadow: none;
|
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" */
|
/* Currently selected "tab" */
|
||||||
.gcnonJ::after,
|
.gcnonJ::after,
|
||||||
.cnHXaE::after {
|
.cnHXaE::after {
|
||||||
@@ -439,153 +428,10 @@
|
|||||||
--color-fg-on-emphasis: @text !important;
|
--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 */
|
/* Edit file */
|
||||||
.cm-placeholder {
|
.cm-placeholder {
|
||||||
color: @overlay1 !important;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user