{"id":19440299,"url":"https://github.com/firede/archer","last_synced_at":"2026-03-01T08:32:55.809Z","repository":{"id":11366194,"uuid":"13801584","full_name":"firede/archer","owner":"firede","description":"Mobile mixin library based on Stylus.","archived":false,"fork":false,"pushed_at":"2013-10-24T08:13:43.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T03:02:23.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/firede.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":"2013-10-23T12:01:14.000Z","updated_at":"2013-10-24T08:13:43.000Z","dependencies_parsed_at":"2022-08-28T02:00:33.091Z","dependency_job_id":null,"html_url":"https://github.com/firede/archer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firede/archer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Farcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Farcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Farcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Farcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firede","download_url":"https://codeload.github.com/firede/archer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firede%2Farcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T15:28:42.261Z","updated_at":"2026-03-01T08:32:55.792Z","avatar_url":"https://github.com/firede.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# archer\n\nMobile mixin library based on Stylus.\n\n## API\n\n### Normalize\n\n#### normalize()\n\n基于 `normalize.css`，用来归一化不同浏览器下的页面样式。\n\n    normalize()\n\n### Functions\n\n函数主要用于对样式的 `value` 进行处理。\n\n#### px2rem(pixel)\n\n将值的单位从 `px` 转为 `rem`。\n\n    .entry p\n      font-size: px2rem(14)\n      line-height: px2rem(22)\n\n#### hidpi(ratio = 1.3)\n\n基于 `min-device-pixel-ratio` 生成针对高分辨率模式的 media query，默认值为 `1.3`。\n\n    .img\n      media_query = hidpi()\n      @media media_query\n        background-image: url('img@2x.png')\n\n### Utils\n\n常用工具型 Mixin。\n\n#### clearfix()\n\n建立 BFC 清除元素内部的浮动，使元素获得应有的高度。\n\n    .list-container\n      .clearfix()\n      li\n        float: left\n\n#### size(width, height)\n\n设定元素的尺寸，当参数只写1个时生成正方形。\n\n    .square\n      size: 20px\n    .rect\n      size: 200px 80px\n\n#### retina-image(path, width, height)\n\n高清屏图片支持。\n\n    .icon\n      retina-image: \"../img/icon.png\" 32px 32px\n      size: 32px\n\n#### hide-text()\n\n隐藏文字。\n\n    .icon\n      size: 32px\n      hide-text()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirede%2Farcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirede%2Farcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirede%2Farcher/lists"}