{"id":16346856,"url":"https://github.com/simonsmith/suitcss-utils-image","last_synced_at":"2025-11-09T02:30:22.404Z","repository":{"id":57374257,"uuid":"89882316","full_name":"simonsmith/suitcss-utils-image","owner":"simonsmith","description":"CSS image utilities","archived":false,"fork":false,"pushed_at":"2017-05-01T20:10:33.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T04:21:49.911Z","etag":null,"topics":["css","responsive","suitcss","utility"],"latest_commit_sha":null,"homepage":"https://simonsmith.io/suitcss-utils-image/test/index.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/simonsmith.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-30T22:59:11.000Z","updated_at":"2017-05-01T16:35:41.000Z","dependencies_parsed_at":"2022-09-17T15:50:45.065Z","dependency_job_id":null,"html_url":"https://github.com/simonsmith/suitcss-utils-image","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fsuitcss-utils-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fsuitcss-utils-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fsuitcss-utils-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsmith%2Fsuitcss-utils-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsmith","download_url":"https://codeload.github.com/simonsmith/suitcss-utils-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239321395,"owners_count":19619697,"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","responsive","suitcss","utility"],"created_at":"2024-10-11T00:38:07.427Z","updated_at":"2025-11-09T02:30:22.360Z","avatar_url":"https://github.com/simonsmith.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUIT CSS utilities: image\n\n[![Build Status](https://travis-ci.org/simonsmith/suitcss-utils-image.svg?branch=master)](https://travis-ci.org/simonsmith/suitcss-utils-image)\n\nSUIT CSS image utilities\n\n* Read more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).\n\n## Installation\n\n* [npm](http://npmjs.org/): `npm install suitcss-utils-image`\n* Download: [zip](https://github.com/simonsmith/suitcss-utils-image/releases/latest)\n\n## Available classes\n\n* `u-imgResponsive` - Allow an image to respond to its container size\n\n## Usage\n\n```html\n\u003cimg class=\"u-imgResponsive\" src=\"{src}\" /\u003e\n```\n\n### Configuration\n\n#### Overriding the display property on responsive images\n\nBy default responsive images are set to `display: block` but this can be overridden with\nanother utility, such as [suitcss-utils-display](https://github.com/suitcss/utils-display)\n\n```html\n\u003cimg class=\"u-imgResponsive u-inline\" src=\"{src}\" /\u003e\n```\n\nPlease refer to the README for [SUIT CSS utils](https://github.com/suitcss/utils/)\n\n## Testing\n\nInstall [Node](http://nodejs.org) (comes with npm).\n\n```\nnpm install\n```\n\nTo generate a build:\n\n```\nnpm run build\n```\n\nTo lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)\n\n```\nnpm run lint\n```\n\nTo generate the testing build.\n\n```\nnpm run build-test\n```\n\nTo watch the files for making changes to test:\n\n```\nnpm run watch\n```\n\nBasic visual tests are in `test/index.html`.\n\n## Browser support\n\n* Google Chrome\n* Opera\n* Firefox\n* Safari\n* Internet Explorer 8+\n* Android 4.1+\n* iOS 6+\n* Windows phone 8.1+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fsuitcss-utils-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsmith%2Fsuitcss-utils-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsmith%2Fsuitcss-utils-image/lists"}