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:
1 parent
0814bb215d
commit
95703ab92b
56 files changed
+1840
-6858
No files matched your search
@@ -1,10 +1,11 @@
|
||||
/* ==UserStyle==
|
||||
@name Reddit Catppuccin
|
||||
@namespace github.com/catppuccin/userstyles/styles/reddit
|
||||
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/reddit
|
||||
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/reddit
|
||||
@version 1.1.2
|
||||
@description Soothing pastel theme for Reddit.
|
||||
@author jayylmao
|
||||
@author Catppuccin
|
||||
@license MIT
|
||||
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/reddit/catppuccin.user.css
|
||||
|
||||
@preprocessor stylus
|
||||
@@ -67,7 +68,7 @@
|
||||
|
||||
/* non-standard colors */
|
||||
--surface1Transparent: #bcc0ccbd;
|
||||
--mist: #dce0e8bd;
|
||||
--mist: #dce0e8bd;
|
||||
}
|
||||
else if stylusFlavor=="Frappe" {
|
||||
--rosewater: #f2d5cf;
|
||||
@@ -197,7 +198,7 @@
|
||||
--surface1Transparent: #45475abd;
|
||||
--mist: #000000bd;
|
||||
}
|
||||
|
||||
|
||||
if stylusAccent=="Rosewater" {
|
||||
--accent: var(--rosewater);
|
||||
}
|
||||
@@ -241,11 +242,11 @@
|
||||
--accent: var(--lavender);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* REDDIT COLOR VARIABLES */
|
||||
|
||||
|
||||
|
||||
|
||||
div[class^=subredditvars], :root {
|
||||
--color-online: var(--green) !important;
|
||||
--newCommunityTheme-actionIcon: var(--subtext0) !important;
|
||||
@@ -326,10 +327,10 @@
|
||||
--newCommunityTheme-navBar-inactiveSubmenuLink: var(--text) !important;
|
||||
--newCommunityTheme-navBar-submenuBackgroundColor: var(--mantle) !important;
|
||||
--newCommunityTheme-navIcon: var(--text) !important;
|
||||
|
||||
|
||||
/* upvote/downvote focus */
|
||||
--newCommunityTheme-navIconFaded10: var(--mist) !important;
|
||||
|
||||
|
||||
--newCommunityTheme-nsfw: var(--red) !important;
|
||||
--newCommunityTheme-nsfwBlocking-bgcolor: var(--crust) !important;
|
||||
--newCommunityTheme-nsfwBlocking-color: var(--text) !important;
|
||||
@@ -367,7 +368,7 @@
|
||||
--newCommunityTheme-voteText-upvoteTinted80: var(--red) !important;
|
||||
--newCommunityTheme-widgetColors-appleIcon: var(--overlay0) !important;
|
||||
--newCommunityTheme-widgetColors-lineColor: var(--surface1Transparent) !important;
|
||||
|
||||
|
||||
/* sidebar widgets */
|
||||
--newCommunityTheme-widgetColors-sidebarWidgetBackgroundColor: var(--mantle) !important;
|
||||
--newCommunityTheme-widgetColors-sidebarWidgetBorderColor: var(--surface1Transparent) !important;
|
||||
@@ -376,7 +377,7 @@
|
||||
--newCommunityTheme-widgetColors-sidebarWidgetTextColor: var(--text) !important;
|
||||
--newCommunityTheme-widgetColors-sidebarWidgetTextColorShaded80: var(--subtext1) !important;
|
||||
--newCommunityTheme-widgetColors-sidebarWidgetTitleColor: var(--text) !important;
|
||||
|
||||
|
||||
--newRedditTheme-actionIcon: var(--subtext0) !important;
|
||||
--newRedditTheme-actionIconAlpha20: var(--mist) !important;
|
||||
--newRedditTheme-actionIconAlpha50: var(--mist) !important;
|
||||
@@ -422,10 +423,10 @@
|
||||
--newRedditTheme-field: var(--base) !important;
|
||||
--newRedditTheme-fieldFade: var(--mantle) !important;
|
||||
--newRedditTheme-flair: var(--accent) !important;
|
||||
|
||||
|
||||
/* controls menu, link, and other similar highlights. very important */
|
||||
--newRedditTheme-highlight: var(--base) !important;
|
||||
|
||||
|
||||
--newRedditTheme-inactive: var(--surface0) !important;
|
||||
--newRedditTheme-lightText: var(--text) !important;
|
||||
--newRedditTheme-lightTextAlpha75: var(--subtext1) !important;
|
||||
@@ -433,14 +434,14 @@
|
||||
--newRedditTheme-lineShaded80: var(--surface1Transparent) !important;
|
||||
--newRedditTheme-lineShaded90: var(--surface1Transparent) !important;
|
||||
--newRedditTheme-lineShadedNinety: var(--surface1Transparent) !important;
|
||||
|
||||
|
||||
/* links */
|
||||
--newRedditTheme-linkText: var(--accent) !important;
|
||||
--newRedditTheme-linkTextAlpha80: var(--accent) !important;
|
||||
--newRedditTheme-linkTextShaded80: var(--accent) !important;
|
||||
--newRedditTheme-linkTextTinted80: var(--accent) !important;
|
||||
--newRedditTheme-linkTextWithBody: var(--accent) !important;
|
||||
|
||||
|
||||
/* menus */
|
||||
--newRedditTheme-menu: var(--mantle) !important;
|
||||
--newRedditTheme-menuActiveText: var(--text) !important;
|
||||
@@ -448,7 +449,7 @@
|
||||
--newRedditTheme-menuButtonBackground-focus: var(--base) !important;
|
||||
--newRedditTheme-menuButtonBackground-hover: var(--base) !important;
|
||||
--newRedditTheme-menuInactiveText: var(--text) !important;
|
||||
|
||||
|
||||
--newRedditTheme-metaText: var(--subtext0) !important;
|
||||
--newRedditTheme-metaTextAlpha50: var(--mist) !important;
|
||||
--newRedditTheme-metaTextShaded80: var(--subtext1) !important;
|
||||
@@ -511,7 +512,7 @@
|
||||
--tw-bg-opacity: var(--crust) !important;
|
||||
--vds-video-bg-color: var(--crust) !important;
|
||||
}
|
||||
|
||||
|
||||
/* reddit chat variables */
|
||||
:root {
|
||||
--activity-button-chatFilterColor: var(--surface0) !important;
|
||||
@@ -626,20 +627,20 @@
|
||||
--videoModal-button-background: var(--text) !important;
|
||||
--videoModal-button-color: var(--mantle) !important;
|
||||
}
|
||||
|
||||
|
||||
::placeholder {
|
||||
color: var(--subtext0) !important;
|
||||
}
|
||||
|
||||
|
||||
/* site background */
|
||||
div.ListingLayout-backgroundContainer::before {
|
||||
background: var(--base) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* PROFILE MENU */
|
||||
|
||||
|
||||
|
||||
|
||||
/* karma count */
|
||||
span#email-collection-tooltip-id > :nth-child(2) > :nth-child(2) > span {
|
||||
color: var(--subtext0) !important;
|
||||
@@ -703,7 +704,7 @@
|
||||
--canvas: var(--base) !important;
|
||||
}
|
||||
|
||||
/* Beta Badge */
|
||||
/* Beta Badge */
|
||||
span._2KFJx8Dhh1o1u0Xb8e7NuD {
|
||||
color: var(--accent) !important;
|
||||
}
|
||||
@@ -722,7 +723,7 @@
|
||||
input._1Vnaj3fBuYrmHKEPQD_zWW {
|
||||
background-color: var(--base) !important;
|
||||
}
|
||||
|
||||
|
||||
/* fixes profile posts not being themed */
|
||||
div.scrollerItem > div, div[data-testid=post-container], div[style="background:#1A1A1B"], div._2otRz3OtuWajw1RleFDJ5P {
|
||||
background: var(--mantle) !important;
|
||||
@@ -804,7 +805,7 @@
|
||||
|
||||
/* SITE HEADER*/
|
||||
|
||||
|
||||
|
||||
/* reddit logo */
|
||||
a[aria-label=Home] > svg > g > circle {
|
||||
fill: var(--accent) !important;
|
||||
@@ -817,7 +818,7 @@
|
||||
a[aria-label=Home] > svg:nth-child(2) > g > path {
|
||||
fill: var(--text) !important;
|
||||
}
|
||||
|
||||
|
||||
/* notification icon */
|
||||
button[aria-label="Open notifications inbox"] > div > span {
|
||||
background: var(--accent) !important;
|
||||
@@ -925,7 +926,7 @@
|
||||
color: var(--text) !important;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* post op color and
|
||||
* post date color
|
||||
*/
|
||||
@@ -955,7 +956,7 @@
|
||||
}
|
||||
|
||||
/* post button divider */
|
||||
div[data-click-id=body] > div:nth-child(3) > div:nth-child(3) {
|
||||
div[data-click-id=body] > div:nth-child(3) > div:nth-child(3) {
|
||||
border-color: var(--surface1) !important;
|
||||
}
|
||||
|
||||
@@ -1032,85 +1033,85 @@
|
||||
div[role=radio]:hover, div[role=radio]:focus {
|
||||
background: var(--accent) !important;
|
||||
}
|
||||
|
||||
|
||||
div[role=radio] > svg, div[role=radio] > svg:active {
|
||||
fill: var(--text) !important;
|
||||
}
|
||||
|
||||
|
||||
/* checkboxes */
|
||||
button[role=checkbox] {
|
||||
fill: var(--accent) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* SUBREDDIT RIGHT SIDEBAR (some styles carry over from the homepage right sidebar section) */
|
||||
|
||||
|
||||
|
||||
|
||||
/* header background */
|
||||
._ZhON3a3vplThB8NFwuJn {
|
||||
background: var(--crust) !important;
|
||||
color: var(--text) !important;
|
||||
}
|
||||
|
||||
|
||||
/* subreddit image background */
|
||||
img[alt="Subreddit Icon"][role="presentation"] {
|
||||
background: var(--accent) !important;
|
||||
}
|
||||
|
||||
|
||||
/* default subreddit icon */
|
||||
i.icon-community_fill {
|
||||
color: var(--accent) !important;
|
||||
}
|
||||
|
||||
|
||||
/* online users */
|
||||
div._21RLQh5PvUhC6vOKoFeHUP:before {
|
||||
color: var(--green) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* POST VIEWER */
|
||||
|
||||
|
||||
|
||||
|
||||
/* spoiler tags */
|
||||
._2v4IIjPhKL0PDaWaWtjJ1E {
|
||||
background: var(--surface0) !important;
|
||||
}
|
||||
|
||||
|
||||
/* mod comment tag */
|
||||
span[id^=CommentTopMeta--Mod] {
|
||||
color: var(--green) !important;
|
||||
}
|
||||
|
||||
|
||||
/* op comment tag */
|
||||
span[id^=CommentTopMeta--OP] {
|
||||
color: var(--blue) !important;
|
||||
}
|
||||
|
||||
|
||||
/* post overlay if you have "open in new tab" disabled */
|
||||
div#overlayScrollContainer > div {
|
||||
background: var(--crust) !important;
|
||||
}
|
||||
|
||||
|
||||
/* fixes comment section background not working when "open in new tab is disabled" */
|
||||
div._2M2wOqmeoPVvcSsJ6Po9-V._3287nL7j7epK9JmDC3N1VR {
|
||||
background: var(--mantle) !important;
|
||||
}
|
||||
|
||||
|
||||
/* shade applied to background when clicking on a post with "open in new tab" disabled */
|
||||
div._2DJXORCrmcNpPTSq0LqL6i, div._1DK52RbaamLOWw5UPaht_S {
|
||||
background: var(--mist) !important;
|
||||
}
|
||||
|
||||
|
||||
/* gold award gradient */
|
||||
div.TmlaIdEplCzZ0F1aRGYQh[role=presentation] {
|
||||
background: linear-gradient(188deg, #f9e2af1f 1.7%, #f9e2af00 46%, rgba(0, 0, 0, 0)) !important;
|
||||
}
|
||||
|
||||
|
||||
/* image gallery next/previous buttons */
|
||||
a[title=Next] > i, a[title=Previous] > i {
|
||||
background: var(--surface0) !important;
|
||||
}
|
||||
|
||||
|
||||
/* image gallery image count */
|
||||
div._61i6grM3um1yuw4GrN97P {
|
||||
background: var(--mist) !important;
|
||||
@@ -1121,30 +1122,31 @@
|
||||
input#comment_search-bar {
|
||||
background: var(--base) !important;
|
||||
}
|
||||
|
||||
|
||||
/* tab bar below banner */
|
||||
._1gVVmSnHZpkUgVShsn7-ua {
|
||||
background: var(--mantle) !important;
|
||||
}
|
||||
|
||||
|
||||
/* MULTIREDDITS/CUSTOM FEEDS */
|
||||
|
||||
|
||||
|
||||
|
||||
/* delete custom feed button */
|
||||
.bX6SqXfzfxpv4GQbuIYVZ {
|
||||
color: var(--red) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* TOOLTIPS */
|
||||
|
||||
|
||||
|
||||
|
||||
div.HQ2VJViRjokXpRbJzPvvc {
|
||||
background: var(--mantle) !important;
|
||||
color: var(--text) !important;
|
||||
}
|
||||
|
||||
|
||||
div.HQ2VJViRjokXpRbJzPvvc::after {
|
||||
border-top-color: var(--mantle) !important;
|
||||
}
|
||||
}
|
||||
// vim:ft=less
|
||||
Reference in new issue
Block a user