-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modern skin: download button uses hard-coded colours #296
Comments
The eduroam download button is controlled by the guess_os class setting. Hovever the background of the optional OpenRoaming button was indeed hard coded in the JS source. Changed this to be identical to the eduroam button - this both are controlled by the guess_os setting. |
Hm, I didn't even realise /these/ buttons yet. I am talking about the big (blue) button on the front page... |
I see no problem with this one - just change the background-color for large_button |
Since we now have the css as php we could easily use php constants but this might narrow the possibilities for changes and so I did not make this large change at the moment. |
It's not even that complicated. The user CSS at https://github.com/GEANT/CAT/blob/master/web/skins/modern/resources/css/cat-user.css#L21 defines color1..3 constants. Those could be referred to, which already makes the hard-coding go away. |
I put in those constants myself and then stopped using them after realizing that some browsers had problems with them. Not sure wha the situation is now, you using php would be absolutely safe, the question is dow we think this is the correct approach. |
Issue type
Defect/Feature description
While it is possible to configure thematic colours for the product (config/Master.php and skins/modern/resources/css/cat-user.css), those colours are not considered for rendering the big download button. That one uses hardcoded eduroam-themed colours.
How to reproduce issue
Detail of issue
This appears to happen in cat-user.css
The text was updated successfully, but these errors were encountered: