Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !31813

Add optional CSS grid

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge cssgrid-idea into main Oct 01, 2020
  • Overview 3
  • Commits 3
  • Pipelines 0
  • Changes 7

Stubbing out here for fun since #31812 as opened. I’ve done some experimenting elsewhere for this, and I’m not 100% convinced we’d want to drop the existing flex box grid for a CSS grid implementation. However, I think it’s important to at least get something out there so we can react to it and try things out.

This is heavily WIP, so no need for full on code review yet, but I’m open to ideas for how we can accomplish something cool here!

Intention here is to create an optional CSS grid that can be enabled in place of the default CSS grid classes. So, to switch from the default grid to CSS grid:

$enable-grid-classes: false;
$enable-cssgrid: true;

From there, we generate a .grid instead of a .row. The classes within the .grid are essentially the same by name, but that’s it. We’d use column properties as needed to accomplish this.

Fixes #19729 (closed), fixes #23057 (closed), fixes #24887 (closed), addresses #31812.

Previous demo from your's truly: https://mdo.github.io/bootstrap-css-grid-layout/

/cc @twbs/css-review


Preview: https://deploy-preview-31813--twbs-bootstrap.netlify.app/docs/5.0/layout/css-grid/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cssgrid-idea