{"id":13988871,"url":"https://github.com/keaukraine/bootstrap4-fs-modal","last_synced_at":"2025-08-20T08:31:56.709Z","repository":{"id":119106861,"uuid":"109388253","full_name":"keaukraine/bootstrap4-fs-modal","owner":"keaukraine","description":"A simple way to improve UX of Bootstrap 4 modals on mobile phones.","archived":false,"fork":false,"pushed_at":"2018-10-31T13:39:35.000Z","size":71,"stargazers_count":108,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-28T18:12:43.944Z","etag":null,"topics":["bootstrap","bootstrap-modal","bootstrap4","modal","responsive"],"latest_commit_sha":null,"homepage":"https://keaukraine.github.io/bootstrap4-fs-modal/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keaukraine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-03T11:32:02.000Z","updated_at":"2023-03-29T20:47:55.000Z","dependencies_parsed_at":"2023-07-16T05:15:32.281Z","dependency_job_id":null,"html_url":"https://github.com/keaukraine/bootstrap4-fs-modal","commit_stats":{"total_commits":59,"total_committers":3,"mean_commits":"19.666666666666668","dds":0.5932203389830508,"last_synced_commit":"d1f02b0568396da9540317019b0ffded1797d3cc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keaukraine/bootstrap4-fs-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap4-fs-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap4-fs-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap4-fs-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap4-fs-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keaukraine","download_url":"https://codeload.github.com/keaukraine/bootstrap4-fs-modal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keaukraine%2Fbootstrap4-fs-modal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271287624,"owners_count":24733424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-modal","bootstrap4","modal","responsive"],"created_at":"2024-08-09T13:01:24.748Z","updated_at":"2025-08-20T08:31:56.475Z","avatar_url":"https://github.com/keaukraine.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# Bootstrap Mobile FullScreen Modal\nA simple, CSS-only solution to improve UX of Bootstrap 4 modals on mobile phones.\n\nRegular 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.\n\nFullscreen 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:\n\n![Regular Bootstrap 4 Modal on Phone](https://i.imgur.com/cjo0RQN.gif)\n![Fullscreen Bootstrap 4 Modal on Phone](https://i.imgur.com/Hx0zp9w.gif)\n\nFullscreen 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.\n\nLive demo page is here - https://keaukraine.github.io/bootstrap4-fs-modal/\n\n## How to Use\n\nYou can obtain plugin either from GitHub or from npm, package name is `bootstrap4-fs-modal`.\n\nThis plugin is implemented purely in CSS, so all you need is to include CSS from `dist` folder:\n\n```html\n\u003clink href=\"dist/css/bootstrap-fs-modal.min.css\" rel=\"stylesheet\"\u003e\n```\n\nThen, you have two options to make modals use updated styles:\n * add `modal-fullscreen` CSS class to modals which you want to work full-screen.\n * add `bootstrap-fs-modal` CSS class to container element for all modals within this element to receive updated styles.\n\nIf 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.\n\nExamples (for detailed examples please see source code of demo page *index.html*):\n\n```html\n  \u003cdiv class=\"modal fade modal-fullscreen\" ...\u003e\n     ...\n  \u003c/div\u003e\n```\n\n```html\n\u003cbody class=\"bootstrap-fs-modal\"\u003e\n    \u003cdiv class=\"modal fade\" ...\u003e\n       ...\n    \u003c/div\u003e\n\u003c/body\u003e\n```\n\nPlugin 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.\n\nYou can use Bootstrap 4 responsive classes to show short text or icons in footer buttons for `xs` and `sm` breakpoints.\nFullscreen modal styles include rules for *Font Awesome* and *Google Material* icons for them to have uniform size and alignment.\n\n```html\n\u003cdiv class=\"modal-footer\"\u003e\n    \u003cbutton type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\"\u003eClose\u003c/button\u003e  \u003c!-- this button will be hidden --\u003e\n    \u003cbutton type=\"button\" id=\"btnTestRefreshSmall\" class=\"btn btn-default\"\u003e\n        \u003cspan class=\"d-none d-md-inline\"\u003eReload Data\u003c/span\u003e\n        \u003cspan class=\"d-md-none\"\u003eReload\u003c/span\u003e \u003c!-- will have short text --\u003e\n    \u003c/button\u003e\n    \u003cbutton type=\"button\"class=\"btn btn-default\"\u003e\n        \u003cspan class=\"d-none d-md-inline\"\u003eReload Data\u003c/span\u003e\n        \u003ci class=\"d-md-none fa fa-refresh fa-fw\"\u003e\u003c/i\u003e \u003c!-- this will have FA icon --\u003e\n    \u003c/button\u003e\n    \u003cbutton type=\"button\"class=\"btn btn-default\"\u003e\n        \u003cspan class=\"d-none d-md-inline\"\u003eDetails\u003c/span\u003e\n        \u003ci class=\"d-md-none material-icons\"\u003einfo\u003c/i\u003e \u003c!-- will have Material icon --\u003e\n    \u003c/button\u003e\n\u003c/div\u003e\n```\n\n## Used Libraries\n* Twitter Bootstrap used under the MIT License https://github.com/twbs/bootstrap/blob/master/LICENSE\n\n## License\n\n**The MIT License**\n\nCopyright (c) 2017 Oleksandr Popov\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeaukraine%2Fbootstrap4-fs-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeaukraine%2Fbootstrap4-fs-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeaukraine%2Fbootstrap4-fs-modal/lists"}