Skip to content
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

Make responsive background images for events chapters section (portrait) and globally #90

Closed
Tomasz-Kluczkowski opened this issue Mar 21, 2018 · 1 comment
Labels
enhancement images javascript Knowledge of javascript will be required

Comments

@Tomasz-Kluczkowski
Copy link
Contributor

The background for the events - chapters (abstract background with some nodes linked by lines) is currently only designed for landscape view and gets stretched too much in portrait mode making the image look low quality.
Find a way to detect orientation and screen size and adjust image source for the background image. We can have several media queries (what there already is in css) but a more elegant way would be better.

There is a javascript code for that already but it kept downloading the files twice - once on page load and then when the javascript code was using that image as the source for the background.
This script detects that an image with a specific css class is being loaded and instead sticks that image as a background image on a div with a specific css class.
See if this script can be improved - look for it in static/js/snippets.js

@Tomasz-Kluczkowski
Copy link
Contributor Author

Closed as no background image is used any more (white background).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement images javascript Knowledge of javascript will be required
Projects
None yet
Development

No branches or pull requests

1 participant