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

Adaptive Images Twitter Bootstrap Ready #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kollinger
Copy link

If you are using a grid system like Twitter Bootstrap, it could be, that the biggest resolution do not affort the biggest images.
Because on a special width the layout will starting to get single-column and the columns possibly get expanded.

Therefore I implemented 2 new arrays for the grid column widths and the grid gutter widths.
The keys of these 2 arrays and the resolutions array are depending on each other.

Column and gutter width came from: http://twitter.github.io/bootstrap/scaffolding.html#responsive
Compare the table there with the 3 mentioned arrays and you will finally understand... ;)

The 5000 in $resolutions is for 1200px and above.

You can modify the 3 mentioned arrays to adapt to any other grid system you like.

How to use with Twitter Bootstrap:

All relevant images have to be in folders named by their bootstrap span-size-classes. E.g. /img/span8/image.jpg
Everything else is the same as in previous Adaptive-Images versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant