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

Move includes into bootstrap-include.less, so this can more easily be included with a custom variables file.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/chrisseaton/easier-include into 3.0.0-wip Aug 16, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: chrisseaton

At the moment I use Bootstrap by replacing bootstrap.less with my own file, in order to include my own variables without modifying the Bootstrap source. However I then have to copy and paste the long list of includes into my own version of bootstrap.less. I can't include bootstrap.less directly because if I put my own variables before I include they get overridden by the defaults, and if I put it after they get ignored.

This PR moves those includes into bootstrap-include.less. bootstrap.less then simply includes variables.less and bootstrap-include.less.

My site's Less file then becomes

@import "lib/bootstrap/less/variables.less";

// my tweaks to variables...

@import "lib/bootstrap/less/bootstrap-include.less";

// my tweaks to other stuff...

Or am I using Bootstrap incorrectly?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/chrisseaton/easier-include