{"id":19778518,"url":"https://github.com/nickrigby/silc-offcanvas","last_synced_at":"2026-05-20T05:35:10.954Z","repository":{"id":57359495,"uuid":"87513925","full_name":"nickrigby/silc-offcanvas","owner":"nickrigby","description":"Lightweight offcanvas/modal component for silc framework","archived":false,"fork":false,"pushed_at":"2017-06-24T11:57:29.000Z","size":68,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T07:54:41.392Z","etag":null,"topics":["offcanvas","silc-framework","typescript"],"latest_commit_sha":null,"homepage":"https://silc.io","language":"JavaScript","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/nickrigby.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":"2017-04-07T06:43:48.000Z","updated_at":"2020-06-07T13:33:10.000Z","dependencies_parsed_at":"2022-09-06T21:41:29.704Z","dependency_job_id":null,"html_url":"https://github.com/nickrigby/silc-offcanvas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nickrigby/silc-offcanvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickrigby%2Fsilc-offcanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickrigby%2Fsilc-offcanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickrigby%2Fsilc-offcanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickrigby%2Fsilc-offcanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickrigby","download_url":"https://codeload.github.com/nickrigby/silc-offcanvas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickrigby%2Fsilc-offcanvas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262621205,"owners_count":23338644,"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":["offcanvas","silc-framework","typescript"],"created_at":"2024-11-12T05:29:46.710Z","updated_at":"2026-05-20T05:35:05.914Z","avatar_url":"https://github.com/nickrigby.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# silc offcanvas [![Build Status](https://travis-ci.org/nickrigby/silc-offcanvas.svg?branch=master)](https://travis-ci.org/nickrigby/silc-offcanvas) [![npm version](https://badge.fury.io/js/silc-offcanvas.svg)](https://badge.fury.io/js/silc-offcanvas)\nThe offcanvas module is an ultra-lightweight web component for the [silc framework](https://github.com/nickrigby/silc). The offcanvas module allows you to place content outside of the viewport, with the ability to trigger its visibility.\n\n## HTML\nThe offcanvas pattern consists of two main elements:\n\n### Open Trigger\nThe open trigger must contain an anchor link that references an element on the page with a corresponding id.\n```html\n\u003ca class=\"silc-offcanvas__trigger\" href=\"#silc-offcanvas-1\"\u003eTrigger Offcanvas\u003c/a\u003e\n```\n\n### Content element\nThe content element should contain an anchor link that is self-referencing through an id for closing the offcanvas element.\n```html\n\u003cdiv class=\"silc-offcanvas\" id=\"silc-offcanvas-1\"\u003e\n    \u003ca class=\"silc-offcanvas__trigger silc-offcanvas__trigger--close\" href=\"#silc-offcanvas-1\"\u003eClose\u003c/a\u003e\n    \u003cp\u003eThis content is outside of the viewport.\u003c/p\u003e\n\u003c/div\u003e\n```\n\n## Class modifiers\n\n### Direction\nAn offcanvas element appears from the right by default, but can be modified using one of the following classes:\n\n```html\n\u003cdiv class=\"silc-offcanvas silc-offcanvas--left\"\u003e...\u003c/div\u003e\n\u003cdiv class=\"silc-offcanvas silc-offcanvas--top\"\u003e...\u003c/div\u003e\n\u003cdiv class=\"silc-offcanvas silc-offcanvas--bottom\"\u003e...\u003c/div\u003e\n```\n\n## Options\nYou can control when an element becomes offcanvas by overriding the `$silc-offcanvas--options--becomes-visible` variable. The default value is `800px`.\n\n## Styling\nAs with all silc components, no deliberate style has been added. However, through a SASS fallback system, a number of [SASS variables](src/scss/_variables.scss) are available to easily apply design without having to write your own selectors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickrigby%2Fsilc-offcanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickrigby%2Fsilc-offcanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickrigby%2Fsilc-offcanvas/lists"}