![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Hello all - new to DW themes but not new to CSS, and maybe tripping over myself.
I've added some custom CSS on the Customize Your Theme >> Custom CSS page, and it was appearing and looking marvellous. Then - all of a sudden - it stopped displaying my custom tweaks on my journal.
I've tried Ctrl+f5 to refresh my cache, and tried removing the code - saving - replacing it - saving again, and using an external URL. I've also used Inspect on the journal page, to check and confirm that my code isn't appearing at all (it's as if it doesn't exist). I'm feeling low now, as I liked my changes and my basic journal looks dull.
I've got a free account only - is that the issue? Or is this some weird quirk I don't understand....?
Cheers all!
I've added some custom CSS on the Customize Your Theme >> Custom CSS page, and it was appearing and looking marvellous. Then - all of a sudden - it stopped displaying my custom tweaks on my journal.
I've tried Ctrl+f5 to refresh my cache, and tried removing the code - saving - replacing it - saving again, and using an external URL. I've also used Inspect on the journal page, to check and confirm that my code isn't appearing at all (it's as if it doesn't exist). I'm feeling low now, as I liked my changes and my basic journal looks dull.
I've got a free account only - is that the issue? Or is this some weird quirk I don't understand....?
Cheers all!
no subject
Date: 2022-11-03 09:57 pm (UTC)no subject
Date: 2022-11-03 10:38 pm (UTC)I've hosted the css at this link, and also have the same text pasted in the custom css box on the dreamwidth site
https://fencraft.leprd.space/hapbook.css
no subject
Date: 2022-11-03 11:40 pm (UTC)Okay something in the CSS cleaner is not liking the fancy-quotes for some reason? If you remove those lines (or replace them with stuff from the ASCII character set) everything works properly. I'll investigate if something changed somewhere with our recent server upgrades, because that's perfectly valid CSS and I don't know why the cleaner thinks unicode makes it suspect.
no subject
Date: 2022-11-04 10:56 am (UTC)no subject
Date: 2022-11-04 02:47 pm (UTC)You're welcome! Sorry for the weirdness - this same code definitely worked before, yeah?
no subject
Date: 2022-11-04 07:20 pm (UTC)Not sure what your question means:
1) yes, this same code has worked before (on different websites - it's my standard typographical preference set)
2) sort of - this same code was working on dreamwidth fine, up until I added the replacement quote marks, when it stopped.
I have currently got the Custom CSS displaying on my journal (but without the custom q quotes)
no subject
Date: 2022-11-04 11:00 pm (UTC)Ah, I was trying to figure out if you had changed something, or if we had - if the quote replacements were new, I think that's your change rather than something on our end (but we should still be handling it better!)
no subject
Date: 2022-11-08 08:04 pm (UTC)If I make myself a new custom Layout layer, and try putting the content:unicode CSS in there, it has the same outcome - no theme shows at all
no subject
Date: 2022-11-09 02:43 am (UTC)Yeah, custom layers go through the same cleaner that custom CSS does, for security reasons. I suspect it may be limited to either just ASCII, or Latin-1 (which is ASCII plus accents/diacritics common in Western European languages) - some parts of our code base haven't been touched in a looooong time and predate widespread adoption of utf8.
(just looked, and yeah, the CSS cleaner hasn't been touched in... over a decade.......... Time for updates I guess)