-
Notifications
You must be signed in to change notification settings - Fork 23
Platform icons missing on Firefox build #114
Comments
Looks like the (relative) URL for the background image is not working. Without Enhanced Steam the css defines: background-image: url( '/public/images/v6/icon_platform_linux.png' ); With Enhanced Steam: background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_platform_linux.png' ); When I change in firefox webdev tools the css to match the original css, (removing //steamstore-a.akamaihd.net), the image still cannot be loaded (moz-extension://d4e12e0c-15b1-40b3-9b23-8de873b0e284/public/images/v6/icon_platform_linux.png could not be found). background-image: url( 'http://steamstore-a.akamaihd.net/public/images/v6/icon_platform_linux.png' ); Don't know how to handle this properly in the css of enhanced steam, so it shows a relative path. But with an absolute URL it works. With Chrome it seems that the css definitions for |
The problem is We could get the icons back on app pages by making these CSS rules only apply on wishlist pages. This can be done by inserting span.es_platform > span.platform_img.win {
background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_platform_win.png' );
} AFAICS, getting the icons back on wishlist pages requires browser-dependent URLs: |
Workaround Here is a somewhat ugly fix for this problem. It uses a file named
@-moz-document domain(store.steampowered.com), domain(steamcommunity.com)
{
span.platform_img.steamplay {
background-image: url( 'https://steamstore-a.akamaihd.net/public/images/v6/icon_steamplay.png' ) !important;
}
span.platform_img.win {
background-image: url( 'https://steamstore-a.akamaihd.net/public/images/v6/icon_platform_win.png' ) !important;
}
span.platform_img.mac {
background-image: url( 'https://steamstore-a.akamaihd.net/public/images/v6/icon_platform_mac.png' ) !important;
}
span.platform_img.linux {
background-image: url( 'https://steamstore-a.akamaihd.net/public/images/v6/icon_platform_linux.png' ) !important;
}
} |
I'm not sure if jshackles is monitoring this repo or its issues at all. As the readme.md states:
So maybe it's better to continue the discussion on jshackles/Enhanced_Steam#1431 |
Thanks, Corben78. I'm new to github as well as Enhanced Steam, so I'm making mistakes. (I just created Pull Request #115 in this repository when I meant to create one in my own fork.) Perhaps it's better if jshackles doesn't see my stuff until I've had a day or two to check it carefully! |
We created a CSS file specifically for Firefox in the main repository, called enhancedsteam-firefox.css in the CSS folder. Since Mozilla keeps changing how these relative paths load, I believe your idea of manually specifying an https protocol sounds prudent. Feel free to create a pull request with these changes in enhancedsteam-firefox.css in the dev branch here: https://github.com/jshackles/Enhanced_Steam/tree/dev Otherwise I should be able to make these changes to that file itself before the next release. (I actually do see issues posted here by the way) |
As of Firefox 57, I'm not seeing the platform icons any more, and @c12h's |
There is a bug for |
Steam Store pages don't show the platform icons above the Add to Cart button. Somehow HTC Vive is immune, see http://store.steampowered.com/app/610680/Starway_Fleet/ as an example.
http://ft.trillian.im/c27ecec70eb02d421b83464ad07d3abe9ef772fe/6Tda4Lc89ervzd8AA9NGmI6ZGu9Pc.jpg
The text was updated successfully, but these errors were encountered: