{"id":21890772,"url":"https://github.com/chantastic/btn.css","last_synced_at":"2025-07-21T19:32:45.947Z","repository":{"id":24450428,"uuid":"27852848","full_name":"chantastic/btn.css","owner":"chantastic","description":"A scalable, style-able button.","archived":false,"fork":false,"pushed_at":"2024-06-29T13:33:40.000Z","size":17,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T04:12:04.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chantastic.org/btn.css","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chantastic.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-11T03:46:35.000Z","updated_at":"2024-06-29T13:33:43.000Z","dependencies_parsed_at":"2022-07-19T23:17:55.450Z","dependency_job_id":null,"html_url":"https://github.com/chantastic/btn.css","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/chantastic/btn.css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fbtn.css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fbtn.css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fbtn.css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fbtn.css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chantastic","download_url":"https://codeload.github.com/chantastic/btn.css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fbtn.css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266364969,"owners_count":23918012,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-28T12:16:48.312Z","updated_at":"2025-07-21T19:32:45.927Z","avatar_url":"https://github.com/chantastic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btn.css\n\nA scalable, style-able button.\n\n## Installation\n\nScript tag:\n\n    \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/btn.css@0.3.0\" /\u003e\n\nNode:\n\n    npm install btn.css@0.3.0\n\n## The code\n\nThis is `.btn` all the code.\n\n    /*! btn.css */\n    .btn {\n      font-size: 1em;\n      line-height: 2em;\n      display: inline-block;\n      padding: 0 1em;\n      cursor: pointer;\n      white-space: nowrap;\n      text-decoration: none;\n      border-width: 1px;\n      border-style: solid;\n      -webkit-user-select: none;\n      -moz-user-select: none;\n      -ms-user-select: none;\n      user-select: none;\n    }\n\n## Usage\n\n### Modifiers\n\nExtend `.btn` with classes of your own.\n\nCreating a new classes that define `color`, `background-color` and `border-color`.\n\n    .my-fancy-outline-btn {\n      color: blue;\n      background-color: transparent;\n      border-color: currentColor;\n    }\n    .my-fancy-outline-btn:hover {\n      color: white;\n      background-color: blue;\n      border-color: blue;\n    }\n    .my-fancy-outline-btn:active {\n      color: whitesmoke;\n      background-color: darkblue;\n      border-color: darkblue;\n    }\n\n### Adapters\n\nChances are you're buttons share a common theme.\nMake an adapter for `.btn` in your app.\n\n    /* my app's .btn */\n    .btn {\n      border-radius: 4px;\n      box-shadow: 0 4px 3px -2px rgba(0,0,0,0.3);\n    }\n\n### Scale\n\nScale `.btn` by changing `font-size`.\n\n    .my-big-btn { font-size: 2em }\n\nYou can also scale one-off buttons right on element.\n\n    \u003cbutton class=\"btn\" style=\"font-size: 20em\"\u003eSuper Button\u003c/button\u003e\n\n## More examples\n\n[chantastic.org/btn.css](https://chantastic.org/btn.css/)\n\n\u003c3 [@chantastic](http://twitter.com/chantastic)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fbtn.css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchantastic%2Fbtn.css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fbtn.css/lists"}