{"id":13725225,"url":"https://github.com/motine/css_grid_annotator","last_synced_at":"2025-05-07T19:33:18.217Z","repository":{"id":78518463,"uuid":"179655247","full_name":"motine/css_grid_annotator","owner":"motine","description":"Automatically annotate CSS Grid items with row and column positions, so they are correctly positioned in IE11.","archived":false,"fork":false,"pushed_at":"2019-07-27T06:49:20.000Z","size":179,"stargazers_count":58,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T01:27:21.901Z","etag":null,"topics":["css-grid","ie11","polyfill"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/motine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-05T09:35:15.000Z","updated_at":"2023-06-11T10:39:44.000Z","dependencies_parsed_at":"2023-05-21T06:30:37.709Z","dependency_job_id":null,"html_url":"https://github.com/motine/css_grid_annotator","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/motine%2Fcss_grid_annotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motine%2Fcss_grid_annotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motine%2Fcss_grid_annotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motine%2Fcss_grid_annotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motine","download_url":"https://codeload.github.com/motine/css_grid_annotator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645262,"owners_count":17346106,"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","ie11","polyfill"],"created_at":"2024-08-03T01:02:16.297Z","updated_at":"2024-11-14T15:30:55.889Z","avatar_url":"https://github.com/motine.png","language":"JavaScript","readme":"# CSS Grid Annotator\n\n[CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) is great, but IE11 assumes that all items are in the first row and first column. Please check out this [blog post](http://tomrothe.de/posts/css_grid_and_ie11.html) by Valentina and me.\nSo, you have to add a lot of styles to explicitly position your grid items.\nThis script automatically adds the positioning attributes for IE11.\n\n![Demo: before, after](demo.gif)\n\nIt looks through all elements on the page and checks if the `display` property equals `-ms-grid`.\nIf so it will annotate each visible child with explicit `-ms-grid-column` / `-ms-grid-row` based on `-ms-grid-columns` (`-ms-grid-rows` are ignored).\n\nPlease check back under the releases tab for recent releases.\n\n## Gotchas\n\n- The script is only applied when IE11 is found.\n- The script does checks only for the prefixed grid property `-ms-grid`.\n- The script currently only supports `grid-template-columns`. This script does not work if there is only grid-template-rows specified.\n- If there are more items/children specified than columns in the the template, new rows will be created.\n- If there any of the children is annotated with an explicit `-ms-grid-column` or `-ms-grid-row`, the whole container will be skipped.\n- Hidden elements are skipped (`type=\"hidden\"` or `display: none`).\n- The script also annotates containers which are dynamically inserted via JavaScript. But, items are only annotated if a grid container is inserted, inserting individual items stay unannotated.\n\n## More to do\n\n- Consider template rows.\n- Annotate items if they are dynamically added individually.\n\n## Contribute\n\nPlease feel free to add issues, to contribute via pull requests or to reach out to [me](github@motine.de).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotine%2Fcss_grid_annotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotine%2Fcss_grid_annotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotine%2Fcss_grid_annotator/lists"}