{"id":20627816,"url":"https://github.com/sivan/sass-grid-system","last_synced_at":"2026-04-24T07:31:16.742Z","repository":{"id":3491707,"uuid":"4547825","full_name":"sivan/Sass-Grid-System","owner":"sivan","description":"A simple Sass grid system.","archived":false,"fork":false,"pushed_at":"2018-04-01T12:15:09.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T06:32:32.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sivan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-04T14:05:54.000Z","updated_at":"2023-03-08T14:26:00.000Z","dependencies_parsed_at":"2022-07-21T21:47:36.029Z","dependency_job_id":null,"html_url":"https://github.com/sivan/Sass-Grid-System","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2FSass-Grid-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2FSass-Grid-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2FSass-Grid-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivan%2FSass-Grid-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivan","download_url":"https://codeload.github.com/sivan/Sass-Grid-System/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242483358,"owners_count":20135788,"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-16T13:18:18.617Z","updated_at":"2026-04-24T07:31:16.701Z","avatar_url":"https://github.com/sivan.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sass Grid System\n\n## 简单介绍\n\n一个方便 Sass 使用的网格系统，来自 Blueprint。\n\n* `$column-width`: 栏宽度;\n* `$gutter-width`: 槽宽度;\n* `$columns`: 网格数量;\n\n## 使用方式\n\n在响应 ID 或 class 中使用\n\n``` sass\n@include grid(column, col-type);\n```\n\n* 第一个参数 column 为网格数，设定为 `wrap` 时为网格容器。\n* 第二个参数 col-type 为网格类型，默认可以留空，每行末尾元素使用 `last`。也可以使用 `append`、`prepent`、`pull`、`push` 来实现不同布局。\n\n如实现下面的网格布局，原来的 CSS 代码为：\n\n``` sass\n.container {\n  width: 988px;\n  margin: 0 auto;\n}\n.content-main {\n  width: 652px;\n  float: left;\n  margin-right: 20px;\n}\n.content-sub {\n  width: 316px;\n  float: left;\n  margin-right: 0;\n}\n```\n\n在载入本框架后，代码如下\n\n``` sass\n.container {\n  @include grid('wrap');\n}\n.content-main {\n  @include grid(12);\n}\n.content-sub {\n  @include grid(6, 'last');\n}\n```\n\n## 更多说明\n\n本代码适合布局简单的页面使用，去掉网格系统中纯粹的布局标记，大幅精简 **HTML** 中的冗余代码，如 `span-13`、`column`、`append-6` 等。\n\n但当页面布局、层级复杂时，还是使用传统方式更佳。\n\n-- EOF --\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivan%2Fsass-grid-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivan%2Fsass-grid-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivan%2Fsass-grid-system/lists"}