Looking for our old flex grid? Flex layouts have been moved and renamed now that CSS grid is here. Our .grid
, and .grid--cell
classes have been removed in favor of .d-flex
and .flex--item
.
If you need to continue using the old .grid
, and .grid--cell
classes, Stacks provides a shim for backwards compatability.
CSS Grids are the most powerful layout system available in CSS. It has two dimensions, meaning it can handle both columns and rows simultaneously, unlike flex layouts which can only do one at a time. Applying .d-grid
to a container will lay out its children according to the CSS Grid layout spec. Adding atomic modifying classes will change the layout’s behavior. Applying classes to an individual .grid--item
will change that cell’s behavior.
In order for the new version of Stacks to be usable on Core and Careers, you’ll need to ship to both.
- -Within Core and Careers, run the update-stacks.bat
script within Tools/
. This will copy the files from the latest version of the Stacks repo. You’ll need to do this for both Core and Careers. The script will create a new branch, create a single commit with the updates from Stacks, push the new branch to the repo, and open your browser on the “new pull request” page.
In order for the new version of Stacks to be usable on Stack Overflow and Careers, you’ll need to ship to both.
+Stack Overflow’s dependencies are now managed via NPM, so updating Stacks there is as simple as bumping the version number in package.json
Within the Careers repo, run the update-stacks.bat
script within the Tools
directory. This will copy the files from the latest version of the Stacks repo. The script will create a new branch, create a single commit with the updates from Stacks, push the new branch to the repo, and open your browser on the “new pull request” page.