style: format code with prettier

This commit is contained in:
nekowinston authored and GitHub Action committed 2023-07-25 00:46:23 +00:00
1 parent 2e6fbb10cd
commit 2baba93a9d
33 files changed
+5856 -5396

No files matched your search

+92 -40
View File
@@ -16,7 +16,6 @@
@var checkbox oledOn "Enable black bars" 0
==/UserStyle== */
@-moz-document regexp('https?:\\/\\/(?!gaming\\.)(?!consent\\.)(?!vr\\.)(?!music\\.)(?!tv\\.)(?!artists\\.)(?!studio\\.).*youtube(?!kids\\.).*\\.com\\/(?!premium|howyoutubeworks).*$') {
/* youtube.com */
:root[dark] {
#catppuccin(@darkFlavor, @accentColor);
@@ -83,7 +82,6 @@
@crust: @catppuccin[@@lookup][@crust];
@accent-Color: @catppuccin[@@lookup][@@accent];
/* apply everywhere */
&,
[dark],
@@ -181,12 +179,27 @@
--yt-spec-static-grey: @subtext0 !important;
--yt-spec-static-overlay-background-solid: @crust !important;
--yt-spec-static-overlay-background-heavy: @surface0 !important;
--yt-spec-static-overlay-background-medium: fadeout(@crust, 0.6) !important;
--yt-spec-static-overlay-background-medium-light: fadeout(@crust, 0.3) !important;
--yt-spec-static-overlay-background-light: fadeout(@crust, 0.1) !important;
--yt-spec-static-overlay-background-medium: fadeout(
@crust,
0.6
) !important;
--yt-spec-static-overlay-background-medium-light: fadeout(
@crust,
0.3
) !important;
--yt-spec-static-overlay-background-light: fadeout(
@crust,
0.1
) !important;
--yt-spec-static-overlay-text-primary: @text !important;
--yt-spec-static-overlay-text-secondary: fadeout(@subtext0, 0.7) !important;
--yt-spec-static-overlay-text-disabled: fadeout(@subtext0, 0.3) !important;
--yt-spec-static-overlay-text-secondary: fadeout(
@subtext0,
0.7
) !important;
--yt-spec-static-overlay-text-disabled: fadeout(
@subtext0,
0.3
) !important;
--yt-spec-static-overlay-call-to-action: @accent-Color !important;
--yt-spec-static-overlay-icon-active-other: @text !important;
--yt-spec-static-overlay-icon-inactive: @surface1 !important;
@@ -214,7 +227,10 @@
--yt-spec-call-to-action-fadeoutd: fadeout(@sapphire, 0.3) !important;
--yt-spec-call-to-action-hover: @accent-Color !importantr;
--yt-spec-brand-button-background-hover: @accent-Color !important;
--yt-spec-brand-link-text-fadeoutd: fadeout(@accent-Color, 0.3) !important;
--yt-spec-brand-link-text-fadeoutd: fadeout(
@accent-Color,
0.3
) !important;
--yt-spec-filled-button-focus-outline: @surface0 !important;
--yt-spec-static-overlay-button-hover: @surface1 !important;
--yt-spec-mono-filled-hover: @surface1 !important;
@@ -251,7 +267,10 @@
--yt-live-chat-action-panel-background-color: @base !important;
--yt-live-chat-action-panel-background-color-transparent: @base !important;
--yt-live-chat-secondary-background-color: @surface1;
--yt-live-chat-banner-gradient-scrim: linear-gradient(@mantle, transparent) !important;
--yt-live-chat-banner-gradient-scrim: linear-gradient(
@mantle,
transparent
) !important;
--yt-live-chat-toast-background-color: @surface2 !important;
--yt-live-chat-mode-change-background-color: @base !important;
--yt-live-chat-secondary-text-color: @subtext0 !important;
@@ -276,7 +295,10 @@
--yt-live-chat-overlay-color: fadeout(@mantle, 0.5);
--yt-live-chat-dialog-background-color: @base !important;
--yt-emoji-picker-variant-selector-bg-color: @base !important;
--yt-live-chat-moderation-mode-hover-background-color: fadeout(@mantle, 0.3) !important;
--yt-live-chat-moderation-mode-hover-background-color: fadeout(
@mantle,
0.3
) !important;
--yt-grey: @subtext0 !important;
--yt-live-chat-text-input-field-suggestion-background-color: @subtext0 !important;
--yt-live-chat-text-input-field-suggestion-background-color-hover: @subtext1 !important;
@@ -286,17 +308,40 @@
--yt-live-chat-slider-active-color: @accent-Color !important;
--yt-live-chat-slider-container-color: @surface0 !important;
--yt-live-chat-slider-markers-color: @text !important;
--yt-live-chat-banner-gradient-scrim: linear-gradient( @mantle, transparent) !important;
--yt-live-chat-action-panel-gradient-scrim: linear-gradient( to top, @mantle, transparent) !important;
--yt-live-chat-automod-button-background-color-hover: fadeout(@crust, 0.5) !important;
--yt-live-chat-automod-button-explanation-color: fadeout(@accent-Color, 0.7) !important;
--yt-live-chat-banner-gradient-scrim: linear-gradient(
@mantle,
transparent
) !important;
--yt-live-chat-action-panel-gradient-scrim: linear-gradient(
to top,
@mantle,
transparent
) !important;
--yt-live-chat-automod-button-background-color-hover: fadeout(
@crust,
0.5
) !important;
--yt-live-chat-automod-button-explanation-color: fadeout(
@accent-Color,
0.7
) !important;
--yt-live-chat-shimmer-background-color: fadeout(@crust, 0.4) !important;
--yt-live-chat-shimmer-linear-gradient: linear-gradient( 0deg, fadeout(@text, 0.1) 40%, fadeout(@base, 0.3) 50%, fadeout(@text, 0.1) 60%) !important;
--yt-live-chat-shimmer-linear-gradient: linear-gradient(
0deg,
fadeout(@text, 0.1) 40%,
fadeout(@base, 0.3) 50%,
fadeout(@text, 0.1) 60%
) !important;
--yt-live-chat-vem-background-color: @mantle !important;
--yt-live-chat-product-picker-icon-color: fadeout(@text, 0.5) !important;
--yt-live-chat-product-picker-hover-color: @overlay0 !important;
--yt-live-chat-product-picker-disabled-icon-color: fadeout(@text, 0.3) !important;
--yt-live-chat-action-panel-background-color-transparent: (null) !important;
--yt-live-chat-product-picker-disabled-icon-color: fadeout(
@text,
0.3
) !important;
--yt-live-chat-action-panel-background-color-transparent: (
null
) !important;
/* Tooltip */
--paper-tooltip-background: @overlay0 !important;
@@ -366,7 +411,8 @@
--yt-active-playlist-panel-background-color: @surface0 !important;
}
ytd-playlist-panel-renderer[collapsible][collapsed][use-color-palette] .header.ytd-playlist-panel-renderer {
ytd-playlist-panel-renderer[collapsible][collapsed][use-color-palette]
.header.ytd-playlist-panel-renderer {
--iron-icon-fill-color: @text !important;
background-color: @base !important;
}
@@ -387,7 +433,7 @@
--yt-button-default-background-color: @base !important;
--yt-button-dark-text-color: @base !important;
--yt-button-dark-background-color: @accent-Color !important;
--yt-button-payment-background-color: @accent-Color ! important;
--yt-button-payment-background-color: @accent-Color !important;
}
yt-icon.ytd-pinned-comment-badge-renderer * {
@@ -405,7 +451,8 @@
}
}
yt-notification-action-renderer[darker-dark-theme] tp-yt-paper-toast.yt-notification-action-renderer {
yt-notification-action-renderer[darker-dark-theme]
tp-yt-paper-toast.yt-notification-action-renderer {
background: @overlay0 !important;
}
@@ -432,13 +479,13 @@
/* menu items */
/* checkbox subitem */
.ytp-menuitem[aria-checked=true] .ytp-menuitem-toggle-checkbox {
.ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
background: @accent-Color !important;
&::after {
background: @overlay1 !important;
}
}
.ytp-menuitem:not([aria-disabled=true]):hover {
.ytp-menuitem:not([aria-disabled="true"]):hover {
background: @surface1 !important;
}
.ytp-settings-button.ytp-hd-quality-badge,
@@ -531,7 +578,12 @@
}
/* custom likes + anims */
yt-animated-icon[animated-icon-type="LIKE"] > ytd-lottie-player > lottie-component > svg > g:nth-child(2) > g:nth-child(2) {
yt-animated-icon[animated-icon-type="LIKE"]
> ytd-lottie-player
> lottie-component
> svg
> g:nth-child(2)
> g:nth-child(2) {
/* not liked */
> g:nth-child(2),
> g:nth-child(4) {
@@ -546,7 +598,7 @@
fill: @accent-Color !important;
}
> path:nth-child(2) {
stroke: @accent-Color !important
stroke: @accent-Color !important;
}
}
}
@@ -597,7 +649,7 @@
/*Player tooltip background*/
.ytp-tooltip-text {
background: @surface0 !important
background: @surface0 !important;
}
.iv-card:hover .iv-card-primary-link,
@@ -642,7 +694,8 @@
}
/* notification idicator */
.yt-spec-icon-badge-shape--type-notification .yt-spec-icon-badge-shape__badge {
.yt-spec-icon-badge-shape--type-notification
.yt-spec-icon-badge-shape__badge {
background-color: @accent-Color !important;
color: @crust !important;
}
@@ -667,8 +720,8 @@
}
/* badges e.g. popular */
yt-chip-cloud-chip-renderer[chip-style=STYLE_DEFAULT][selected],
yt-chip-cloud-chip-renderer[chip-style=STYLE_HOME_FILTER][selected] {
yt-chip-cloud-chip-renderer[chip-style="STYLE_DEFAULT"][selected],
yt-chip-cloud-chip-renderer[chip-style="STYLE_HOME_FILTER"][selected] {
background: @surface0 !important;
border: 1px solid @accent-Color !important;
color: @text !important;
@@ -751,8 +804,8 @@
}
}
}
@-moz-document url-prefix('https://www.youtube.com/redirect') {
@-moz-document url-prefix('https://www.youtube.com/redirect')
{
/* youtube.com-redirect */
:root[dark] {
#catppuccin(@darkFlavor, @accentColor);
@@ -762,7 +815,6 @@
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@@ -810,7 +862,8 @@
}
/*Community Cross-posting*/
ytd-shared-post-renderer[uses-compact-lockup] #repost-context.ytd-shared-post-renderer {
ytd-shared-post-renderer[uses-compact-lockup]
#repost-context.ytd-shared-post-renderer {
background-color: var(--second-background);
}
#divider-line-container.ytd-shared-post-renderer {
@@ -851,8 +904,8 @@
}
}
@-moz-document url-prefix('https://studio.youtube.com') {
@-moz-document url-prefix('https://studio.youtube.com')
{
/* studio.youtube.com */
:root[dark] {
#catppuccin(@darkFlavor, @accentColor);
@@ -862,7 +915,6 @@
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@@ -1064,7 +1116,7 @@
@base: #eff1f5;
@mantle: #e6e9ef;
@crust: #dce0e8;
}
};
@frappe: {
@rosewater: #f2d5cf;
@flamingo: #eebebe;
@@ -1092,7 +1144,7 @@
@base: #303446;
@mantle: #292c3c;
@crust: #232634;
}
};
@macchiato: {
@rosewater: #f4dbd6;
@flamingo: #f0c6c6;
@@ -1120,7 +1172,7 @@
@base: #24273a;
@mantle: #1e2030;
@crust: #181926;
}
};
@mocha: {
@rosewater: #f5e0dc;
@flamingo: #f2cdcd;
@@ -1148,5 +1200,5 @@
@base: #1e1e2e;
@mantle: #181825;
@crust: #11111b;
}
}
};
};