fix(treewide): enforce catppuccin/userstyles code standards (#323)

* fix(gmail): stylelint suggestions

* fix(whatsapp-web): stylelint suggestions

* fix(invidious): stylelint suggestions

* bump(invidious): version number

* fix(gmail): use `::` instead of `:` for pseudo elements

* fix(formative): follow stylelint suggestions

* fix(quizlet): follow stylelint suggestions

* ci: adjust stylelint config

* fix(quizlet): follow more stylelint suggestions

* fix(paste.rs): follow stylelint suggestions

* fix(nixos-search): namespace

* fix(nitter): follow stylelint suggestions

* ci(lint): add `deno task lint:fix`

* style: run `stylelint --fix`

* fix(lastfm): remove duplicate selectors

* fix(formative): remove duplicate selectors

* fix(deepl): remove duplicate classes

* ci(lint): introduce rules against animations & fonts

* fix(libreddit): remove unnecessary  `&`

* ci(lint): disallow boder/outline, add message

* ci(lint): disallow atRules

* treewide: replace `border` in favour of `border-color`

* treewide: reject all font alterations

* treewide: `remove outline: none`

* style: some more `border` -> `border-color`

* ci(lint): `keyframes` needs to stay

* fix(nixos-search): enforce userstyles standards

* fix(nitter): remove redundant `&`

* style(treewide): collapse definitions

* fix(chess): piece urls

* style: mixin classes -> ids

* style: reformat with prettier

* chore(treewide): add/fix metadata

* fix(lastfm): syntax error

* fix(lastfm): remove opionation

* fix(lastfm): remove duplicate classes

* ci(lint): allow animation/transition properties

* fix(lastfm): more small things

* fix(treewide): function typos

* fix(aoc): unknown unit

* fix: more genral forgotten fixes

* fix(brave-search): remove redundant `&`

* style(planetmc): unpack lookup

* fix: remove redundant code

* chore: add `vim:ft=less` to all files

* chore: remove template comment

* fix(anilist): reduce redundant code

* ci(lint): allow `no-invalid-position-at-import-rule`

* fix(twitch): lint warnings

* fix(youtube): `declaration-block-no-duplicate-custom-properties`

* fix: get rid of redundant `& {}` selectors

* fix(anilist): remove redundant `@rgb-raw`

* fix(hoppscotch): `declaration-block-no-duplicate-custom-properties`

* fix(yt): remove duplicate code

* fix(anilist): remove duplicate code

* fix(lastfm): animation name

* fix(bstats): remove redundant code

* fix(yt): remove redundant code

* fix(ichi.moe): `no-duplicate-selectors`

* fix(pinterest): use `border-color` instead of `border`

* fix(planetmc): `no-duplicate-selectors`

* fix(yt): remove over used `::selection`

* fix: use `border-color: transparent` instead of `border: none`

* fix(searxng): remove stylus-style conditional

* fix(invidious): style missing color while i'm at it

* ci(lint): add chalk ansi styling

* style(treewide): enable & fix `length-zero-no-unit`

* ci(lint): prettyprint logger

* fix(yt): fold & don't format lookup

* fix(mastodon): prevent reggressions

* refactor: `not when` -> `when not`

* fix(yt): correct `chips` reggression

* fix(yt): `border-color` reggression

* fix(yt): prevent more reggessions

* refactor(chess): use mixin for piece url

* style: collapsed definition cleanup

---------

Co-authored-by: winston <[email protected]>
This commit is contained in:
Isabelandwinston authored and GitHub committed 2023-11-18 05:20:43 +01:00
1 parent 0814bb215d
commit 95703ab92b
56 files changed
+1840 -6858

No files matched your search

+87 -229
View File
@@ -2,7 +2,7 @@
@name Quizlet Catppuccin
@namespace github.com/catppuccin/userstyles/styles/quizlet
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/quizlet
@version 0.0.1
@version 0.0.2
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/quizlet/catppuccin.user.css
@description Soothing pastel theme for Quizlet
@author Catppuccin
@@ -15,120 +15,13 @@
@-moz-document domain("quizlet.com") {
#catppuccin(@flavor, @accentColor);
/* prettier-ignore */
@catppuccin: {
@latte: {
@rosewater: #dc8a78;
@flamingo: #dd7878;
@pink: #ea76cb;
@mauve: #8839ef;
@red: #d20f39;
@maroon: #e64553;
@peach: #fe640b;
@yellow: #df8e1d;
@green: #40a02b;
@teal: #179299;
@sky: #04a5e5;
@sapphire: #209fb5;
@blue: #1e66f5;
@lavender: #7287fd;
@text: #4c4f69;
@subtext1: #5c5f77;
@subtext0: #6c6f85;
@overlay2: #7c7f93;
@overlay1: #8c8fa1;
@overlay0: #9ca0b0;
@surface2: #acb0be;
@surface1: #bcc0cc;
@surface0: #ccd0da;
@base: #eff1f5;
@mantle: #e6e9ef;
@crust: #dce0e8;
};
@frappe: {
@rosewater: #f2d5cf;
@flamingo: #eebebe;
@pink: #f4b8e4;
@mauve: #ca9ee6;
@red: #e78284;
@maroon: #ea999c;
@peach: #ef9f76;
@yellow: #e5c890;
@green: #a6d189;
@teal: #81c8be;
@sky: #99d1db;
@sapphire: #85c1dc;
@blue: #8caaee;
@lavender: #babbf1;
@text: #c6d0f5;
@subtext1: #b5bfe2;
@subtext0: #a5adce;
@overlay2: #949cbb;
@overlay1: #838ba7;
@overlay0: #737994;
@surface2: #626880;
@surface1: #51576d;
@surface0: #414559;
@base: #303446;
@mantle: #292c3c;
@crust: #232634;
};
@macchiato: {
@rosewater: #f4dbd6;
@flamingo: #f0c6c6;
@pink: #f5bde6;
@mauve: #c6a0f6;
@red: #ed8796;
@maroon: #ee99a0;
@peach: #f5a97f;
@yellow: #eed49f;
@green: #a6da95;
@teal: #8bd5ca;
@sky: #91d7e3;
@sapphire: #7dc4e4;
@blue: #8aadf4;
@lavender: #b7bdf8;
@text: #cad3f5;
@subtext1: #b8c0e0;
@subtext0: #a5adcb;
@overlay2: #939ab7;
@overlay1: #8087a2;
@overlay0: #6e738d;
@surface2: #5b6078;
@surface1: #494d64;
@surface0: #363a4f;
@base: #24273a;
@mantle: #1e2030;
@crust: #181926;
};
@mocha: {
@rosewater: #f5e0dc;
@flamingo: #f2cdcd;
@pink: #f5c2e7;
@mauve: #cba6f7;
@red: #f38ba8;
@maroon: #eba0ac;
@peach: #fab387;
@yellow: #f9e2af;
@green: #a6e3a1;
@teal: #94e2d5;
@sky: #89dceb;
@sapphire: #74c7ec;
@blue: #89b4fa;
@lavender: #b4befe;
@text: #cdd6f4;
@subtext1: #bac2de;
@subtext0: #a6adc8;
@overlay2: #9399b2;
@overlay1: #7f849c;
@overlay0: #6c7086;
@surface2: #585b70;
@surface1: #45475a;
@surface0: #313244;
@base: #1e1e2e;
@mantle: #181825;
@crust: #11111b;
};
};
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
@frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; };
@macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
@mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@@ -178,14 +71,15 @@
}
.s19dmjr1 {
border: none;
border-color: none;
background: @surface0;
}
.NavigationTab--span {
color: @text !important;
}
.s13oqxd2.NavigationTab:not(.no-highlight:after) {
.s13oqxd2.NavigationTab:not(.no-highlight::after) {
background: @overlay2;
}
@@ -233,12 +127,15 @@
.UIButton--borderless:visited,
html.touch .UIButton--borderless:focus:hover:not(:active) {
background: none;
background-color: initial;
color: inherit;
}
.UIButton,
.UIButton:visited,
html.touch .UIButton:focus:hover:not(:active) {
color: inherit;
background-color: @blue;
}
.UIButton--alert,
@@ -247,13 +144,6 @@
background-color: @red;
}
.UIButton--borderless,
.UIButton--borderless:visited,
html.touch .UIButton--borderless:focus:hover:not(:active) {
background-color: initial;
color: inherit;
}
.h1ebmrjk {
background: linear-gradient(180deg, #0000 69.83%, @base 100%);
}
@@ -288,20 +178,16 @@
}
.CourseOverviewPreviewCard-divider {
border: 0.0625rem solid @mantle;
}
.AssemblySecondaryButton {
background-color: @crust;
border-color: @mantle;
}
.AssemblyPrimaryButton--default {
background-color: @crust;
border: 0.0625rem solid @text;
border-color: @text;
}
.c1vierhv {
border: 0.125rem dashed @overlay2;
border-color: @overlay2;
}
.djzjpyv {
@@ -353,7 +239,7 @@
}
.UIBaseCardHeader-thumbnail {
border: @mantle;
border-color: @mantle;
}
.a1s81tf6 {
@@ -393,6 +279,7 @@
}
.AssemblySecondaryButton {
background-color: @crust;
color: @text;
}
@@ -430,13 +317,13 @@
}
.SiteActivity-button {
border: 0.0625rem solid @overlay2;
border-color: @overlay2;
color: @text;
}
.SiteActivity-button:focus,
.SiteActivity-button:hover {
border: 0.0625rem solid @overlay0;
border-color: @overlay0;
color: @subtext1;
}
@@ -451,7 +338,7 @@
.UILinkBox-link .UILink:active,
.UILinkBox-link .UILink:focus,
.UILinkBox-link .UILink:hover {
border-bottom: 0.3125rem solid @overlay2;
border-bottom-color: @overlay2;
}
.AssemblySmallCard-hover:hover::after {
@@ -464,7 +351,7 @@
#react-autowhatever-site-header-global-search-autosuggest {
background-color: @crust;
border: @mantle;
border-color: @mantle;
}
.tqxyjjt {
@@ -481,6 +368,7 @@
.poy4xqf {
background: @crust;
border-color: @crust;
}
.wej97zk {
@@ -491,10 +379,6 @@
background-color: @crust;
}
.poy4xqf {
border: 0.0625rem solid @crust;
}
.c721v4v {
color: @text;
}
@@ -517,7 +401,7 @@
.s1ovpdog {
background-color: @mantle;
border-top: 0.0625rem solid @overlay0;
border-top-color: @overlay0;
}
.c1ap9d88 .AssemblyMenuItem--title {
@@ -550,7 +434,7 @@
}
.UIPopover,
.UIPopover:after {
.UIPopover::after {
background-color: @mantle;
}
@@ -563,7 +447,7 @@
}
.cxvmyeq {
border: 0.0624rem solid @crust;
border-color: @crust;
}
.wxhi4p:hover {
@@ -587,18 +471,18 @@
}
.f1ub3img {
border-top: 0.0625rem solid @overlay2;
border-top-color: @overlay2;
}
.AssemblyTabsWrapper:before {
.AssemblyTabsWrapper::before {
background-color: @overlay2;
}
.s4cgp9b.AssemblyTab:after {
.s4cgp9b.AssemblyTab::after {
background: @blue;
}
.AssemblyTab:hover:after {
.AssemblyTab:hover::after {
background: @blue;
}
@@ -606,12 +490,8 @@
background: @mantle;
}
.wxhi4p:hover {
background: @mantle;
}
.i1v4i7rf.textbookIcon {
background-image: url(https://assets.quizlet.com/a/j/dist/app/i/explanations/textbook_night.1ff39f68b703b28.svg);
background-image: url("https://assets.quizlet.com/a/j/dist/app/i/explanations/textbook_night.1ff39f68b703b28.svg");
}
.sinah8x {
@@ -678,11 +558,6 @@
background: @mantle;
}
.UISwitch-label {
background-color: @mantle;
color: @subtext0;
}
.SetPageTerm {
background: @mantle;
}
@@ -727,7 +602,7 @@
.o1rfl3bx {
color: @text;
border: 0.125rem solid @overlay2;
border-color: @overlay2;
}
.c1lf7cxm {
@@ -780,11 +655,13 @@
}
.UISwitch-label {
border: 0.125rem solid @overlay1;
border-color: @overlay1;
background-color: @mantle;
color: @subtext0;
}
.SetPageTerm-sideContent {
border-right: 0.125rem solid @overlay2;
border-right-color: @overlay2;
}
.UISwitch-input:checked:not(:disabled ~ .UISwitch-label) {
@@ -803,13 +680,11 @@
color: @blue;
}
.AssemblyIconButton--highlight:hover:not([disabled]),
[aria-disabled="true"] {
.AssemblyIconButton--highlight:hover:not([disabled]) {
background-color: @crust;
}
.AssemblyIconButton--tertiary:hover:not([disabled]),
[aria-disabled="true"] {
.AssemblyIconButton--tertiary:hover:not([disabled]) {
background-color: @crust;
}
@@ -819,7 +694,7 @@
.z1x1k8pd.svwhkoh {
color: @green;
border: 0.0625rem solid @green;
border-color: @green;
}
.svwhkoh {
@@ -859,7 +734,7 @@
}
.AssemblyToggleSwitch-input:checked
+ .AssemblyToggleSwitch-fauxInput:after {
+ .AssemblyToggleSwitch-fauxInput::after {
background-color: @pink;
}
@@ -867,7 +742,7 @@
background: @overlay1;
}
.AssemblyToggleSwitch-fauxInput:after {
.AssemblyToggleSwitch-fauxInput::after {
background: @lavender;
}
@@ -917,7 +792,7 @@
}
.a1k2umqi:focus-within {
border-bottom: 0.125rem solid @blue;
border-bottom-color: @blue;
}
.cgyrcnx {
@@ -933,11 +808,11 @@
}
.sjsxdsz {
border-bottom: 0.0625rem solid @overlay2;
border-bottom-color: @overlay2;
}
.fz4nps6 {
border-top: 0.0625rem solid @overlay2;
border-top-color: @overlay2;
}
.AssemblyPrimaryButton--default:disabled,
@@ -962,7 +837,7 @@
.w1uwrq7e {
color: @text;
border: 0.125rem solid @overlay2;
border-color: @overlay2;
}
.t1d08860 {
@@ -1014,12 +889,12 @@
}
.pr2w5fu:first-child {
border-right: 0.125rem solid @overlay2;
border-right-color: @overlay2;
}
.t117larf {
background-color: @crust;
border: 0.0625rem solid @overlay2;
border-color: @overlay2;
color: @text;
}
@@ -1067,18 +942,8 @@
border-color: @yellow;
}
.s19dmjr1 {
background: @surface0;
}
.UIButton,
.UIButton:visited,
html.touch .UIButton:focus:hover:not(:active) {
background-color: @blue;
}
.UICheckbox-fauxInput:after {
border: 0.125rem solid @yellow;
.UICheckbox-fauxInput::after {
border-color: @yellow;
border-width: 0 0 0.125rem 0.125rem;
}
@@ -1102,7 +967,7 @@
}
.UIHorizontalRule {
border-bottom: 0.0625rem solid @overlay2;
border-bottom-color: @overlay2;
}
.OptionsModal-description,
@@ -1126,6 +991,7 @@
.s2y71yx input {
background: inherit;
color: @text;
}
.TextbookRecommendations {
@@ -1146,12 +1012,9 @@
/* .AssemblyIcon--small {
color: @lavender;
} */
.a99ei82 {
background-color: @mantle;
}
.ah3z5j1 {
border: 0.125rem solid @blue;
border-color: @blue;
}
.hkyil8p {
@@ -1159,11 +1022,11 @@
}
.e17gih4t {
border: 0.125rem dashed @overlay2;
border-color: @overlay2;
}
.o1q1tz6w {
border: 0.0625rem solid @overlay2;
border-color: @overlay2;
color: @text;
}
@@ -1177,7 +1040,8 @@
}
.a99ei82 {
border: 0.125rem solid @overlay2;
background-color: @mantle;
border-color: @overlay2;
}
.qcpiy8g {
@@ -1206,7 +1070,7 @@
.w1e3jc65 {
background-color: @mantle;
border: 0.125rem solid @mantle;
border-color: @mantle;
}
.t7fr19y {
@@ -1218,7 +1082,7 @@
}
.w1e3jc65:hover {
border: 0.125rem solid @overlay2;
border-color: @overlay2;
}
.q1nxab59 {
@@ -1259,7 +1123,7 @@
.UIDropdown {
background: @mantle;
border: 0.125rem solid @crust;
border-color: @crust;
}
.UIDropdown .UIDropdown-icon {
@@ -1283,12 +1147,12 @@
}
.ModeControls-back {
border-bottom: 1px solid @overlay2;
border-bottom-color: @overlay2;
}
.UIButton--whiteBorder {
background: @crust;
border: 0.125rem solid @base;
border-color: @base;
color: @text;
}
@@ -1298,7 +1162,7 @@
.MatchModeQuestionScatterTile {
background-color: @mantle;
border: 0.125rem solid @overlay0;
border-color: @overlay0;
}
.MatchModeQuestionScatterTile.is-draggedOver,
@@ -1366,8 +1230,8 @@
color: @subtext0;
}
.s1rtnf4c:before,
.s1rtnf4c:after {
.s1rtnf4c::before,
.s1rtnf4c::after {
background: none;
}
@@ -1413,7 +1277,7 @@
.EdgyDataCoursePillbox .UIPill {
background: @crust;
border: 1px solid @overlay2;
border-color: @overlay2;
color: @text;
}
@@ -1422,12 +1286,12 @@
}
.UIAutosuggest .react-autosuggest__suggestion {
border-bottom: 0.125rem solid @overlay2;
border-bottom-color: @overlay2;
}
.UIAutosuggest
.react-autosuggest__suggestion.react-autosuggest__suggestion--highlighted {
border-bottom: 0.125rem solid @yellow;
border-bottom-color: @yellow;
}
.EdgyDataCourseSelector-suggestion .EdgyDataCourseSelector-suggestionName {
@@ -1457,8 +1321,8 @@
border-color: @peach;
}
.button.google:after {
border-right: 1px solid @peach;
.button.google::after {
border-right-color: @peach;
}
.b1opuclq {
@@ -1477,8 +1341,8 @@
border-color: @lavender;
}
.button.facebook:after {
border-right: 1px solid @lavender;
.button.facebook::after {
border-right-color: @lavender;
}
.UIInput-input:-webkit-autofill,
@@ -1590,7 +1454,7 @@
}
.du7o3ew > div:not(:last-child) {
border-right: 0.0625rem solid @overlay2;
border-right-color: @overlay2;
}
.i73vo82:hover {
@@ -1599,7 +1463,7 @@
}
.f2nmi2p {
border-top: 0.0625rem solid @overlay2;
border-top-color: @overlay2;
}
.a1scx0nz {
@@ -1638,15 +1502,15 @@
color: @subtext0;
}
.AssemblySmallCard-isActive:after {
.AssemblySmallCard-isActive::after {
background-color: @lavender;
}
.i192320l {
border: 0.125rem solid @mantle;
border-color: @mantle;
}
.b1j40uwt:before {
.b1j40uwt::before {
background-color: @mantle;
}
@@ -1676,11 +1540,11 @@
}
.AssemblyIconButton--primaryInverted {
border: 0.0625rem solid @overlay2;
border-color: @overlay2;
}
.StudiableItemToolbar {
border-bottom: 2px solid @overlay2;
border-bottom-color: @overlay2;
}
.b18prmdf {
@@ -1688,11 +1552,11 @@
}
.ImageUploadProminentContextToggle {
border: 0.125rem dashed @overlay0;
border-color: @overlay0;
}
.UILinkButton {
border-bottom: 0.3125rem solid @blue;
border-bottom-color: @blue;
color: @text;
}
@@ -1726,7 +1590,7 @@
}
.UITooltip,
.UITooltip:after {
.UITooltip::after {
background: @crust;
}
@@ -1782,7 +1646,7 @@
border-color: @yellow;
}
.UIRadio-fauxInput:after {
.UIRadio-fauxInput::after {
background-color: @yellow;
}
@@ -1803,7 +1667,7 @@
}
.TermRow.is-duplicate {
outline: 0.125rem solid @yellow;
outline-color: @yellow;
}
.AssemblyPrimaryButton--danger {
@@ -1878,8 +1742,7 @@
background-color: @mantle;
}
.AssemblyPrimaryButton--upgrade:hover:not([disabled]),
[aria-disabled="true"] {
.AssemblyPrimaryButton--upgrade:hover:not([disabled]) {
background: @rosewater;
}
@@ -2105,10 +1968,6 @@
background: @mantle;
}
.s2y71yx input {
color: @text;
}
.q1kwd3of {
color: @overlay2;
}
@@ -2248,7 +2107,7 @@
color: @subtext1;
}
.SetListMediumCard-isActive:before {
.SetListMediumCard-isActive::before {
background-color: @lavender;
}
@@ -2262,9 +2121,7 @@
}
.s80h93u:active:not([disabled]),
[aria-disabled="true"],
.s80h93u:hover:not([disabled]),
[aria-disabled="true"] {
.s80h93u:hover:not([disabled]) {
background: @crust;
}
@@ -2484,3 +2341,4 @@
}
}
}
// vim:ft=less