Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Sir Osis of Liver on May 05, 2023, 01:27:38 PM

Title: MacBook color rendering
Post by: Sir Osis of Liver on May 05, 2023, 01:27:38 PM
One of my members has complained that link colors (dark blue) are almost invisible on message background (light blue) in custom theme when viewed on MacBook Air.  Looks fine to me, and to other members using various computers and mobile devices.  Has anyone experienced problems with color rendering on Macs?  Am waiting on screenshot.
Title: Re: MacBook color rendering
Post by: Diego Andrés on May 05, 2023, 03:48:16 PM
Check if it's the :visited causing the issue for the user, it could be a different color.
Title: Re: MacBook color rendering
Post by: Sesquipedalian on May 05, 2023, 05:57:14 PM
I use a MacBook Air every day. I have never experienced any colour issues with the display.

Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 05, 2023, 09:16:39 PM
Still no screenshots, but colors render correctly in Safari, not in Firefox.  Possibly a browser setting.
Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 06, 2023, 10:39:17 PM
Ok, here's how it's supposed to look, and does to most users -

You cannot view this attachment.

Here's how it looks on Mac Firefox -

You cannot view this attachment.

Post title and link in message are both formatted with this -


     .postarea a:link #334486


But in Mac FF link color is much lighter.  Browser settings are almost certainly default.

Title: Re: MacBook color rendering
Post by: Diego Andrés on May 06, 2023, 11:47:19 PM
I"m still on this:

Quote from: Diego Andrés on May 05, 2023, 03:48:16 PMCheck if it's the :visited causing the issue for the user, it could be a different color.

Try adding it to your custom selectors since you said it's a custom theme.
Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 07, 2023, 12:25:24 AM
Crap, missed that post.  This is what I have -


/* Normal, standard links. */
a:link, a:visited {
      color: #84B4E1;

.postarea a:link {
color: #334486;
}


That's light blue.

I've changed to this, will see what happens -


.postarea a:link, a:visited {
color: #334486;
}

Title: Re: MacBook color rendering
Post by: Julius_2000 on May 07, 2023, 11:25:30 AM
Could this be related to different color spaces of those devices?
Title: Re: MacBook color rendering
Post by: Sesquipedalian on May 07, 2023, 12:46:48 PM
It's the same device, just different browsers.
Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 07, 2023, 05:06:48 PM
Looks like Win and Android FF and Mac Safari ignore a:visited and use a:link only for all links, but Mac FF applies a:visited to links.  Waiting for confirmation on change I made.
Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 08, 2023, 01:12:56 PM

.postarea a:link, a:visited {
color: #334486;
}


This is causing a:visited to change on board index in Android FF.  >:(
Title: Re: MacBook color rendering
Post by: Diego Andrés on May 08, 2023, 05:42:24 PM
That one is missing some specificity, as it is it will affect all links (assuming the browser doesn't ignore it, I've seen that issue before too).
Shouldn't it be like this?

.postarea a:link, .postarea a:visited {
color: #334486;
}

Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 08, 2023, 09:41:58 PM
Changed it to this -


.postarea a:link {
color: #334486;
}
.postarea a:visited {
color: #334486;
}


Should be same thing.  Will have a look next time I'm on the tab.
Title: Re: MacBook color rendering
Post by: Sir Osis of Liver on May 10, 2023, 12:59:22 PM
This is apparently fixed for all users.  Seems that some browsers ignore a:visited, some don't.

Thanks, Diego.