{"id":22021561,"url":"https://github.com/lamansky/mq","last_synced_at":"2026-05-17T06:44:51.266Z","repository":{"id":57126183,"uuid":"223237825","full_name":"lamansky/mq","owner":"lamansky","description":"A library of media query mixins for Sass.","archived":false,"fork":false,"pushed_at":"2019-11-21T18:33:51.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T07:43:52.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/lamansky.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}},"created_at":"2019-11-21T18:26:29.000Z","updated_at":"2019-11-21T18:33:53.000Z","dependencies_parsed_at":"2022-08-24T14:59:36.422Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/mq","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lamansky/mq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/mq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fmq/sbom","scorecard":{"id":577789,"data":{"date":"2025-08-11","repo":{"name":"github.com/lamansky/mq","commit":"cc16b13786119f13ecdaffa78be038f0ce2ba4fd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Info: FSF or OSI recognized license: MIT License: license.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T18:18:19.835Z","repository_id":57126183,"created_at":"2025-08-20T18:18:19.835Z","updated_at":"2025-08-20T18:18:19.835Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33129858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: 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-30T06:12:55.632Z","updated_at":"2026-05-17T06:44:51.230Z","avatar_url":"https://github.com/lamansky.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mq\n\nA library of media query mixins for [Sass](https://sass-lang.com/).\n\n## Installation and Usage\n\nIf you have [Node.js](https://nodejs.org/en/) installed, you can add this module to your project using npm:\n\n```bash\nnpm i @lamansky/mq\n```\n\nAssuming you’re using [webpack](https://webpack.js.org/) for your project, include the module into your own Sass/SCSS stylesheet like so:\n\n```scss\n@use \"~@lamansky/mq\";\n```\n\n## Functions\n\nThe `mq` library includes three functions.\n\n### dark\n\nTests for a [dark-mode media query](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme).\n\n```scss\n@use \"~@lamansky/mq\";\n\nbody {\n  background: white;\n  color: black;\n\n  @include mq.dark {\n    background: black;\n    color: white;\n  }\n}\n```\n\nThis function also adds the classes necessary for a manual JavaScript-powered dark-mode/light-mode toggle. The default settings are:\n\n```scss\n@use \"~@lamansky/mq\" with (\n  $color-scheme-override-root: 'html',\n  $dark-class: 'dark-mode',\n  $default-color-class: 'default-color-mode',\n  $light-class: 'light-mode',\n);\n```\n\nWith these defaults, your dark-mode styles can be triggered by adding a `dark-mode` class to the `html` element.\n\nIf the dark-mode styles are already active as a result of the media query, the dark-mode styles can be manually disabled by adding a `light-mode` or `default-color-mode` class to the `html` element.\n\n### light\n\nTests for a [light-mode media query](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) (useful for stylesheets that go with a dark default).\n\n```scss\n@use \"~@lamansky/mq\";\n\nbody {\n  background: black;\n  color: white;\n\n  @include mq.light {\n    background: white;\n    color: black;\n  }\n}\n```\n\nThis function also adds the classes necessary for a manual JavaScript-powered light-mode/dark-mode toggle. The default settings for this are:\n\n```scss\n@use \"~@lamansky/mq\" with (\n  $color-scheme-override-root: 'html',\n  $dark-class: 'dark-mode',\n  $default-color-class: 'default-color-mode',\n  $light-class: 'light-mode',\n);\n```\n\nWith these defaults, your light-mode styles can be triggered by adding a `light-mode` class to the `html` element.\n\nIf the light-mode styles are already active as a result of the media query, the light-mode styles can be manually disabled by adding a `dark-mode` or `default-color-mode` class to the `html` element.\n\n### width\n\nCreates a media query that tests whether the viewport width is between two given multiples of a certain measurement. By default, this multiple is `160px`.\n\n```scss\n@use \"~@lamansky/mq\";\n\nbody {\n  font-size: 14px;\n\n  @include mq.width(6) { // Viewport is at least 160px * 6 = 960px\n    font-size: 16px;\n  }\n}\n\n.sidebar {\n  float: right;\n\n  @include mq.width(0, 4) { // Viewport is less than 160px * 4 = 640px\n    float: none;\n  }\n}\n\n.menu {\n  li {\n    padding-left: .5em;\n    padding-right: .5em;\n\n    @include mq.width(4, 6) {\n      padding-left: 1em;\n      padding-right: 1em;\n    }\n\n    @include mq.width(6) {\n      padding-left: 1.5em;\n      padding-right: 1.5em;\n    }\n  }\n}\n```\n\nFor a \"greater than\" query, omit the second argument. For a \"less than\" query, set the first argument to zero.\n\nYou can customize the settings for this function using the `with` keyword:\n\n```scss\n@use \"~@lamansky/mq\" with (\n  $scrollbar-padding: 0px,\n  $width-step: 160px,\n);\n```\n\nIf you set a `$scrollbar-padding`, it will be subtracted from all viewport width measurements in the resulting media queries.\n\n## Related\n\n* [styles](https://github.com/lamansky/styles): A small library of commonly-used stylesheet rules, packaged as a Sass module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Fmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fmq/lists"}