refactor(twitch): clean up unused styles, organize (#1038)

This commit is contained in:
uncenter authored and GitHub committed 2024-07-01 08:23:51 -04:00
1 parent 2a41e350f3
commit 5b067921f8
1 file changed
+232 -281
+232 -281
View File
@@ -2,7 +2,7 @@
@name Twitch Catppuccin
@namespace github.com/catppuccin/userstyles/styles/twitch
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/twitch
@version 1.2.4
@version 1.3.0
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/twitch/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Atwitch
@description Soothing pastel theme for Twitch
@@ -69,29 +69,220 @@
background-color: @base;
}
/* Stream title */
&,
.tw-dialog-layer {
--color-background-input-focus: @crust;
--color-background-interactable-hover: @surface0;
--color-background-interactable-alpha-hover: @surface0;
--color-background-button-text-default: null !important;
--color-background-pill-subtle: @subtext0;
--color-text-input-placeholder: @text;
--color-border-input: @base;
--color-text-button-primary: @crust;
--color-text-overlay: @base;
--color-text-base: @subtext1;
--color-text-alt: @text;
--color-text-alt-2: @text;
--color-text-interactable-selected: @crust;
--color-background-alt-2: @crust;
--color-text-tag: @text;
--color-background-button-secondary-default: @crust;
--color-background-button-secondary-hover: @surface0;
--color-background-tag-default: @mantle;
--color-background-tag-hover: @crust;
--color-background-float: @mantle;
--color-background-body: @base;
--color-background-base: @mantle;
--color-background-alt: @mantle;
--color-background-input: @crust;
--color-brand-muted-cupcake: @pink;
--color-brand-muted-mint: @green;
--color-brand-muted-sky: @sky;
--color-brand-muted-blush: @peach;
--color-brand-muted-canary: @peach;
--color-brand-muted-lavender: @lavender;
--color-brand-muted-mustard: @yellow;
--color-brand-muted-emerald: @green;
--color-brand-muted-coral: @peach;
--color-brand-muted-ocean: @blue;
--color-brand-accent-grape: @mauve;
--color-brand-accent-dragonfruit: @flamingo;
--color-brand-accent-carrot: @peach;
--color-brand-accent-sun: @peach;
--color-brand-accent-lime: @green;
--color-brand-accent-turquoise: @sky;
--color-brand-accent-eggplant: @mauve;
--color-brand-accent-wine: @flamingo;
--color-brand-accent-slime: @green;
--color-brand-accent-seafoam: @green;
--color-brand-accent-cherry: @red;
--color-brand-accent-marine: @blue;
--color-brand-accent-seaweed: @teal;
--color-brand-accent-fiji: @green;
--color-brand-accent-blueberry: @blue;
--color-brand-accent-arctic: @sky;
--color-brand-accent-highlighter: @yellow;
--color-brand-accent-flamingo: @flamingo;
--color-brand-accent-ruby: @red;
--color-brand-accent-punch: @flamingo;
--color-brand-accent-creamsicle: @yellow;
--color-red: @maroon;
--color-red-darker: @red;
--color-orange: @peach;
--color-yellow: @yellow;
--color-green: @green;
--color-green-darker: @green;
--color-blue: @blue;
--color-prime-blue: @blue;
--color-magenta: @flamingo;
--color-error: @red;
--color-warn: @yellow;
--color-success: @green;
--color-white: @text;
--color-black: @crust;
--color-info: @blue;
--color-twitch-purple: @accent-color;
--color-twitch-purple-4: @accent-color;
--color-twitch-purple-5: @accent-color;
--color-twitch-purple-6: @accent-color;
--color-twitch-purple-7: @accent-color;
--color-twitch-purple-8: @accent-color;
--color-twitch-purple-9: @accent-color;
--color-twitch-purple-10: @accent-color;
--color-twitch-purple-11: @accent-color;
--color-twitch-purple-12: @accent-color;
--color-orange-7: @yellow;
--color-orange-8: @yellow;
--color-orange-9: @yellow;
--color-orange-10: @yellow;
--color-orange-11: @yellow;
--color-orange-12: @yellow;
--color-orange-13: @yellow;
--color-yellow-6: @peach;
--color-yellow-7: @peach;
--color-yellow-8: @peach;
--color-yellow-9: @peach;
--color-yellow-10: @peach;
--color-yellow-11: @peach;
--color-yellow-12: @peach;
--color-yellow-13: @peach;
--color-yellow-14: @peach;
--color-yellow-15: @peach;
--color-green-5: @green;
--color-green-6: @green;
--color-green-7: @green;
--color-green-8: @green;
--color-green-9: @green;
--color-green-10: @green;
--color-green-11: @green;
--color-green-12: @green;
--color-green-13: @green;
--color-green-14: @green;
--color-green-15: @teal;
--color-cyan-9: @sapphire;
--color-cyan-10: @sapphire;
--color-cyan-11: @sapphire;
--color-cyan-12: @sapphire;
--color-cyan-13: @sapphire;
--color-cyan-14: @sapphire;
--color-cyan-15: @sky;
--color-blue-4: @blue;
--color-blue-5: @blue;
--color-blue-6: @blue;
--color-blue-7: @blue;
--color-blue-8: @blue;
--color-blue-9: @blue;
--color-blue-10: @sky;
--color-blue-11: @sky;
--color-magenta-5: @flamingo;
--color-magenta-6: @flamingo;
--color-magenta-7: @flamingo;
--color-magenta-8: @flamingo;
--color-magenta-9: @flamingo;
--color-magenta-10: @flamingo;
--color-magenta-11: @pink;
--color-magenta-12: @pink;
--color-red-4: @accent-color;
--color-red-5: @accent-color;
--color-red-6: @accent-color;
--color-red-7: @accent-color;
--color-red-8: @accent-color;
--color-red-9: @accent-color;
--color-red-10: @accent-color;
--color-red-11: @peach;
--color-red-12: @peach;
--color-twitter: @blue;
--color-facebook: @blue;
--color-reddit: @peach;
--color-snapchat: @yellow;
--color-instagram: @blue;
--color-youtube: @red;
--color-paypal: @blue;
--color-paypal-blue: @blue;
--color-paypal-yellow: @yellow;
--color-venmo: @blue;
--color-vk: @blue;
--color-amazon: @yellow;
--color-background-button-text-hover: @surface0;
--color-text-accessible-red: @accent-color;
--color-border-input-checkbox: @subtext0;
--color-border-input-checkbox-hover: @text;
--color-text-label: @text;
--color-border-input-hover: @surface0;
--color-opac-b-14: @crust;
--color-text-button-overlay: @text !important;
--color-background-range-overlay-fill: @text !important;
--color-text-button-overlay-hover: @text !important;
--color-text-tooltip: @base !important;
--color-background-tooltip: @text !important;
--color-hinted-grey-2: @surface0;
--color-background-overlay-alt: @mantle;
--color-background-button-overlay-primary-hover: @subtext1;
--color-background-button-overlay-text-hover: @crust;
--color-border-overlay: @surface0;
--color-background-button-disabled: @surface0;
--color-text-button-disabled: @subtext0;
}
&,
[class*="ScTokenOverrideCSSVars"] {
--color-text-link: @blue;
--color-text-link-active: @sky;
--color-text-link-focus: @sky;
--color-text-link-hover: @sky;
--color-text-link-visited: @lavender;
}
&,
[class*="ScAccentRegionCssVars"] {
--color-accent: @accent-color;
}
/* Hardcoded accent color */
[style="color: rgb(160, 84, 255);"] {
color: @accent-color !important;
}
/* Full screened video player title & description */
p[data-test-selector="stream-info-card-component__subtitle"],
p[data-test-selector="stream-info-card-component__description"] {
color: @text !important;
}
a[data-a-target="player-info-game-name"] {
color: @accent-color;
}
/* `Pinned message` popup */
div.pinned-chat__pinned-by svg {
color: @text;
}
p.pinned-chat__message span {
color: @text !important;
}
p.pinned-chat__message {
span {
color: @text !important;
}
p.pinned-chat__message a {
color: @accent-color;
a {
color: @accent-color;
}
}
/* `Intended for certain audiences` label */
@@ -159,22 +350,6 @@
color: @text;
}
/* Poll popup */
div[data-test-selector="header-content"]
p:not(
[data-test-selector="community-prediction-highlight-header__title"],
[data-test-selector="header"]
) {
color: @text !important;
}
/* `Report Poll` button */
button.gaoCTJ {
color: @text;
}
/* ??? */
div.happening-now-disable-prompt p {
@@ -183,12 +358,14 @@
/* Gifting sub popup */
div.mystery-gift-chat-banner span {
color: @accent-color;
}
div.mystery-gift-chat-banner {
span {
color: @accent-color;
}
div.mystery-gift-chat-banner p {
color: @text;
p {
color: @text;
}
}
/* VOD metadata */
@@ -339,6 +516,9 @@
.carousel-metadata--fadeout {
background: @crust;
}
.chat-line__timestamp {
color: @subtext0;
}
.chat-line__message-body--highlighted {
background-color: @accent-color;
color: @crust;
@@ -347,54 +527,9 @@
.chat-scrollable-area__message-container {
background-color: @mantle;
}
.jmUA-dj {
background-color: @mantle;
}
.bBpiku {
fill: @mantle;
}
.ivjxmt {
color: @crust;
}
.gzYMLv {
color: @text;
}
.gZxBHd {
color: @subtext0;
&:hover {
color: @accent-color;
}
}
.eBmJxH {
color: @text;
}
.ffZeRf {
color: #fff !important;
}
.igzOaC {
color: @text;
}
.bEHknf {
color: #fff;
}
.side-nav-card__link:hover {
background: @surface0 !important;
}
.dDyYOA {
color: #fff !important;
}
.reward-icon__cost {
color: #fff !important;
}
.kLILeB {
color: #fff !important;
}
.navigation-link.active {
color: @accent-color;
}
.navigation-link__active-indicator {
background-color: @accent-color !important;
}
.footer {
background: @crust;
}
@@ -413,10 +548,15 @@
}
.navigation-link {
color: @text;
&:hover {
&:hover,
.active {
color: @accent-color;
}
}
.navigation-link__active-indicator {
background-color: @accent-color !important;
}
.chat-room {
background: @mantle;
}
@@ -429,18 +569,6 @@
color: @text;
}
.cOJBQO {
color: @text;
}
.dBlttx {
color: @subtext1;
}
.fiCviy {
color: @text;
}
.server-message-alert {
border-color: @red !important;
border-left-color: @red !important;
@@ -450,202 +578,20 @@
color: @red !important;
}
&,
.side-nav-card__link:hover {
--color-background-input-focus: @crust;
--color-background-interactable-hover: @surface0;
--color-background-button-text-default: null !important;
--color-text-input-placeholder: @text;
--color-border-input: @base;
--color-text-button-primary: @crust;
--color-text-overlay: @base;
--color-text-base: @subtext1;
--color-text-alt: @text;
--color-text-alt-2: @text;
--color-text-interactable-selected: @crust;
--color-background-alt-2: @crust;
--color-text-tag: @text;
--color-background-button-secondary-default: @crust;
--color-background-tag-default: @mantle;
--color-background-tag-hover: @crust;
--color-background-float: @mantle;
--color-background-body: @base;
--color-background-base: @mantle;
--color-background-alt: @mantle;
--color-background-input: @crust;
--color-brand-muted-cupcake: @pink;
--color-brand-muted-mint: @green;
--color-brand-muted-sky: @sky;
--color-brand-muted-blush: @peach;
--color-brand-muted-canary: @peach;
--color-brand-muted-lavender: @lavender;
--color-brand-muted-mustard: @yellow;
--color-brand-muted-emerald: @green;
--color-brand-muted-coral: @peach;
--color-brand-muted-ocean: @blue;
--color-brand-accent-grape: @mauve;
--color-brand-accent-dragonfruit: @flamingo;
--color-brand-accent-carrot: @peach;
--color-brand-accent-sun: @peach;
--color-brand-accent-lime: @green;
--color-brand-accent-turquoise: @sky;
--color-brand-accent-eggplant: @mauve;
--color-brand-accent-wine: @flamingo;
--color-brand-accent-slime: @green;
--color-brand-accent-seafoam: @green;
--color-brand-accent-cherry: @red;
--color-brand-accent-marine: @blue;
--color-brand-accent-seaweed: @teal;
--color-brand-accent-fiji: @green;
--color-brand-accent-blueberry: @blue;
--color-brand-accent-arctic: @sky;
--color-brand-accent-highlighter: @yellow;
--color-brand-accent-flamingo: @flamingo;
--color-brand-accent-ruby: @red;
--color-brand-accent-punch: @flamingo;
--color-brand-accent-creamsicle: @yellow;
--color-red: @maroon;
--color-red-darker: @red;
--color-orange: @peach;
--color-yellow: @yellow;
--color-green: @green;
--color-green-darker: @green;
--color-blue: @blue;
--color-prime-blue: @blue;
--color-magenta: @flamingo;
--color-error: @red;
--color-warn: @yellow;
--color-success: @green;
--color-white: @text;
--color-black: @crust;
--color-info: @blue;
--color-twitch-purple: @accent-color;
--color-twitch-purple-4: @accent-color;
--color-twitch-purple-5: @accent-color;
--color-twitch-purple-6: @accent-color;
--color-twitch-purple-7: @accent-color;
--color-twitch-purple-8: @accent-color;
--color-twitch-purple-9: @accent-color;
--color-twitch-purple-10: @accent-color;
--color-twitch-purple-11: @accent-color;
--color-twitch-purple-12: @accent-color;
--color-orange-7: @yellow;
--color-orange-8: @yellow;
--color-orange-9: @yellow;
--color-orange-10: @yellow;
--color-orange-11: @yellow;
--color-orange-12: @yellow;
--color-orange-13: @yellow;
--color-yellow-6: @peach;
--color-yellow-7: @peach;
--color-yellow-8: @peach;
--color-yellow-9: @peach;
--color-yellow-10: @peach;
--color-yellow-11: @peach;
--color-yellow-12: @peach;
--color-yellow-13: @peach;
--color-yellow-14: @peach;
--color-yellow-15: @peach;
--color-green-5: @green;
--color-green-6: @green;
--color-green-7: @green;
--color-green-8: @green;
--color-green-9: @green;
--color-green-10: @green;
--color-green-11: @green;
--color-green-12: @green;
--color-green-13: @green;
--color-green-14: @green;
--color-green-15: @teal;
--color-cyan-9: @sapphire;
--color-cyan-10: @sapphire;
--color-cyan-11: @sapphire;
--color-cyan-12: @sapphire;
--color-cyan-13: @sapphire;
--color-cyan-14: @sapphire;
--color-cyan-15: @sky;
--color-blue-4: @blue;
--color-blue-5: @blue;
--color-blue-6: @blue;
--color-blue-7: @blue;
--color-blue-8: @blue;
--color-blue-9: @blue;
--color-blue-10: @sky;
--color-blue-11: @sky;
--color-magenta-5: @flamingo;
--color-magenta-6: @flamingo;
--color-magenta-7: @flamingo;
--color-magenta-8: @flamingo;
--color-magenta-9: @flamingo;
--color-magenta-10: @flamingo;
--color-magenta-11: @pink;
--color-magenta-12: @pink;
--color-red-4: @accent-color;
--color-red-5: @accent-color;
--color-red-6: @accent-color;
--color-red-7: @accent-color;
--color-red-8: @accent-color;
--color-red-9: @accent-color;
--color-red-10: @accent-color;
--color-red-11: @peach;
--color-red-12: @peach;
--color-twitter: @blue;
--color-facebook: @blue;
--color-reddit: @peach;
--color-snapchat: @yellow;
--color-instagram: @blue;
--color-youtube: @red;
--color-paypal: @blue;
--color-paypal-blue: @blue;
--color-paypal-yellow: @yellow;
--color-venmo: @blue;
--color-vk: @blue;
--color-amazon: @yellow; //background: @surface0;
--color-background-button-text-hover: @surface0;
--color-text-accessible-red: @accent-color;
--color-border-input-checkbox: @subtext0;
--color-border-input-checkbox-hover: @text;
--color-text-label: @text;
--color-border-input-hover: @surface0;
--color-opac-b-14: @crust;
--color-text-button-overlay: @text !important;
--color-background-range-overlay-fill: @text !important;
--color-text-button-overlay-hover: @text !important;
--color-text-tooltip: @base !important;
--color-background-tooltip: @text !important;
--color-hinted-grey-2: @surface0;
--color-background-overlay-alt: @mantle;
--color-background-button-overlay-primary-hover: @subtext1;
--color-background-button-overlay-text-hover: @crust;
--color-border-overlay: @surface0;
--color-background-button-disabled: @surface0;
--color-text-button-disabled: @subtext0;
}
&,
[class*="ScTokenOverrideCSSVars"] {
--color-text-link: @blue;
--color-text-link-active: @sky;
--color-text-link-focus: @sky;
--color-text-link-hover: @sky;
--color-text-link-visited: @lavender;
}
&,
[class*="ScAccentRegionCssVars"] {
--color-accent: @accent-color;
}
/* Hardcoded accent color */
[style="color: rgb(160, 84, 255);"] {
color: @accent-color !important;
}
/* Predictions */
.fixed-prediction-button {
color: @text !important;
color: @mantle !important;
.channel-points-icon svg {
color: @mantle !important;
}
&.fixed-prediction-button--disabled {
color: @text !important;
.channel-points-icon svg {
color: @text !important;
}
}
}
[style*="rgb(255, 255, 255)"] {
@@ -696,6 +642,11 @@
.tw-animated-glitch-logo {
--color-white: @crust;
}
/* Modals */
.modal__content {
color: @text;
}
}
}