{"id":20962195,"url":"https://github.com/developerdizzle/bootstrap.push-menu","last_synced_at":"2026-01-02T03:23:01.978Z","repository":{"id":27551708,"uuid":"31033427","full_name":"developerdizzle/bootstrap.push-menu","owner":"developerdizzle","description":"Enables push menu functionality with Bootstrap-compliant classes","archived":false,"fork":false,"pushed_at":"2016-02-26T15:27:39.000Z","size":644,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-19T04:11:16.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/developerdizzle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-19T19:47:48.000Z","updated_at":"2024-12-04T10:17:28.000Z","dependencies_parsed_at":"2022-08-31T00:01:28.720Z","dependency_job_id":null,"html_url":"https://github.com/developerdizzle/bootstrap.push-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdizzle%2Fbootstrap.push-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdizzle%2Fbootstrap.push-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdizzle%2Fbootstrap.push-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerdizzle%2Fbootstrap.push-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developerdizzle","download_url":"https://codeload.github.com/developerdizzle/bootstrap.push-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358307,"owners_count":20277995,"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","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":[],"created_at":"2024-11-19T02:24:11.575Z","updated_at":"2026-01-02T03:22:56.944Z","avatar_url":"https://github.com/developerdizzle.png","language":"HTML","readme":"# bootstrap.push-menu\nEnables push menu functionality with Bootstrap-compliant markup and CSS.  Only takes effect at mobile resolution.\n\n[Check out the demo here](http://developerdizzle.github.io/bootstrap.push-menu/demo.html)\n\n![demo](http://i.imgur.com/YO4dO6A.gif)\n\n## Installation\n\nYou can use Bower to install bootstrap.push-menu:\n\n```console\n$ bower install bootstrap.push-menu\n```\n\n## Configuration\n\nAdd the CSS file:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/bower_components/bootstrap.push-menu/dist/css/push-menu.css\" /\u003e\n```\n\nand JS file:\n\n```html\n\u003cscript src=\"/bower_components/bootstrap.push-menu/dist/js/push-menu.js\"\u003e\u003c/script\u003e\n```\n\nThen minimally add the `data-toggle=\"push\"` and `data-target` attributes to your `navbar-toggle` button:\n\n```html\n      \u003cnav class=\"navbar navbar-default\"\u003e\n        \u003cdiv class=\"container-fluid\"\u003e\n          \u003cdiv class=\"navbar-header\"\u003e\n            \u003cbutton type=\"button\" class=\"navbar-toggle visible-xs\" data-toggle=\"push\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\"\u003e\n              \u003cspan class=\"sr-only\"\u003eToggle navigation\u003c/span\u003e\n              \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n              \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n              \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n            \u003c/button\u003e\n            \u003ca class=\"navbar-brand\" href=\"#\"\u003eProject name\u003c/a\u003e\n          \u003c/div\u003e\n          \u003cdiv id=\"navbar\"\u003e\n            \u003cul class=\"nav navbar-nav\"\u003e\n              \u003cli class=\"active\"\u003e\u003ca href=\"#\"\u003eHome\u003c/a\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ca href=\"#\"\u003eAbout\u003c/a\u003e\u003c/li\u003e\n              ...\n```\n\nFor standard Bootstrap setups, `data-toggle=\"push\"` replaces `data-toggle=\"collapse\"` and `data-target` remains the same.  You will also want to replace the `collapsed` class from the `navbar-toggle` button with `visible-xs`, as well as remove the `navbar-collapse` and `collapse` classes from the target `#navbar`, because we are essentially replacing the collapse functionality with push.\n\nThe javascript will automatically add a few classes to your navigation elements.\n\n## Options\n\nThese options can be placed on the button that toggles the push:\n\n`data-target` is the selector for the navigation bar.  Defaults to `#navbar`.\n\n`data-canvas` is the selector for the element that will be pushed.  This defaults to `body` and is almost always what you want.\n\n`data-direction` is the direction that the canvas element and menu will slide.  Defaults to `left`.  **Note:** `right` does not work in standard Bootstrap navbar, as the navbar-toggle button will be on the right (and pushing it further right will place it off-screen).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperdizzle%2Fbootstrap.push-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperdizzle%2Fbootstrap.push-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperdizzle%2Fbootstrap.push-menu/lists"}