Skip to content

[BUG] Custom CSS styles not activating until 'type="text/css"' is added to corresponding link in HTML head #560

@shimizurei

Description

@shimizurei

Environment

Self-Hosted (Docker)

Version

2.0.4

Describe the problem

I had finally gotten the CSS to not throw a 404, but for the life of me I could not get my styles to show up.

UNTIL I changed one thing (using devtools):

How the custom CSS loads in: <link rel="stylesheet" href="/assets/dashycsstweaks.css">

What I needed to do to activate my CSS: <link rel="stylesheet" type="text/css" href="/assets/dashycsstweaks.css">

I was previously upping the CSS specificity to disgusting levels to no avail:

div#dashy div.home[style*="background: url("/assets/wetpavement_bg.jpg") 0% 0% / cover"] {
  background-attachment: fixed !important;
}

Would it be possible to add the type="text/css" part to the generated link when the app is built?

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions