{"id":16346547,"url":"https://github.com/madeleineostoja/postcss-input-style","last_synced_at":"2025-03-23T00:32:51.043Z","repository":{"id":36445239,"uuid":"40750287","full_name":"madeleineostoja/postcss-input-style","owner":"madeleineostoja","description":"PostCSS plugin that adds new pseudo-elements for easily styling the inner elements of inputs","archived":false,"fork":false,"pushed_at":"2023-01-11T12:17:34.000Z","size":106,"stargazers_count":17,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T15:55:02.501Z","etag":null,"topics":["css","inputs","postcss","postcss-plugin","pseudo-selectors"],"latest_commit_sha":null,"homepage":"","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/madeleineostoja.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-15T07:10:33.000Z","updated_at":"2024-10-30T15:07:29.000Z","dependencies_parsed_at":"2023-01-17T01:32:13.640Z","dependency_job_id":null,"html_url":"https://github.com/madeleineostoja/postcss-input-style","commit_stats":null,"previous_names":["seaneking/postcss-input-style"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Fpostcss-input-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Fpostcss-input-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Fpostcss-input-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeleineostoja%2Fpostcss-input-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madeleineostoja","download_url":"https://codeload.github.com/madeleineostoja/postcss-input-style/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["css","inputs","postcss","postcss-plugin","pseudo-selectors"],"created_at":"2024-10-11T00:35:36.673Z","updated_at":"2025-03-23T00:32:50.776Z","avatar_url":"https://github.com/madeleineostoja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Input Style\n[![NPM version][npm-badge]][npm-url] [![Downloads][downloads-badge]][npm-url] [![Build Status][travis-badge]][travis-url] \n\n[PostCSS][PostCSS] plugin that adds new pseudo elements to inputs for easy cross-browser styling of their inner elements. Currently the only input supported is Range, more will be added as more vendor-specific pseudo selectors are made available.\n\n_Part of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack)_\n\n**Input**\n\n```css\ninput[type=\"range\"]::track {\n  background: #9d9d9d;\n  height: 3px;\n}\n\ninput[type=\"range\"]::thumb {\n  background: #4286be;\n  width: 16px;\n  height: 8px;\n}\n```\n\n**Output**\n\n```css\ninput[type=\"range\"]::-webkit-slider-runnable-track {\n  -webkit-appearance: none;\n  background: #9d9d9d;\n  height: 3px;\n}\n\ninput[type=\"range\"]::-moz-range-track  {\n  -moz-appearance: none;\n  background: #9d9d9d;\n  height: 3px;\n}\n\ninput[type=\"range\"]::-ms-track  {\n  background: #9d9d9d;\n  height: 3px;\n}\n\ninput[type=\"range\"]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  background: #4286be;\n  width: 16px;\n  height: 8px;\n}\n\ninput[type=\"range\"]::-moz-range-thumb {\n  -moz-appearance: none;\n  background: #4286be;\n  width: 16px;\n  height: 8px;\n}\n\ninput[type=\"range\"]::-ms-thumb {\n  background: #4286be;\n  width: 16px;\n  height: 8px;\n}\n\ninput[type=\"range\"] {\n  -webkit-appearance: none;\n}\n\ninput[type=range]::-moz-focus-outer {\n    border: 0;\n}\n```\n\nNotes on output:\n\n- Selectors are not grouped because if a browser finds a single selector it doesn't understand in a group, the whole group is ignored (see [Selectors Level 3][selectors])\n\n- `-[vendor]-appearance: none;` is added so your custom styles apply. On Chrome and Safari this means you must style *both* `::track` and `::thumb`, since the appearance must be set on the root element as well\n\n- The additional `::-moz-focus-outer` rule removes the inconsistent dotted focus outline on firefox.\n\n## Usage\n\n```js\npostcss([ require('postcss-input-style') ])\n```\n\nSee [PostCSS][PostCSS] docs for examples for your environment.\n\n***\n\nMIT © [Sean King](https://twitter.com/seaneking)\n\n[npm-badge]: https://badge.fury.io/js/postcss-input-style.svg\n[npm-url]: https://npmjs.org/package/postcss-input-style\n[downloads-badge]: https://img.shields.io/npm/dm/postcss-input-style.svg\n[travis-badge]: https://travis-ci.org/seaneking/postcss-input-style.svg?branch=master\n[travis-url]: https://travis-ci.org/seaneking/postcss-input-style\n[PostCSS]: https://github.com/postcss/postcss\n[selectors]: http://www.w3.org/TR/selectors/#Conformance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeleineostoja%2Fpostcss-input-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadeleineostoja%2Fpostcss-input-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeleineostoja%2Fpostcss-input-style/lists"}