{"id":15923977,"url":"https://github.com/gobeli/flexy","last_synced_at":"2025-04-03T12:45:46.241Z","repository":{"id":58221044,"uuid":"46143868","full_name":"gobeli/flexy","owner":"gobeli","description":"A flexbox based grid-system","archived":false,"fork":false,"pushed_at":"2017-03-18T07:58:03.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T04:27:57.166Z","etag":null,"topics":["css","flexbox","grid"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gobeli.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":"2015-11-13T19:52:35.000Z","updated_at":"2017-03-18T07:57:03.000Z","dependencies_parsed_at":"2022-08-31T02:51:13.758Z","dependency_job_id":null,"html_url":"https://github.com/gobeli/flexy","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/gobeli%2Fflexy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Fflexy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Fflexy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gobeli%2Fflexy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gobeli","download_url":"https://codeload.github.com/gobeli/flexy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247005397,"owners_count":20868019,"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","flexbox","grid"],"created_at":"2024-10-06T21:03:24.249Z","updated_at":"2025-04-03T12:45:46.218Z","avatar_url":"https://github.com/gobeli.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexy\n\n## A Flexbox-based 12 column grid-system\n\nGet startet by including the _flexy.scss in you project and initialize it i.e:\n```Sass\n@include initialize((\"xs\": \"0\",\"s\": \"480px\",\"m\": \"768px\",\"l\": \"980px\"),true); //breaks / enable prefixing\n```\n\n### Default usage\nInclude the default grid like this:\n```Sass\n.row {\n    @include defaultGrid();\n}\n```\nIf your just using the default grid you could also use the compiled version located in the dist folder which is nothing more than the defaultGrid.\n\n### Use the different mixins\n\nThe first mixin you will use is the following:\n```Sass\n.row{\n\t@include row(true/false,[same as align-items],[same as justify-content]); //true: inline-flex, false: flex | default: false\n}\n```\nNext up we have some of mixins for the row. Checkout [css-tricks](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) for reference\n\n```Sass\n@include align-items(flex-start | flex-end | center | baseline | stretch );\n@include justify-content(flex-start | flex-end | center | space-between | space-around );\n@include flex-direction(row | row-reverse | column | column-reverse);\n@include flex-wrap(nowrap | wrap | wrap-reverse);\n```\n\nNext up we have the mixin to make a column:\n```Sass\nnav{\n\t@include col(m,4);\n}\nsection{\n\t@include col(m,8); /* m = the break-identifier, 8 = width (12 = 100%, 8 = 66,66%) */\n}\n```\n\nFor the gutter use the third parameter\n```Sass\nsection{\n\t@include col(m,6,.5rem); /* .5rem = the gutter (default = null) */\n}\n```\n\nIf you want to throw some offset in there use a fourth parameter for the col-mixin\n```Sass\nsection{\n\t@include col(m,6,null,3); /* 3 = the offset (3 = 25%) */\n}\n```\n\nUse the `flex`-mixin to specify your own flex and not be tied to the 12 cols. Again [css-tricks](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) for reference\n```Sass\naside{\n\t@include flex(0 1 20rem);\n}\n```\n\nYou may want to use the cool order functionality that flexbox provides, in this little mixin library you can use ths with the order mixin:\n```Sass\nheader{\n\t@include order(1); /* 1 = the order */\t\n}\n```\n\nWith the following mixin you can control the `align-self`-property of the column.\n```Sass\n@include align-self(auto | flex-start | flex-end | center | baseline | stretch);\n```\n\nYou can also use the ```break```-mixin everywhere:\n```Sass\n@include break(m){\n\tpadding: .5rem;\n}\n```\nThis mixin requires a break-name as a parameter.\n\nThere is also a little prefix mixin, if you use a autoprefixer you won't need this so you can switch it off by setting the variable `$prefix` to `false`.\n\nAlso check out the demo to so cool stuff you can build with Flexy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobeli%2Fflexy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgobeli%2Fflexy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgobeli%2Fflexy/lists"}