{"id":18687020,"url":"https://github.com/montogeek/remark-responsive-tables","last_synced_at":"2025-04-12T05:09:25.352Z","repository":{"id":56564053,"uuid":"142149563","full_name":"montogeek/remark-responsive-tables","owner":"montogeek","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-31T11:16:55.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T00:36:19.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/montogeek.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":"2018-07-24T11:34:28.000Z","updated_at":"2023-03-10T10:18:13.000Z","dependencies_parsed_at":"2022-08-15T21:00:49.799Z","dependency_job_id":null,"html_url":"https://github.com/montogeek/remark-responsive-tables","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/montogeek%2Fremark-responsive-tables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montogeek%2Fremark-responsive-tables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montogeek%2Fremark-responsive-tables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montogeek%2Fremark-responsive-tables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montogeek","download_url":"https://codeload.github.com/montogeek/remark-responsive-tables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519549,"owners_count":21117761,"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-07T10:30:50.142Z","updated_at":"2025-04-12T05:09:25.330Z","avatar_url":"https://github.com/montogeek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-responsible-tables\n\nCreates a responsibe table by extracting `thead` titles and injecting them into each `tbody` row,\nthose are hidded by default on desktop with CSS and displayed on mobile.\n\n## Options\n\n`classnames` (required) Object\n\nClassnames for each element:\n\n- `title`: `thead` titles\n- `description`: Second column description\n- `content`: Element that encapsulates description shown on mobile\n- `mobile`: Media query class for mobile\n- `description`: Media query class for desktop\n\n```js\n{\n  'title': 'title',\n  'description': 'description',\n  'content': 'content',\n  'mobile': 'mobile',\n  'desktop': 'desktop'\n}\n```\n\n## Example\n\n### Mobile\n\n![image](https://user-images.githubusercontent.com/1002461/42291636-391ad9b4-7fcd-11e8-9e0a-98637a8eb3f5.png)\n\n### Desktop\n\n![image](https://user-images.githubusercontent.com/1002461/42291633-342c0f54-7fcd-11e8-93a6-0533a4bf2c03.png)\n\n### Code\n\n**Options**\n\n```js\n{\n  'classnames': {\n    'title': 'title',\n    'description': 'description',\n    'content': 'content',\n    'mobile': 'mobile',\n    'desktop': 'desktop'\n  }\n}\n```\n\n```css\nthead {\n  display: none;\n\n  /* Mobile */\n   {\n    display: table-header-group;\n  }\n}\n\ntd {\n  display: flex;\n  flex-basis: 100%;\n  align-self: stretch;\n\n  /* Mobile */\n   {\n    display: table-cell;\n  }\n}\n\n.titles {\n  display: flex;\n  flex-direction: column;\n  justify-content: baseline;\n\n  /* Mobile */\n   {\n    display: none;\n  }\n}\n\n.content {\n  display: flex;\n  flex-direction: column;\n  justify-content: baseline;\n}\n\n.description.desktop {\n  display: none;\n\n  /* Mobile */\n   {\n    display: block;\n  }\n}\n\n.description.mobile {\n  /* Mobile */\n   {\n    display: none;\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontogeek%2Fremark-responsive-tables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontogeek%2Fremark-responsive-tables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontogeek%2Fremark-responsive-tables/lists"}