{"id":15578499,"url":"https://github.com/guoyunhe/flexbin","last_synced_at":"2025-04-13T18:20:59.248Z","repository":{"id":57143674,"uuid":"79701894","full_name":"guoyunhe/flexbin","owner":"guoyunhe","description":"Pure CSS, flexible and gapless image gallery layout like Google Images and 500px.com","archived":false,"fork":false,"pushed_at":"2019-11-18T09:15:19.000Z","size":3873,"stargazers_count":105,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-24T13:17:43.426Z","etag":null,"topics":["css","css3","flexbox","gapless","layout","pure-css","responsive-layout","sass"],"latest_commit_sha":null,"homepage":"https://guoyunhe.me/demo/flexbin/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guoyunhe.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":"2017-01-22T07:32:01.000Z","updated_at":"2023-12-25T18:50:57.000Z","dependencies_parsed_at":"2022-09-06T00:10:55.749Z","dependency_job_id":null,"html_url":"https://github.com/guoyunhe/flexbin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fflexbin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fflexbin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fflexbin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fflexbin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guoyunhe","download_url":"https://codeload.github.com/guoyunhe/flexbin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758923,"owners_count":21157053,"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","css3","flexbox","gapless","layout","pure-css","responsive-layout","sass"],"created_at":"2024-10-02T19:10:59.103Z","updated_at":"2025-04-13T18:20:59.231Z","avatar_url":"https://github.com/guoyunhe.png","language":"CSS","readme":"# Flexbin\n\nFlexible and gapless image gallery layout like Google Images and 500px.com. Based on [article](https://github.com/xieranmaya/blog/issues/6) of [xieranmaya](https://github.com/xieranmaya)\n\n- Pure CSS, no need for JavaScript or server side calculation\n- Responsive, nice look on both desktop and mobile devices\n- Gapless, all spaces between images are the same\n- Little cropping, no deformation\n- SaSS support\n- Chrome 31+, Firefox 36+, Safari 10+\n\n![Screenshot](screenshot.png)\n\n![Screenshot](screenshot-mobile.png)\n\n**Demo**: \u003chttps://guoyunhe.me/demo/flexbin/\u003e\n\n## Get Started\n\n### Download\n\n1. Download this git repo as zip or tar.gz file.\n2. NPM `npm install flexbin`\n3. Bower (TODO)\n\n### Import\n\nUse `flexbin.css` in your HTML:\n\n```html\n\u003clink href=\"path/to/flexbin.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" /\u003e\n```\n\nor import `flexbin.scss` in your SaSS project:\n\n```scss\n@import \"path/to/flexbin.scss\";\n```\n\n### Markup\n\nHTML markup is very simple:\n\n```html\n\u003cdiv class=\"flexbin\"\u003e\n    \u003ca href=\"product/1.html\"\u003e\n        \u003cimg src=\"images/1.jpg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"product/2.html\"\u003e\n        \u003cimg src=\"images/2.jpg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"product/3.html\"\u003e\n        \u003cimg src=\"images/3.jpg\" /\u003e\n    \u003c/a\u003e\n    ...\n\u003c/div\u003e\n```\n\nIf you want extra space surround Flexbin gallery, use \"flexbin-margin\" class:\n\n```html\n\u003cdiv class=\"flexbin flexbin-margin\"\u003e\n    \u003ca href=\"product/1.html\"\u003e\n        \u003cimg src=\"images/1.jpg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"product/2.html\"\u003e\n        \u003cimg src=\"images/2.jpg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"product/3.html\"\u003e\n        \u003cimg src=\"images/3.jpg\" /\u003e\n    \u003c/a\u003e\n    ...\n\u003c/div\u003e\n```\n\n### Customize with SaSS\n\nIf you use SaSS, you can customize Flexbin further:\n\n```scss\n// Desktop, large screen devices\n$flexbin-row-height: 200px; // height of image rows\n$flexbin-space: 10px; // space between images\n\n// Tablet, medium screen devices\n$flexbin-tablet-max: 800px;\n$flexbin-row-height-tablet: 150px;\n$flexbin-space-tablet: 8px;\n\n// Phone, small screen devices\n$flexbin-phone-max: 400px;\n$flexbin-row-height-phone: 100px;\n$flexbin-space-phone: 4px;\n\n@import \"path/to/flexbin.scss\";\n\n.my-flexbin {\n    @include flexbin(100px, 8px);\n}\n\n.my-flexbin-large {\n    @include flexbin(400px, 20px);\n\n    @media (max-width: 768px) {\n        @include flexbin(200px, 10px);\n    }\n}\n```\n\n## TODO\n\n- Publish on Bower, Composer, Gem, etc.\n- Fallback mode for IE, Edge and other old browsers\n\n## Copyright \u0026 License\n\nCopyright 2017 [Guo Yunhe](mailto:guoyunhebrave@gmail.com) \u0026 xieranmaya. Code released under GNU General Public License version 3 or later. See [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fflexbin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguoyunhe%2Fflexbin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fflexbin/lists"}