All Projects → keaukraine → Bootstrap4 Fs Modal

keaukraine / Bootstrap4 Fs Modal

Licence: mit
A simple way to improve UX of Bootstrap 4 modals on mobile phones.

Projects that are alternatives of or similar to Bootstrap4 Fs Modal

Lightning Admin Angular
A mobile first design of a responsive admin template built with angular and bootstrap
Stars: ✭ 107 (+4.9%)
Mutual labels:  bootstrap, bootstrap4, responsive
Bootstrap Show Modal
A Bootstrap 4 / jQuery plugin wrapper, to create modals dynamically in JavaScript
Stars: ✭ 38 (-62.75%)
Mutual labels:  modal, bootstrap, bootstrap4
Coderedcms
A content management system for marketing websites based on Django and Wagtail.
Stars: ✭ 386 (+278.43%)
Mutual labels:  bootstrap, bootstrap4, responsive
Bootstrap Dark
The Definitive Guide to Dark Mode and Bootstrap 4 - A proof of concept
Stars: ✭ 54 (-47.06%)
Mutual labels:  bootstrap, bootstrap4, responsive
Responsiveframework
Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
Stars: ✭ 476 (+366.67%)
Mutual labels:  bootstrap, bootstrap4, responsive
Sing App
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
Stars: ✭ 1,187 (+1063.73%)
Mutual labels:  bootstrap, bootstrap4, responsive
Angular Generic Table
A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
Stars: ✭ 100 (-1.96%)
Mutual labels:  bootstrap4, responsive
Paperadmin
A flat admin dashboard using Angular JS 2/4
Stars: ✭ 80 (-21.57%)
Mutual labels:  bootstrap, responsive
Coreui Angularjs
CoreUI AngularJS is free AngularJS admin template based on Bootstrap 4
Stars: ✭ 101 (-0.98%)
Mutual labels:  bootstrap, bootstrap4
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+1224.51%)
Mutual labels:  bootstrap, bootstrap4
Startbootstrap Shop Item
A shop item Bootstrap HTML template created by Start Bootstrap
Stars: ✭ 76 (-25.49%)
Mutual labels:  bootstrap, bootstrap4
Startbootstrap Sb Admin 2
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 9,038 (+8760.78%)
Mutual labels:  bootstrap, bootstrap4
Tailwindcss Tables
Bootstrap styled tables for Tailwind CSS
Stars: ✭ 84 (-17.65%)
Mutual labels:  bootstrap, bootstrap4
React Poppop
A mobile support and multi-directional modal for ReactJS
Stars: ✭ 78 (-23.53%)
Mutual labels:  modal, responsive
Chameleon
Provides a highly flexible and customizable skin using Bootstrap 4
Stars: ✭ 78 (-23.53%)
Mutual labels:  bootstrap, bootstrap4
Startbootstrap 3 Col Portfolio
A three column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 82 (-19.61%)
Mutual labels:  bootstrap, bootstrap4
Gitmessenger
GitMessenger is github chat app built with socket.io , firebase, nodejs and bootstrap where developers can share code,images and much more 😊
Stars: ✭ 78 (-23.53%)
Mutual labels:  bootstrap, bootstrap4
Clever Bootstrap 4 Admin Template With Angularjs Angular 2 Support
Clever is Boostrap 4 Admin Template with Angular 2 and AngularJS support
Stars: ✭ 98 (-3.92%)
Mutual labels:  bootstrap, bootstrap4
Now Ui Kit React
React version of Now UI Kit by Creative Tim
Stars: ✭ 90 (-11.76%)
Mutual labels:  bootstrap, bootstrap4
Coreui Free Angular Admin Template
CoreUI Angular is free Angular 2+ admin template based on Bootstrap 4
Stars: ✭ 1,279 (+1153.92%)
Mutual labels:  bootstrap, bootstrap4

Bootstrap Mobile FullScreen Modal

A simple, CSS-only solution to improve UX of Bootstrap 4 modals on mobile phones.

Regular Bootstrap modals (with a lot of content) on mobile devices can cause additional vertical scrolling in order to get to the header and footer of modal.

Fullscreen modal provides more native user experience on mobile phones, with responsive behavior similar to modals in ZURB Foundation. Here is side-by-side comparison of regular and fullscreen modals:

Regular Bootstrap 4 Modal on Phone Fullscreen Bootstrap 4 Modal on Phone

Fullscreen modal applies these styles only on mobile devices. It also applies max-height to modals on devices with large screens to prevent scrolling of page to reach buttons in modal footer.

Live demo page is here - https://keaukraine.github.io/bootstrap4-fs-modal/

How to Use

You can obtain plugin either from GitHub or from npm, package name is bootstrap4-fs-modal.

This plugin is implemented purely in CSS, so all you need is to include CSS from dist folder:

<link href="dist/css/bootstrap-fs-modal.min.css" rel="stylesheet">

Then, you have two options to make modals use updated styles:

  • add modal-fullscreen CSS class to modals which you want to work full-screen.
  • add bootstrap-fs-modal CSS class to container element for all modals within this element to receive updated styles.

If your modals have large text buttons you may want to use a fixed bottom modal footer instead of placing buttons in header. In this case you should add modal-fullscreen-bottom-footer class either to modal or to container.

Examples (for detailed examples please see source code of demo page index.html):

  <div class="modal fade modal-fullscreen" ...>
     ...
  </div>
<body class="bootstrap-fs-modal">
    <div class="modal fade" ...>
       ...
    </div>
</body>

Plugin places .modal-footer at the top of modal and modifies styles of all footer children with .button class to look like link buttons. Buttons with [data-dismiss="modal"] (used to close modal) will be automatically hidden.

You can use Bootstrap 4 responsive classes to show short text or icons in footer buttons for xs and sm breakpoints. Fullscreen modal styles include rules for Font Awesome and Google Material icons for them to have uniform size and alignment.

<div class="modal-footer">
    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>  <!-- this button will be hidden -->
    <button type="button" id="btnTestRefreshSmall" class="btn btn-default">
        <span class="d-none d-md-inline">Reload Data</span>
        <span class="d-md-none">Reload</span> <!-- will have short text -->
    </button>
    <button type="button"class="btn btn-default">
        <span class="d-none d-md-inline">Reload Data</span>
        <i class="d-md-none fa fa-refresh fa-fw"></i> <!-- this will have FA icon -->
    </button>
    <button type="button"class="btn btn-default">
        <span class="d-none d-md-inline">Details</span>
        <i class="d-md-none material-icons">info</i> <!-- will have Material icon -->
    </button>
</div>

Used Libraries

License

The MIT License

Copyright (c) 2017 Oleksandr Popov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].