Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • !15724

[Fix issue #15712] Add example of how to use grid system within a modal

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/kkirsche/modalExampleWithGrid into master 10 years ago
  • Overview 0
  • Commits 8
  • Pipelines 0
  • Changes 2

Created by: kkirsche

[Fix issue #15712 (closed)] Add example of how to use grid system within a modal

Compare
  • master (base)

and
  • latest version
    d641f27d
    8 commits, 2 years ago

2 files
+ 34
- 0

    Preferences

    File browser
    Compare changes
docs/_in‎cludes/js‎
modal‎.html‎ +23 -0
le‎ss‎
dropdow‎ns.less‎ +11 -0
docs/_includes/js/modal.html
+ 23
- 0
  • View file @ d641f27d


@@ -216,6 +216,29 @@
<div class="modal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
...
</div>
{% endhighlight %}
<h2 id="modals-grid-system">Using the grid system</h2>
<p>For modals which would like to take advantage of the Bootstrap grid system, nest <code>.container-fluid</code> within the <code>.modal-body</code> to have access to all the grid system classes</p>
{% highlight html %}
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
...
</div>
<div class="modal-body">
<div class="container-fluid">
...
</div>
</div>
<div class="modal-footer">
...
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{% endhighlight %}
<h2 id="modals-related-target">Varying modal content based on trigger button</h2>
less/dropdowns.less
+ 11
- 0
  • View file @ d641f27d


@@ -168,6 +168,17 @@
z-index: (@zindex-dropdown - 10);
}
// Backdrop to catch body clicks on mobile, etc.
// ---------------------------
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: @zindexDropdown - 10;
}
// Right aligned dropdowns
.pull-right > .dropdown-menu {
right: 0;
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: firstcontributions/first-contributions!9063
Source branch: github/fork/kkirsche/modalExampleWithGrid

Menu

Explore Projects Groups Snippets