{"id":17551469,"url":"https://github.com/taufik-nurrohman/bricks","last_synced_at":"2025-04-24T01:12:17.917Z","repository":{"id":149729397,"uuid":"62926489","full_name":"taufik-nurrohman/bricks","owner":"taufik-nurrohman","description":"Tiny JavaScript grid layout to mimic http://masonry.desandro.com","archived":false,"fork":false,"pushed_at":"2018-10-30T08:10:05.000Z","size":14,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T01:12:11.985Z","etag":null,"topics":["brick","float","grid","javascript","js","layout","lightweight","masonry"],"latest_commit_sha":null,"homepage":"https://taufik-nurrohman.js.org/bricks/bricks.html","language":"HTML","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/taufik-nurrohman.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},"funding":{"custom":["https://paypal.me/tatautaufik","https://saweria.co/tatautaufik"],"github":"taufik-nurrohman","open_collective":"taufik-nurrohman"}},"created_at":"2016-07-09T01:32:38.000Z","updated_at":"2024-01-25T03:26:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"df269410-786d-4294-a469-841a51db3b7d","html_url":"https://github.com/taufik-nurrohman/bricks","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/taufik-nurrohman%2Fbricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fbricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fbricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taufik-nurrohman%2Fbricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taufik-nurrohman","download_url":"https://codeload.github.com/taufik-nurrohman/bricks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540927,"owners_count":21447427,"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":["brick","float","grid","javascript","js","layout","lightweight","masonry"],"created_at":"2024-10-21T04:46:03.348Z","updated_at":"2025-04-24T01:12:17.911Z","avatar_url":"https://github.com/taufik-nurrohman.png","language":"HTML","funding_links":["https://paypal.me/tatautaufik","https://saweria.co/tatautaufik","https://github.com/sponsors/taufik-nurrohman","https://opencollective.com/taufik-nurrohman"],"categories":[],"sub_categories":[],"readme":"Bricks\n======\n\n\u003e Tiny grid layout plugin.\n\n[![View Demo](https://3.bp.blogspot.com/-8FcU5n_DDao/V4CKBCr3z8I/AAAAAAAAIxU/0tTsnS1sQq0G4JBY1DVIbI5ZrVJrm3MUgCLcB/s1600/bricks.png)](//tovic.github.io/bricks/bricks.html \"View Demo\")\n\nUsage\n-----\n\n### HTML\n\n~~~ .html\n\u003cdiv id=\"container\"\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n  \u003cdiv\u003e\u003c/div\u003e\n\u003c/div\u003e\n~~~\n\n### CSS\n\n~~~ .css\n#container {\n  padding: 0 0 5px 5px;\n  margin-right: auto;\n  margin-left: auto;\n  overflow: hidden;\n}\n\n#container \u003e div {\n  width: 100px;\n  float: left;\n  margin: 5px 5px 0 0;\n}\n~~~\n\n### JavaScript\n\n~~~ .js\nvar gap = 5; // same as `#container div` margin\nvar pad = 5; // same as `#container` padding\n\nbricks('container', gap, pad);\n~~~\n\nLimitation\n----------\n\n - Can’t handle bricks with different width.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaufik-nurrohman%2Fbricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaufik-nurrohman%2Fbricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaufik-nurrohman%2Fbricks/lists"}