{"id":15066579,"url":"https://github.com/kristiegiles/fraction-grid","last_synced_at":"2026-02-03T05:04:57.463Z","repository":{"id":215356960,"uuid":"81533491","full_name":"kristiegiles/fraction-grid","owner":"kristiegiles","description":"Sass mixins to generate a custom mobile-first grid system","archived":false,"fork":false,"pushed_at":"2017-03-10T09:54:12.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-26T10:04:17.847Z","etag":null,"topics":["grid-system","grids","sass-mixins"],"latest_commit_sha":null,"homepage":"","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/kristiegiles.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-10T06:18:18.000Z","updated_at":"2018-10-20T08:03:22.000Z","dependencies_parsed_at":"2024-01-04T01:48:52.578Z","dependency_job_id":null,"html_url":"https://github.com/kristiegiles/fraction-grid","commit_stats":null,"previous_names":["kristiegiles/fraction-grid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kristiegiles/fraction-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiegiles%2Ffraction-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiegiles%2Ffraction-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiegiles%2Ffraction-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiegiles%2Ffraction-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristiegiles","download_url":"https://codeload.github.com/kristiegiles/fraction-grid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristiegiles%2Ffraction-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29033718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["grid-system","grids","sass-mixins"],"created_at":"2024-09-25T01:09:25.593Z","updated_at":"2026-02-03T05:04:57.447Z","avatar_url":"https://github.com/kristiegiles.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fraction-grid \nGrid systems that use class names like `col-md-3` don't give you the ability to change the number of columns in your grid without refactoring your whole codebase. \n\nThis is a Sass partial you can customize to generate your own easy-to-use and infinitely scalable grid system. It uses [BEM syntax](https://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/)\n and enforces a mobile-first approach. \n \n##Configuring the Grid##\nUpdate the variables at the top of the _grid.scss file to configure your grid system.\n\n**`$columnsList`** A list of the column sizes you'd like. If you just want to start with a 12-column grid, you'd use a value of\n`'12'`. To add a 5-column option, you'd change it to `$columnsList: '12, 5'`.\n\n**`$vr-border-style`** Style to use for vertical rules.\n\n**`$gutter-size`** Space between grid items.\n\n**`$breakpointsList`** Namespaces for your breakpoints.\n\n####Breakpoint Sizes####\nYou can change the pixel values on these. If you choose to add or remove breakpoints, you must update the `$breakpointsList` to match. \n```\n$breakpoint-sm\n$breakpoint-md\n$breakpoint-lg\n$breakpoint-xl\n```\n\nTo build the CSS using this repo, `cd` into the fraction-grid directory and run `npm install` and then `grunt`.\n\n##Using the Grid##\n###Grids###\nThe `grid` class should be used for groups of grid items. It's similar to a row in a traditional grid, but your grid items can span multiple rows. \n\n###Grid Items###\nThe `grid__item` class should be used for individual grid items (a.k.a. columns). Grid items must be direct decendants of a grid. \n\n###Width Utilities###\nGrid items are 100% width by default. Sizing should be done with the `{columns}/{totalColumns}@{breakpoint}` utility classes – for example, `1/2@md 1/3@lg 1/4@xl` (or for a 12-column-only grid, you'd use `6/12@md 4/12@lg 3/12@xl`). These classes enforce a mobile-first approach and will affect viewports at the defined size and greater. \n\n```\n\u003cdiv class=\"grid\"\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\nFor columns that are the same sizes at all breakpoints, just leave off the `@{breakpoint}` part. \n```\n\u003cdiv class=\"grid\"\u003e\n    \u003cdiv class=\"grid__item 1/2\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n###Vertical Rules###\nTo add a vertical rule, use the `vr-right` or `vr-left` classes on a grid item. To add a vertical rule only at a specified breakpoint and larger, use `vr-right@{breakpoint}` or `vr-left@{breakpoint}`. The vertical rule will be the height of the tallest grid item in the row. \n```\n\u003cdiv class=\"grid\"\u003e\n    \u003cdiv class=\"grid__item 1/3@md vr-right@md\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 2/3@md\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n###Spacing Utilities###\nYou may often want bottom margins that match the gutter width of your grid items. You can add these with the `spacing-bottom` / `spacing-bottom@{breakpoint}` utilities. \n```\n\u003cdiv class=\"grid\"\u003e\n    \u003cdiv class=\"grid__item 1/3@md 1/3@xl spacing-bottom\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl spacing-bottom\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl spacing-bottom\"\u003e\u003cdiv\u003e\n    \u003cdiv class=\"grid__item 1/3@md 1/3@xl spacing-bottom\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl spacing-bottom\"\u003e\u003c/div\u003e\n    \u003cdiv class=\"grid__item 1/2@md 1/3@xl spacing-bottom\"\u003e\u003cdiv\u003e\n\u003c/div\u003e\n```\n###Offset Utilities###\nThe `offset-{columns}/{totalColumns}@{breakpoint}` can be used to give a grid item a left margin of the specified size. \n\n---\nRated for IE10+\n\nInspired by [Inuit CSS](https://github.com/csswizardry/inuit.css/) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristiegiles%2Ffraction-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristiegiles%2Ffraction-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristiegiles%2Ffraction-grid/lists"}