{"id":23462550,"url":"https://github.com/danielrs/greed","last_synced_at":"2025-04-12T07:37:19.917Z","repository":{"id":58234469,"uuid":"56274014","full_name":"danielrs/greed","owner":"danielrs","description":"Semantic grid system for Less pre-processor","archived":false,"fork":false,"pushed_at":"2017-06-11T18:17:13.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T02:08:09.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/danielrs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-04-14T22:31:07.000Z","updated_at":"2016-04-14T22:33:36.000Z","dependencies_parsed_at":"2022-08-31T09:21:09.451Z","dependency_job_id":null,"html_url":"https://github.com/danielrs/greed","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/danielrs%2Fgreed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fgreed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fgreed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fgreed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrs","download_url":"https://codeload.github.com/danielrs/greed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536088,"owners_count":21120680,"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-12-24T08:17:47.384Z","updated_at":"2025-04-12T07:37:19.889Z","avatar_url":"https://github.com/danielrs.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# greed\n\nSeriously? Another grid system? Well... **yes**!\n\nThere are a *lot* of different grid systems (semantic.gs, Jeet, etc), but most of them\nare either lacking in features or are not available in Less; most good grid systems are\nonly available to Sass and Stylus.\n\n## Features\n\nDespite the name, the *greed* system is very simple while allowing for the following features:\n\n* non-global settings, allowing you to change it's behaviour multiple times\n* right-to-left columns, a feature missing from most Less grid systems\n* column cycling\n* fluid and responsive\n\n## Usage\n\nUse the `.grid` mixin in any child scope, avoid using it in the **global** scope. For example:\n\nThis is wrong:\n```less\n.grid;\n.child-scope {...}\n.other-child-scope {...}\n```\n\nThis is right:\n```less\n.child-scope {\n  .grid;\n  ...\n}\n.child-scope {\n  .grid(@column-float: right);\n  ...\n}\n```\n\nThe signature of the `.grid` mixin is:\n\n```less\n.grid(@grid-width: 100%, @gutter: 5%, @column-float: left)\n```\n\nAfter using the `.grid` mixin, the `.row` and `.column` mixins become available, their signature is:\n\n```less\n.row()\n```\n\n```less\n.column(@column-span, @columns, @cycle: 0)\n```\n\n`.row` Basically sets up the element that will hold the columns (clearfix, etc).\n`.column` Sets up a column width, float, etc.\n\n## Examples\n\n### Mobile first list with cycle at 2 and 3 columns\n\n```less\nul.list {\n  .grid;\n  .row;\n\n  @media screen and (min-width: 720px) and (max-width: 1023px) {\n    li.list-item { .column(1, 2, 2); }\n  }\n\n  @media screen and (min-width: 1024px)\n    li.list-item { .column(1, 3, 3); }\n  }\n}\n```\n\n## License\n\n[MIT](https://github.com/DanielRS/greed/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fgreed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrs%2Fgreed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fgreed/lists"}