In a support thread titled “Custom CSS different on desktop and mobile,” Beluk reports that custom tag colors work on desktop but not on mobile, despite using the same CSS in the common stylesheet. dax initially suggests CSS classes may differ on mobile, and later notes Beluk is using outdated FontAwesome 4 syntax. Beluk confirms the issue persists even when simulating mobile via Chrome DevTools and discovers a conflicting mobile-specific CSS rule overriding custom colors: .topic-list .topic-item-stats .num .fa, ... { color: #919191; }. dax recommends adding !important to override the default styling. Beluk confirms that adding !important resolves the issue on mobile, and thanks dax for the help. The thread concludes with Beluk noting they are on Discourse v2.2.0.beta6 +84 with no other customizations, and the fix was simply appending !important to their color declarations as shown here.
This worked delicious for the desktop version, but not for the mobile version.
(the css script is in the common one)
Is there something extra I need to care for?
First, the second screenshot seems the “desktop view” on mobile to me.
Second, I’m not sure what code are you using but yes, CSS classes on mobile may be different from desktop.
Well, i have read the post but for colors it looks to me there is no change, only for handling SVG Icons, right?
Meanwhile I have tried to analyze what is different on mobile and desktop and found out that on mobile version i have additionally the folowing code lines: