This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
[DISCUSS] Remove packery - replace with css grid #299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We're using the packery library to layout the blog posts in a condensed gird, something that at the time of development was impossible to do with pure css. However, I'm almost certain that we've not paid the license fee to be allowed to do so on the site, so we should remove it. Using CSS grid works, but the stats from "can i use" for css grid are not great (37% Globally, 33% UK) so I'm not sure it's a useful solution (yet).
As an aside, we've introduced a
Tiler
class to arrange the articles into a grid as we render them in HTML, but it's possible that this class isn't needed because css-grid is able to cope. (Perhaps not with the minimal grid implementation in this PR, but maybe with some tweaks)This is an alternative to #300