{"id":18409586,"url":"https://github.com/objcio/objcss","last_synced_at":"2025-09-07T14:34:25.164Z","repository":{"id":70673902,"uuid":"71793775","full_name":"objcio/objcss","owner":"objcio","description":"Shared CSS for objc.io sites","archived":false,"fork":false,"pushed_at":"2020-01-30T15:04:20.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T21:57:52.409Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objcio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-24T13:49:06.000Z","updated_at":"2020-01-30T15:04:22.000Z","dependencies_parsed_at":"2023-03-20T12:32:58.344Z","dependency_job_id":null,"html_url":"https://github.com/objcio/objcss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objcio%2Fobjcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objcio%2Fobjcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objcio%2Fobjcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objcio%2Fobjcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objcio","download_url":"https://codeload.github.com/objcio/objcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637786,"owners_count":21137538,"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-06T03:26:05.763Z","updated_at":"2025-04-12T21:57:55.204Z","avatar_url":"https://github.com/objcio.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# objcss\nShared CSS for objc.io sites\n\nThis documentation is a work-in-progress.\n\n# CSS\n\n## Utilities\n\n### Spacing\n\nBasic directional spacing is in the form of `[rule][direction][multiplier]`.\n\n`[rule]`:\n* `m`: margin\n* `p`: padding\n\n`[direction]`:\n* _(blank)_: all directions\n* `t`: top\n* `r`: right\n* `b`: bottom\n* `l`: left\n* `h` (horizontal): left \u0026 right\n* `v` (vertical): top \u0026 bottom\n\n`[variant]`:\n* _(blank)_: 1em\n* `+`: 1.5em\n* `++`: 2.5em\n* `-`: 0.5em\n* `--`: 0.25em\n* `---`: 0.15em\n* `0`: 0em\n\n_These are current-as-of-writing values, but can be changed in `_settings.scss`_\n\n#### Examples:\n\n```\nmt\nm+\npv-\nph++\nmb0\n```\n\n### Negative Spacing\n\nBasic negative directional **margin** is in the form of `n-m[direction][multiplier]`.  \nThese work as positive spacing, but only for margin and a subset of directions and multipliers, as such:\n\n`[direction]`:\n* `t`: top\n* `r`: right\n* `b`: bottom\n* `l`: left\n\n`[variant]`:\n* _(blank)_: 1em\n* `+`: 1.5em\n* `++`: 2.5em\n\n#### Examples:\n\n```\nn-mt\nn-mb+\nn-ml--\n```\n\n### Stack\n\nThe `stack` utility is applied to an element to **vertically space its children** from one another.  This is useful to space a sequence of list of similar elements, like lists of episodes, books, comments, etc.\n\nThe utility is in the form of `stack[variant]`, using the site-wide spacing variants as defined in `_settings.scss`, and works but applying top margin to each each children in the stack except the first. It is defined as simply as:\n\n```scss\n.stack{$variant} \u003e + * + {\n  margin-top: $variant-value;\n}\n```\n\n#### Example:\n```html\n\u003cul class=\"stack+\"\u003e\n  \u003cli\u003e...\u003c/li\u003e\n  \u003cli\u003e...\u003c/li\u003e\n  ...\n\u003c/ul\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjcio%2Fobjcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjcio%2Fobjcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjcio%2Fobjcss/lists"}