{"id":19739485,"url":"https://github.com/suitcss/utils-position","last_synced_at":"2025-02-27T22:27:49.659Z","repository":{"id":10379997,"uuid":"12526541","full_name":"suitcss/utils-position","owner":"suitcss","description":"CSS positioning utilities","archived":false,"fork":false,"pushed_at":"2016-10-13T02:16:26.000Z","size":27,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-10T20:29:02.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://suitcss.github.io/utils-position/test/","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/suitcss.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":"2013-09-01T20:44:23.000Z","updated_at":"2019-05-22T20:04:05.000Z","dependencies_parsed_at":"2022-08-31T13:10:54.638Z","dependency_job_id":null,"html_url":"https://github.com/suitcss/utils-position","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Futils-position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Futils-position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Futils-position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Futils-position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suitcss","download_url":"https://codeload.github.com/suitcss/utils-position/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241068236,"owners_count":19903988,"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-12T01:17:28.985Z","updated_at":"2025-02-27T22:27:49.618Z","avatar_url":"https://github.com/suitcss.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUIT CSS utilities: position\n\n[![Build Status](https://travis-ci.org/suitcss/utils-position.svg?branch=master)](https://travis-ci.org/suitcss/utils-position)\n\nSUIT CSS utility classes for positioning.\n\nRead 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-position`\n* Download: [zip](https://github.com/suitcss/utils-position/releases/latest)\n\n## Available classes\n\n* `u-posAbsolute` - Absolutely position an element.\n* `u-posAbsoluteCenter` - Absolutely position and centre an element.\n* `u-posFit` - Fit an element to the dimensions of its parent\n* `u-posFullScreen` - Fixes an element over the viewport\n* `u-posFixed` - Fixed position an element.\n* `u-posFixedCenter` - Fix an element in the centre of the viewport\n* `u-posRelative` - Relatively position an element.\n* `u-posStatic` - Static position an element.\n\n## Usage\n\n### Creating a dialog overlay\n\n``` html\n\u003cdiv role=\"dialog\" class=\"Dialog u-posFixedCenter\"\u003e\n  \u003cimg src=\"{src}\" alt=\"\" /\u003e\n\u003c/div\u003e\n\u003cdiv class=\"Cover u-posFullScreen\"\u003e\u003c/div\u003e\n```\n\n[Demo](http://codepen.io/simonsmith/pen/qbGaPK)\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 (latest)\n* Opera (latest)\n* Firefox (latest)\n* Safari 5+\n* Internet Explorer 9+\n* Android 2.3+\n* iOS 5.1+\n* Windows Phone 8.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Futils-position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuitcss%2Futils-position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Futils-position/lists"}