From bd88215959dd741cceefa755ec378222e5eafcd9 Mon Sep 17 00:00:00 2001 From: amelia katherine <32780515+night-lake@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:39:37 +0300 Subject: [PATCH] Planet Minecraft (#200) * feat: initial pmc style impl * fix: make display mode button respect accent * fix: better navigation menu text for latte * fix: better nav icon colors * fix: proper navbar icon fix for latte * fix: fix various icon related issues * fix: themed profile pop up * chore: generate catwalk * fix: use oroper file * fix: use fade as well as use proper bg convention * fix: navbar on expanded header * fix: better caption box on latte * fix: better text colors * fix: add missing color variables * fix: some non accented blue buttons * Discard changes to template/catppuccin.user.css --------- Co-authored-by: Isabel <71222764+isabelroses@users.noreply.github.com> --- src/userstyles.yml | 9 + styles/planet-minecraft/assets/catwalk.webp | 3 + styles/planet-minecraft/assets/frappe.webp | 3 + styles/planet-minecraft/assets/latte.webp | 3 + styles/planet-minecraft/assets/macchiato.webp | 3 + styles/planet-minecraft/assets/mocha.webp | 3 + styles/planet-minecraft/catppuccin.user.css | 224 ++++++++++++++++++ 7 files changed, 248 insertions(+) create mode 100644 styles/planet-minecraft/assets/catwalk.webp create mode 100644 styles/planet-minecraft/assets/frappe.webp create mode 100644 styles/planet-minecraft/assets/latte.webp create mode 100644 styles/planet-minecraft/assets/macchiato.webp create mode 100644 styles/planet-minecraft/assets/mocha.webp create mode 100644 styles/planet-minecraft/catppuccin.user.css diff --git a/src/userstyles.yml b/src/userstyles.yml index 17d9735..287f1d3 100644 --- a/src/userstyles.yml +++ b/src/userstyles.yml @@ -81,6 +81,9 @@ collaborators: - &rockquiet name: rockquiet url: https://github.com/rockquiet + - &night-lake + name: Amelia Katherine + url: https://github.com/night-lake - &bartlibert name: Bart Libert url: https://github.com/bartlibert @@ -307,6 +310,12 @@ userstyles: readme: app-link: "https://paste.rs" current-maintainers: [*stonks3141] + planet-minecraft: + name: Planet Minecraft + category: game + readme: + app-link: "https://planetminecraft.com" + current-maintainers: [*night-lake] proton: name: Proton category: productivity diff --git a/styles/planet-minecraft/assets/catwalk.webp b/styles/planet-minecraft/assets/catwalk.webp new file mode 100644 index 0000000..e3a6af5 --- /dev/null +++ b/styles/planet-minecraft/assets/catwalk.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08d8e3590149e8449d943c71cb085d7b54e3324640909b5c2f7b2d17c0eba719 +size 496642 diff --git a/styles/planet-minecraft/assets/frappe.webp b/styles/planet-minecraft/assets/frappe.webp new file mode 100644 index 0000000..7428b6e --- /dev/null +++ b/styles/planet-minecraft/assets/frappe.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:827f0e76da41cbe5c05679fedc0f98b19ababd11e06d20d5f003efa668aa15e6 +size 491158 diff --git a/styles/planet-minecraft/assets/latte.webp b/styles/planet-minecraft/assets/latte.webp new file mode 100644 index 0000000..b0cf6cc --- /dev/null +++ b/styles/planet-minecraft/assets/latte.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adb41732f2f292cbcc692ead19f0d312e788233f2bbbeb713f68cefbce0a7ee3 +size 467768 diff --git a/styles/planet-minecraft/assets/macchiato.webp b/styles/planet-minecraft/assets/macchiato.webp new file mode 100644 index 0000000..95d5fe7 --- /dev/null +++ b/styles/planet-minecraft/assets/macchiato.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3b9d23e1b39192fcda018b18a5cbdaf962272a46f8aa041cee1f46b93a91a5f +size 479220 diff --git a/styles/planet-minecraft/assets/mocha.webp b/styles/planet-minecraft/assets/mocha.webp new file mode 100644 index 0000000..64d1796 --- /dev/null +++ b/styles/planet-minecraft/assets/mocha.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d95260e0ea187260f3efa014948cf041ad800199888afb578ef1c94dcba3564a +size 473936 diff --git a/styles/planet-minecraft/catppuccin.user.css b/styles/planet-minecraft/catppuccin.user.css new file mode 100644 index 0000000..65cae9a --- /dev/null +++ b/styles/planet-minecraft/catppuccin.user.css @@ -0,0 +1,224 @@ +/* ==UserStyle== +@name Planet Minecraft Catppuccin +@namespace github.com/catppuccin/userstyles/styles/planet-minecraft +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/planet-minecraft +@version 0.0.1 +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/planet-minecraft/catppuccin.user.css +@description Soothing pastel theme for Planet Minecraft +@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== */ +@-moz-document domain("planetminecraft.com") { + @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; } + } + + #catppuccin(@lookup, @accent) { + & { + --body-bg: @catppuccin[@@lookup][@crust]; + --header-bg: @catppuccin[@@lookup][@base]; + --content-bg: @catppuccin[@@lookup][@surface0]; + --container-bg: @catppuccin[@@lookup][@base]; + --menu-bg: @catppuccin[@@lookup][@surface0]; + --menu-color: @catppuccin[@@lookup][@subtext1]; + --menu-selected-bg: @catppuccin[@@lookup][@surface1]; + --menu-selected-color: @catppuccin[@@lookup][@@accent]; + --footer-bg: @catppuccin[@@lookup][@mantle]; + --bg-navbar: @catppuccin[@@lookup][@mantle]; + --tab-selected: @catppuccin[@@lookup][@@accent]; + --input-bg: @catppuccin[@@lookup][@surface0]; + --dark-mid-bg: @catppuccin[@@lookup][@base]; + --title-color: @catppuccin[@@lookup][@text]; + --text-color: @catppuccin[@@lookup][@text]; + --text-color-medium: @catppuccin[@@lookup][@subtext0]; + --text-color-light: @catppuccin[@@lookup][@subtext1]; + --border-color: @catppuccin[@@lookup][@base]; + --footer-a-color: @catppuccin[@@lookup][@@accent]; + --nav-hover: @catppuccin[@@lookup][@@accent]; + --stat-color: @catppuccin[@@lookup][@red]; + --a-color: @catppuccin[@@lookup][@@accent]; + --a-hover: @catppuccin[@@lookup][@@accent]; + --a-selected: fade(@catppuccin[@@lookup][@@accent], 80%); + --tab-hover: fade(@catppuccin[@@lookup][@@accent], 80%); + --tab-color: @catppuccin[@@lookup][@subtext0]; + --nav-color: @catppuccin[@@lookup][@text]; + --widget-wrap-bg: @catppuccin[@@lookup][@mantle]; + --shine-start: @catppuccin[@@lookup][@surface2]; + --shine-end: @catppuccin[@@lookup][@surface1]; + --widget-bg: @catppuccin[@@lookup][@surface0]; + --light-bg: @catppuccin[@@lookup][@surface0]; + --medium-bg: @catppuccin[@@lookup][@crust]; + --toolbar-bg: @catppuccin[@@lookup][@surface0]; + --shine-highlight: @catppuccin[@@lookup][@surface0]; + --border-color-light: @catppuccin[@@lookup][@surface0]; + --site-border-color: @catppuccin[@@lookup][@surface0]; + --graphic-bg: @catppuccin[@@lookup][@surface0]; + --notice-bg: @catppuccin[@@lookup][@overlay0]; + --notice-color: @catppuccin[@@lookup][@text]; + --menu-disabled-color: @catppuccin[@@lookup][@crust]; + --control-bg: @catppuccin[@@lookup][@@accent]; + --a-visited: @catppuccin[@@lookup][@@accent]; + --nav-bar-border: none; + } + + .tab_options > ul > li.currentpage, + .tab_options > ul > li.ui-state-active, + .tab_options > ul > li:hover { + border-bottom: 3px solid @catppuccin[@@lookup][@@accent]; + } + + .site_btn_secondary { + color: @catppuccin[@@lookup][@subtext1]; + background: @catppuccin[@@lookup][@surface1]; + &:hover { + color: @catppuccin[@@lookup][@@accent]; + background: fade(@catppuccin[@@lookup][@surface1], 80%); + } + } + + .site_btn, + .site_btn_alt, + #subscribe_full .site_btn, + .content-actions li, + .pagination p a.pagination_page, + .pagination p > span.pagination_page, + .vert_menu > ul > li:only-child > a.current_select, + .vert_menu > ul > li > a.current_select { + color: @catppuccin[@@lookup][@base]; + background: @catppuccin[@@lookup][@@accent]; + &:not(:disabled):not([data-disabled="disabled"]):hover { + background: fade(@catppuccin[@@lookup][@@accent], 80%); + } + } + + .content-actions li { + color: @catppuccin[@@lookup][@base]; + background: @catppuccin[@@lookup][@@accent]; + &:not(:only-child):not(:first-child):hover { + color: @catppuccin[@@lookup][@base]; + background: fade(@catppuccin[@@lookup][@@accent], 80%); + } + } + + #profile-bar #profile-actions .togglable.selected { + background: @catppuccin[@@lookup][@@accent]; + color: @catppuccin[@@lookup][@base]; + } + + .tipso_bubble .bottom { + background: @catppuccin[@@lookup][@surface0] !important; + } + + /* because the icons on the display mode buttons are white, we cant have white base here, so we improvise for latte */ + & when (@lookup = latte) { + #display_modes a { + background: @catppuccin[@@lookup][@text] !important; + box-shadow: none !important; + } + + /* fix nav menu dropdown icons */ + .navbar_icon .dropdown { + --svozk: var(--s) -256px -326px !important; + background: var(--s) -256px -326px !important; + } + } + + & when not (@lookup = latte) { + #display_modes a { + background: @catppuccin[@@lookup][@base] !important; + box-shadow: none !important; + } + } + + #display_modes a.selected, + #display_modes a:hover { + background: @catppuccin[@@lookup][@@accent]; + } + + .navigation-wrap .navmenu a { + text-shadow: none !important; + } + + #header #header-wrap .header_text > ul > li > .material-btn.mem_submit .material-icons, #header #header-wrap .header_text > ul > li > a.mem_submit .material-icons, #mobileRightPanel .sidr-inner > ul > li > .material-btn.mem_submit .material-icons, #mobileRightPanel .sidr-inner > ul > li > a.mem_submit .material-icons { + color: @catppuccin[@@lookup][@green] !important; + } + + #header #header-wrap .header_text > ul > li > .material-btn[data-alert="1"].mem_notifications .material-icons, #header #header-wrap .header_text > ul > li > .material-btn[data-alert="1"].mem_tickets .material-icons, #header #header-wrap .header_text > ul > li > a[data-alert="1"].mem_notifications .material-icons, #header #header-wrap .header_text > ul > li > a[data-alert="1"].mem_tickets .material-icons, #mobileRightPanel .sidr-inner > ul > li > .material-btn[data-alert="1"].mem_notifications .material-icons, #mobileRightPanel .sidr-inner > ul > li > .material-btn[data-alert="1"].mem_tickets .material-icons, #mobileRightPanel .sidr-inner > ul > li > a[data-alert="1"].mem_notifications .material-icons, #mobileRightPanel .sidr-inner > ul > li > a[data-alert="1"].mem_tickets .material-icons { + color: @catppuccin[@@lookup][@yellow]; + } + + .material-icons, .mem_submit > span, .mem_notifications > span{ + color: @catppuccin[@@lookup][@text] !important; + } + + .green { + background: @catppuccin[@@lookup][@green]; + color: @catppuccin[@@lookup][@base]; + + & .material-icons { + color: @catppuccin[@@lookup][@base]; + } + } + + .tipso_content, .member_profile_card_right { + background: @catppuccin[@@lookup][@surface0]; + } + + .tipso_arrow { + border-color: @catppuccin[@@lookup][@surface0]; + } + + #popular-reel .caption { + & when (@lookup = latte) { + background: fade(@catppuccin[@@lookup][@text], 50%) !important; + + .pop-title { + color: @catppuccin[@@lookup][@base] !important; + text-shadow: none; + } + + .caption-subtitle { + color: @catppuccin[@@lookup][@crust] !important; + text-shadow: none; + } + } + + & when not (@lookup = latte) { + background: fade(@catppuccin[@@lookup][@base], 50%) !important; + + .pop-title { + color: @catppuccin[@@lookup][@text] !important; + text-shadow: none; + } + + .caption-subtitle { + color: @catppuccin[@@lookup][@subtext0] !important; + text-shadow: none; + } + } + + } + + #content_notice .site_btn, #content_notice .site_btn_alt { + text-shadow: none; + } + } + + [data-theme="light"] { + #catppuccin(@lightFlavor, @accentColor); + } + + [data-theme="dark"] { + #catppuccin(@darkFlavor, @accentColor); + } +} + +/* /@-moz-document */ \ No newline at end of file