{"id":20613426,"url":"https://github.com/pure-css/rework-pure-grids","last_synced_at":"2025-08-20T08:32:31.226Z","repository":{"id":11857114,"uuid":"14415730","full_name":"pure-css/rework-pure-grids","owner":"pure-css","description":"Generate custom units for Pure Grids via Rework","archived":false,"fork":false,"pushed_at":"2020-05-02T17:40:45.000Z","size":37,"stargazers_count":105,"open_issues_count":2,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-12-11T17:23:08.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pure-css.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.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":"2013-11-15T05:11:50.000Z","updated_at":"2024-08-14T17:19:17.000Z","dependencies_parsed_at":"2022-07-17T06:16:05.516Z","dependency_job_id":null,"html_url":"https://github.com/pure-css/rework-pure-grids","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pure-css%2Frework-pure-grids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pure-css%2Frework-pure-grids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pure-css%2Frework-pure-grids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pure-css%2Frework-pure-grids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pure-css","download_url":"https://codeload.github.com/pure-css/rework-pure-grids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230408170,"owners_count":18220974,"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-16T11:09:58.851Z","updated_at":"2024-12-19T09:07:23.493Z","avatar_url":"https://github.com/pure-css.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Rework Pure Grids\n=================\n\nGenerate custom units for [Pure][] Grids via [Rework][].\n\n\n[Pure]: http://purecss.io/\n[Rework]: https://github.com/visionmedia/rework\n\n\nUsage\n-----\n\nInstall Rework and this Rework plugin from npm:\n\n```shell\n$ npm i rework rework-pure-grids\n```\n\nCreate custom media queries for Pure's defaut Grids unit sizes:\n\n```js\nvar rework    = require('rework'),\n    pureGrids = require('rework-pure-grids');\n\nvar css = rework('').use(pureGrids.units({\n    mediaQueries: {\n        sm : 'screen and (min-width: 35.5em)',\n        md : 'screen and (min-width: 48em)',\n        lg : 'screen and (min-width: 64em)',\n        xl : 'screen and (min-width: 80em)'\n    }\n})).toString();\n```\n\nOr create a customized set unit sizes for Pure Grids:\n\n```js\nvar rework    = require('rework'),\n    pureGrids = require('rework-pure-grids');\n\n// Creates a 12ths-based Grid.\nvar css = rework('').use(pureGrids.units(12, {\n    mediaQueries: {\n        sm : 'screen and (min-width: 35.5em)',\n        md : 'screen and (min-width: 48em)',\n        lg : 'screen and (min-width: 64em)',\n        xl : 'screen and (min-width: 80em)'\n    }\n})).toString();\n```\n\nThe new classnames can be added to HTML elements whenever their width should\nchange at the break-points specified in the `mediaQueries` option above.\n\n```html\n\u003cdiv class=\"pure-g\"\u003e\n    \u003cdiv id=\"main\" class=\"pure-u-1 pure-u-med-3-4 pure-u-xlrg-2-3\"\u003e\n        \u003ch1\u003eMain Content\u003c/h1\u003e\n    \u003c/div\u003e\n\n    \u003cdiv id=\"side\" class=\"pure-u-1 pure-u-med-1-4 pure-u-xlrg-1-3\"\u003e\n        \u003ch1\u003eSide Content\u003c/h1\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n\nLicense\n-------\n\nThis software is free to use under the Yahoo! Inc. BSD license.\nSee the [LICENSE file][] for license text and copyright information.\n\n\n[LICENSE file]: https://github.com/yahoo/rework-pure-grids/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpure-css%2Frework-pure-grids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpure-css%2Frework-pure-grids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpure-css%2Frework-pure-grids/lists"}