{"id":15377012,"url":"https://github.com/radium-v/less-code-style-guide","last_synced_at":"2026-02-17T04:32:07.630Z","repository":{"id":32050775,"uuid":"35622402","full_name":"radium-v/less-code-style-guide","owner":"radium-v","description":"Basic Less guidelines. Written in haiku only. You can help out too!","archived":false,"fork":false,"pushed_at":"2015-10-02T01:42:42.000Z","size":120,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-06T08:58:36.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/radium-v.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":"2015-05-14T16:26:50.000Z","updated_at":"2016-06-07T18:14:10.000Z","dependencies_parsed_at":"2022-09-11T07:52:58.676Z","dependency_job_id":null,"html_url":"https://github.com/radium-v/less-code-style-guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/radium-v/less-code-style-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radium-v%2Fless-code-style-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radium-v%2Fless-code-style-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radium-v%2Fless-code-style-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radium-v%2Fless-code-style-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radium-v","download_url":"https://codeload.github.com/radium-v/less-code-style-guide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radium-v%2Fless-code-style-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29533702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-10-01T14:09:30.926Z","updated_at":"2026-02-17T04:32:07.608Z","avatar_url":"https://github.com/radium-v.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Less Code Style Guidelines\n\n## Values and Variables\n\nRems are the best  \n[Unless they really don't work.](http://fvsch.com/code/bugs/rem-mediaquery/)  \nUse what makes the most sense.  \n\n```less\nfont-size: 1rem; // 16px\n```\n\n-\n\n### Structure\n\nSelector, then space.  \nThen curly brace and new line.  \nSolo closing brace.  \n\n```less\n.hooray {\n}\n```\n\n-\n\n### Indentation\n\nUse tabs to indent.  \nOnly one tab per level.  \nRetract closing brace.\n\n```less\n.nope {\n\ttext-align: center;\n}\n```\n\n-\n\n### Mulitple Selectors\n\nCommas with newlines  \nSplit multiple selectors.  \nAlphabetically.  \n\n```less\n.george,\n.john,\n.paul,\n.ringo {\n\ttext-align: center;\n}\n```\n\n-\n\n### Properties\n\nExtends always first.  \nAll mixins go after that.  \nThen the properties.\n\n```less\n.fancy-class {\n\t\u0026:extend(.super);\n\t.story(@bro: 1rem);\n\n\tborder: none;\n\ttext-align: center;\n}\n```\n\n-\n\n### Nested Selectors\n\nNested selectors  \nHave a comment afterwards.  \nSearch is now easy.\n\nVisibility  \nPrevents ridiculousness  \nAnd over-nesting.  \n\n```less\n.parent {\n\n\t.child { // .parent .child\n\n\t\t\u0026:hover { // .parent .child:hover\n\n\t\t\t\u003e .woah { // .parent .child:hover \u003e .woah\n\n\t\t\t\t\u0026:nth-of-type(2n + 1) { // .parent .child:hover \u003e .woah:nth-of-type(2n + 1)\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n-\n\n### Selectors\n\nClasses are the best.  \nPlease use IDs sparingly.  \nStop, don't qualify.  \n\n```less\n#bad {\n\t// stuff\n}\n\nul.be-sorry {\n\t// over-qualified\n}\n\n```\n\n-\n\n### Media Queries\n\nStore queries as strings.  \nDeclare variables.  \nCSS cascades.\n\n```less\n@tablet-up: ~\"screen and (min-width: 768px)\";\n```\n\n\nMedia queries  \nNested inside the module.  \nMobile First, of course.\n\n```less\n.box {\n\twidth: 1rem;\n\t\n\t@media @tablet-up {\n\t\twidth: 2rem;\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradium-v%2Fless-code-style-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradium-v%2Fless-code-style-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradium-v%2Fless-code-style-guide/lists"}