|
Eyrie Productions, Unlimited
Gryphon
Charter Member
22806 posts |
Oct-26-24, 00:46 AM (EDT) |
 |
"Here's a Weird One"
|
LAST EDITED ON Oct-26-24 AT 02:56 PM (EDT) A user (edit to note: unnamed because I assume, since they reached me out-of-band rather than post about it here, they prefer to remain anonymous, not because I don't believe in giving credit where it's due) recently provided me with a bit of code to add to the headers of the story files that are in styled HTML. It makes the text scaling/width look better on mobile devices with their weird screen resolutions, and it works nicely, except for one weird-ass little thing. On my PC, the standard music cue styling in those files verrry slightly misbehaves, but only in (naturally) the browser I usually use.Here's what it looks like on Chrome (which is what it's supposed to look like): 
... and here's what happens in Firefox. 
I doubt this is even worth debugging, I just think it's funny. Modern software! Push one thing, something else falls off. :) --G. -><- Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod Eyrie Productions, Unlimited http://www.eyrie-productions.com/ zgryphon at that email service Google has Ceterum censeo Carthaginem esse delendam. |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
 |
|
 |
|
 |
|
 |
Gryphon
Charter Member
22806 posts |
Oct-28-24, 09:59 PM (EDT) |
 |
6. "RE: Here's a Weird One"
In response to message #4
|
>if you remove the 'width:0;' it display correctly in firefox Another day, another couple of hundred files to edit. I think I'll save that for sometime when I'm feeling really neurological. :) Thanks, though! I'd certainly never have figured that out. --G. -><- Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod Eyrie Productions, Unlimited http://www.eyrie-productions.com/ zgryphon at that email service Google has Ceterum censeo Carthaginem esse delendam. |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
 |
|
 |
goldenfire
Charter Member
521 posts |
Oct-31-24, 11:30 PM (EDT) |
 |
8. "RE: Here's a Weird One"
In response to message #7
|
for extra added fun, you can do a light and dark mode stylesheet. On one of my webaps, I have (in the head of every page): <link href="foo.css" rel="stylesheet" media="screen and (prefers-color-scheme: light)" /> <link href="foo_dark.css" rel="stylesheet" media="screen and (prefers-color-scheme: dark)" /> <link href="foo.css" rel="alternate stylesheet" title="Light Mode (default)" /> <link href="foo_dark.css" rel="alternate stylesheet" title="Dark Mode" />
those look similar to each other, yes (there are two sets, each referencing foo.css and foo_dark.css) -- the second set ("alternate stylesheet") give the use the ability to select a specific one from view > page style. The first set, though, are magic...they detect the browser's dark or light mode (via the 'media' keyword) and automagically choose the correct stylesheet. It took me the better part of an afternoon and significant googling to work THAT out...so here, saved you search time, if you're interested :)
|  | ==Goldenfire And who exactly is this diabolical 'they' to which we keep referring? If there's some grand conspiracy going on, the right hand doesn't appear to know what the left is doing. --Raziel (Soul Reaver II) |
| |
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
version 3.3 © 2001
Eyrie Productions,
Unlimited
Benjamin
D. Hutchins
E P U (Colour)
|