@extends('layouts.vertical', ['pageTitle' => 'Modal']) @section('css') @endsection @section('page-title') @include('layouts.partials/app-pagetitle', ['pageTitle'=> 'Modal', 'pageSubTitle1' => 'Design', 'pageSubTitle2'=> 'UI Components', 'pageSubText' => 'Modal dialogs for lightboxes, user notifications, or completely custom content.']) @endsection @section('content')
Modals are built with HTML, CSS, and JavaScript. They're positioned over everything else in the document and
remove
scroll from the body so that modal content scrolls instead. Bootstrap only supports one modal
window
at a time. Nested modals aren't supported as it is believed to be poor user experiences.
Modals use position: fixed, which can sometimes be a bit particular about its rendering.
Whenever possible, place your modal HTML in a top-level position to avoid potential interference from other
elements.
You'll likely run into issues when nesting a .modal within another fixed element
Find in-depth, guidelines, tutorials and more on Bootstrap Modals's at the official documentation.
.modal-dialog-start,
.modal-dialog-end, .modal-dialog-top, and .modal-dialog-bottom
on .modal-dialog. These side modals also support size classes.
.modal-fullscreen.
Using the modifer class .modal-backdrop-transparent makes the backdrop
transparent. You can also translate the modals to cast as an alert by using the modifier
class .modal-alert
Another override is the option to pop up a modal that covers the user
viewport, available via modifier
classes that are placed on a .modal-dialog.
| Class | Availability |
|---|---|
.modal-fullscreen |
Always |
.modal-fullscreen-sm-down |
576px |
.modal-fullscreen-md-down |
768px |
.modal-fullscreen-lg-down |
992px |
.modal-fullscreen-xl-down |
1200px |
.modal-fullscreen-xxl-down |
1400px |