-
-
Notifications
You must be signed in to change notification settings - Fork 237
feat(retro-achievements): init #1972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Mahonzu
wants to merge
10
commits into
catppuccin:main
Choose a base branch
from
Mahonzu:RetroAchievements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8111510
feat: add RetroAchievements style
Mahonzu 8b20eb8
Fixes
Mahonzu 4f71556
Update userstyles.yml
Mahonzu 483df34
Fixes
Mahonzu 8061b1d
Re-add fields to userstyles.yml
Mahonzu c80418f
feat(retro-achievements): Add support for event pages
Mahonzu 3c9c48d
fix(retro-achievements): Remove "games" tag
Mahonzu da69866
fix(retro-achievements): Fix profile colors
Mahonzu e83172f
fix(retro-achievements): Fix duplicate selector
Mahonzu 7c67014
fix(retro-achievements): Fix typo
Mahonzu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,184 @@ | ||
| /* ==UserStyle== | ||
| @name RetroAchievements Catppuccin | ||
| @namespace github.com/catppuccin/userstyles/styles/retro-achievements | ||
| @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/retro-achievements | ||
| @version 1.0 | ||
Mahonzu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/retro-achievements/catppuccin.user.less | ||
| @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Aretro-achievements | ||
| @description Soothing pastel theme for RetroAchievements | ||
| @author Catppuccin | ||
| @license MIT | ||
| @preprocessor less | ||
| @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"] | ||
| ==/UserStyle== */ | ||
| @import "https://userstyles.catppuccin.com/lib/lib.less"; | ||
|
|
||
| @-moz-document domain("retroachievements.org") { | ||
| [data-theme=""] { | ||
uncenter marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #catppuccin(@darkFlavor); | ||
| } | ||
| [data-theme=""][data-scheme="light"] { | ||
uncenter marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #catppuccin(@lightFlavor); | ||
| } | ||
Mahonzu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #catppuccin(@flavor) { | ||
| #lib.palette(); | ||
| #lib.defaults(); | ||
|
|
||
| --bg-color: @base !important; | ||
| --box-bg-color: @mantle !important; | ||
| --box-shadow-color: @crust !important; | ||
| --embed-color: @crust !important; | ||
| --embed-highlight-color: @base !important; | ||
| --link-hover-color: @text; | ||
| --menu-link-color: @accent; | ||
| --menu-link-hover-color: @text; | ||
| --text-color-danger: @red; | ||
| --text-color-muted: @surface1; | ||
| --divider-color: @surface1; | ||
|
|
||
| --tw-gradient-stops: @accent, @accent; | ||
|
|
||
| --heading-color: @accent; | ||
| --link-color: @accent; | ||
| --text-color: @text; | ||
|
|
||
|
|
||
| .btn-base--default { | ||
| border-color: @surface1; | ||
| --tw-bg-opacity: 1; | ||
| background-color: var(--embed-highlight-color); | ||
| color: @accent; | ||
| } | ||
| .tag > span { | ||
| color: black; | ||
| } | ||
| ul.highlighted-list li:nth-child(2n+1), | ||
| tbody tr:nth-child(2n+1), | ||
| .game-set-item:nth-child(2n+1) { | ||
| background-color: var(--bg-color); | ||
| } | ||
| .bg-neutral-800\/70 { | ||
| background-color: var(--bg-color) | ||
| } | ||
| article, | ||
| aside { | ||
| background: var(--box-bg-color); | ||
| } | ||
| .TrueRatio { | ||
| color: var(--text-color) | ||
| } | ||
| .nav-link > .text-color { | ||
| /* Make hardcore points highlited */ | ||
| color: @accent | ||
| } | ||
| .bg-gradient-to-r { | ||
| background-image: linear-gradient(to right, var(--tw-gradient-stops)); | ||
| } | ||
| /* Gradients */ | ||
| .from-amber-500 { | ||
| --tw-gradient-from: @accent | ||
| } | ||
| .to-\[gold\] { | ||
| --tw-gradient-to: @accent | ||
| } | ||
| /* Hardcoroe progressbar */ | ||
| .cprogress-pbar__root > div[role="progressbar"] > div:first-child { | ||
| --tw-gradient-from: @yellow var(--tw-gradient-from-position); | ||
| --tw-gradient-to: @yellow var(--tw-gradient-to-position); | ||
| } | ||
| /* Softcore progressbar */ | ||
| .bg-neutral-500 { | ||
| background-color: @overlay1; | ||
| } | ||
| /* Progressbar bg */ | ||
| .bg-zinc-950 { | ||
| background: var(--box-shadow-color) | ||
| } | ||
|
|
||
| /* Distribution Graph */ | ||
| [data-chart="chart-«Ral5»"] { | ||
| --color-softcore: @surface0; | ||
| --color-hardcore: @accent; | ||
| } | ||
| /* Online history graph */ | ||
| [data-chart="chart-«R3h5»"] { | ||
| --color-playersOnline: @accent; | ||
| } | ||
| .recharts-area-dot { | ||
| fill:@accent | ||
| } | ||
| /* Platform icon in "most recent master/completed" */ | ||
| .bg-zinc-800 { | ||
| background: var(--bg-color) | ||
| } | ||
| /* Table hover */ | ||
| table.table-highlight tr:not(.do-not-highlight):hover { | ||
| background-color: @surface0; | ||
| } | ||
| /* Active players hover */ | ||
| .hover\:bg-zinc-800:hover { | ||
| --tw-bg-opacity: 1; | ||
| background-color: var(--embed-highlight-color); | ||
| } | ||
|
|
||
| /* Search box */ | ||
| .bg-neutral-800\/40 { | ||
| background: var(--box-bg-color); | ||
| } | ||
| .bg-neutral-800\/40:hover { | ||
| background: var(--box-bg-color); | ||
| } | ||
| /* Search box Ctrl+K text */ | ||
| .bg-neutral-800\/40 > .text-neutral-400 { | ||
| background: var(--embed-highlight-color); | ||
| } | ||
| /* Green text */ | ||
| .text-green-500 { | ||
| color: @green | ||
| } | ||
| [class^='text-[gold]'] { | ||
| color: @yellow; | ||
| } | ||
| .bg-yellow-600 { | ||
| background-color: @yellow; | ||
| } | ||
| /* Download page highlight*/ | ||
| .text-neutral-50 { | ||
| color: @text | ||
| } | ||
| .\!bg-neutral-800 { | ||
| background-color: var(--embed-highlight-color); | ||
| } | ||
| .border-neutral-200 { | ||
| border-color: var(); | ||
Mahonzu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| .border-neutral-700, | ||
| .border-neutral-700\/80 { | ||
| border-color: @surface0; | ||
| } | ||
| /* Cheevo search filters */ | ||
| .bg-neutral-800 { | ||
| background-color: @surface0; | ||
| } | ||
| /* Cgeckbox */ | ||
Mahonzu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| .data-\[state\=checked\]\:bg-neutral-700[data-state="checked"]{ | ||
| background: var(--bg-color) | ||
| } | ||
| /* Right Sidebar in cheevo pages*/ | ||
| .bg-\[rgba\(50\,50\,50\,0\.3\)\], | ||
| .bg-zinc-800\/30 { | ||
| background-color: var(--embed-highlight-color) | ||
| } | ||
| .smalldate { | ||
| color: var(--text-color-muted) | ||
| } | ||
| /* Cheevo page card */ | ||
| .odd\:bg-\[rgba\(50\,50\,50\,0\.4\)\]:nth-child(2n+1) { | ||
| background-color: var(--embed-highlight-color); | ||
| } | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.