Skip to content
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

Custom css sanitizes variables #851

Open
BANanaD3V opened this issue Nov 21, 2024 · 0 comments
Open

Custom css sanitizes variables #851

BANanaD3V opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BANanaD3V
Copy link

Expected Behavior

Custom css should keep variables inside of :root

Current Behavior

Custom css field removes css variables in root that stops me from theming feishin

Steps to Reproduce

  1. Go to custom css
  2. Paste something containing variables, for example:
:root {
    --secondary-color: #ff7878;
    --success-color: green;
    --warning-color: orange;
    --danger-color: #cc3232;
    --generic-border-color: #3232324d;
    --main-bg: #1e1e2e;
    --main-bg-transparent: 21,18,18;
    --main-fg: #e1e1e1;
    --main-fg-secondary: #969696;
    --window-bar-bg: #101010;
    --window-bar-fg: #fff;
}
  1. Preview removes variables, saving also removes them

Possible Solution

Do not remove variables

Context

Can't theme feishin

Application version

0.11.1

Operating System and version

NixOS 24.11, Electron app

Server and Version

Navidrome 0.53.3

Node Version (if developing locally)

No response

@BANanaD3V BANanaD3V added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant