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
  • !2527

Responsive makeColumn/makeRow and use global variables

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/barryvdh/2.0.2-wip into 2.0.2-wip Mar 12, 2012
  • Overview 0
  • Commits 5
  • Pipelines 0
  • Changes 2

Created by: barryvdh

  • Create 2 different makeColumn/makeRow mixins with guard expressions.
  • Make parameters optional in the grid() mixin (default to global variables)
  • Override grid variables in responsive.less, to make makeColumn work

This enables creating 1 mixin with .makeColumn and .makeRow, and have the possibility to collapse, just like the regular spans (or define columns/rows in mediaqueries)

@media (max-width: 767px) {
    // Custom grid
    @gridColumnWidth: auto;
    @gridGutterWidth: 0;

    #custom > .grid();
}

(For issue #2242 (closed) #2448 (closed) and #1636 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/barryvdh/2.0.2-wip