{"id":26601929,"url":"https://github.com/alexerlandsson/tiny-grid","last_synced_at":"2025-04-09T16:42:31.291Z","repository":{"id":10783828,"uuid":"66966675","full_name":"alexerlandsson/tiny-grid","owner":"alexerlandsson","description":"This is a lightweight CSS grid framework used to build responsive websites and applications. With just a size of 4KB minified (\u003c 1KB gzipped), it is hard to find a smaller framework with the same possibilities.","archived":false,"fork":false,"pushed_at":"2024-06-19T08:56:44.000Z","size":353,"stargazers_count":31,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T18:53:01.275Z","etag":null,"topics":["css-grid","grid","scss","smaller-framework"],"latest_commit_sha":null,"homepage":"","language":"SCSS","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/alexerlandsson.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-30T18:25:04.000Z","updated_at":"2025-01-27T00:53:41.000Z","dependencies_parsed_at":"2025-03-23T18:47:03.248Z","dependency_job_id":"4f7ec56e-f53b-4b1c-9196-19e3943aa33e","html_url":"https://github.com/alexerlandsson/tiny-grid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexerlandsson%2Ftiny-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexerlandsson%2Ftiny-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexerlandsson%2Ftiny-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexerlandsson%2Ftiny-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexerlandsson","download_url":"https://codeload.github.com/alexerlandsson/tiny-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248069166,"owners_count":21042628,"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-grid","grid","scss","smaller-framework"],"created_at":"2025-03-23T18:46:52.382Z","updated_at":"2025-04-09T16:42:31.272Z","avatar_url":"https://github.com/alexerlandsson.png","language":"SCSS","readme":"# Tiny Grid\nThis is a lightweight CSS grid framework used to build responsive websites and applications. With just a size of 4KB minified (\u003c 1KB gzipped), it is hard to find a smaller framework with the same possibilities.\n\n## Quick Start\nTo use Tiny Grid in your project, download the CSS file `tiny-grid.min.css` located in the folder name css and include it in the head of you html page.\n\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"path/tiny-grid.min.css\"\u003e\n```\n\n### The SCSS way\nIf you're using SCSS in you project, you could donwload the SCSS file instead. It is named `tiny-grid.scss` and located in the folder names scss. If you're doing it this way, you have more possibilities to customize the frameworks with your own breakpoints etc.\n\n## Markup\nTiny Grid uses the same markup as Bootstrap's grid to make it easy to use for everyone. Example of the markup can be seen below:\n\n```html\n\u003cdiv class=\"container\"\u003e\n  \u003cdiv class=\"row\"\u003e\n    \u003cdiv class=\"col-lg-6\"\u003eThis is a column\u003c/div\u003e\n    \u003cdiv class=\"col-lg-6\"\u003eThis is another column\u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Container\nContainer is a class to use to wrap all page content. The max-width is set by changing the `$grid-container-max-width` variable.\n\n### Row\nRows should always wrap columns. This div contains negative margin to remove the padding from the outer columns.\n```html\n\u003cdiv class=\"row\"\u003e\n  \u003c!-- Columns goes here --\u003e\n\u003c/div\u003e\n```\n\n### Columns\nBreakpoint columns defines the width of the column in a certain breakpoint and up. Note that this frameworks uses `min-width` in the media queries.\n\nThe breakpoints could be defined in the `$grid-breakpoints` map. As default, Tiny Grid comes with the breakpoints `sm`, `md`, `lg` and `xl`.\n\nAs default, the grid system builds on a 12-column system. This could easily be changed by changing the `$grid-columns` variable to desired value.\n\n#### Column construction\nTo construct a column, use the class `col-` followed by a breakpoint name and then a width (1 to 12).\n```html\n\u003cdiv class=\"col-md-4\"\u003e\u003c/div\u003e\n```\nThis example creates a column which will be 33.333% wide (4/12) in the md breakpoint and up.\n\n#### Responsive columns\nIt is possible to use different column widths in different breakpoints. To do so, just add multiple `col-` classes.\n\n```html\n\u003cdiv class=\"col-lg-4 col-md-6\"\u003e\u003c/div\u003e\n```\n\n#### Column offset\nTo add a offset to a column, use the `col-` class followed by breakpoint name, `-offset-` and then a width (1 to 12).\n```html\n\u003cdiv class=\"col-lg-offset-2\"\u003e\u003c/div\u003e\n```\n\n### No-breakpoint depended columns\nTo add a column that is not depended by a breakpoint, just ignore the breakpoint name in the class construciton.\n\n```html\n\u003cdiv class=\"col-6\"\u003e\u003c/div\u003e\n```\n\n## Browser Compatibility\n| ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_64x64.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_64x64.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_64x64.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_64x64.png?raw=true) | ![IE](https://github.com/alrra/browser-logos/blob/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_64x64.png?raw=true) |\n|-----|-----|-----|-----|-----|\n| \u003cdiv align=\"center\"\u003eYes\u003c/div\u003e | \u003cdiv align=\"center\"\u003eYes\u003c/div\u003e | \u003cdiv align=\"center\"\u003eYes\u003c/div\u003e | \u003cdiv align=\"center\"\u003eYes\u003c/div\u003e | \u003cdiv align=\"center\"\u003e8+\u003c/div\u003e |\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2016 Alexander Erlandsson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexerlandsson%2Ftiny-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexerlandsson%2Ftiny-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexerlandsson%2Ftiny-grid/lists"}