{"id":21420594,"url":"https://github.com/maxhoffmann/baseliner","last_synced_at":"2025-03-16T20:11:36.226Z","repository":{"id":4911059,"uuid":"6067318","full_name":"maxhoffmann/Baseliner","owner":"maxhoffmann","description":"Baseliner.js adds additional margin to odd elements on your page to maintain your baseline grid.","archived":false,"fork":false,"pushed_at":"2012-10-05T10:02:19.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T06:32:00.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vimeo/graphite-influxdb","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxhoffmann.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":"2012-10-03T21:40:54.000Z","updated_at":"2014-03-20T18:22:16.000Z","dependencies_parsed_at":"2022-09-16T07:40:42.512Z","dependency_job_id":null,"html_url":"https://github.com/maxhoffmann/Baseliner","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/maxhoffmann%2FBaseliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2FBaseliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2FBaseliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2FBaseliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxhoffmann","download_url":"https://codeload.github.com/maxhoffmann/Baseliner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926072,"owners_count":20369910,"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-22T20:19:24.228Z","updated_at":"2025-03-16T20:11:36.204Z","avatar_url":"https://github.com/maxhoffmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baseliner.js\n\nBaseliner.js adds additional margin to odd elements on your page to maintain your baseline grid.\n\nBaseliner adds a margin to the bottom of elements, which don’t fit to your baseline.\nThese elements may already have margin applied. (except inline styles)\nIt is written in pure JavaScript, so there is no need for you to load jQuery and it works on responsive websites.\nThe margin is applied as `em` to work best with websites using relative units.\n\nSupported by all modern browsers (Chrome, Safari, Firefox, Opera, IE 9+)\n\nDefault settings:\n\n- `selector`: 'img' (align images per default)\n- `lineHeight`: 24 (desired baseline height in pixel)\n- `fontSize`: 16 (font-size of parent element in pixel, 16px is the default browser font-size)\n\n```javascript\n// Apply baseline with default settings\nbaseliner.init();\n\n// Apply baseline to all elements with the class '.baseliner'\nbaseliner.init('.baseliner');\n\n// Apply a 28px baseline to all elements with class '.baseliner'\nbaseliner.init('.baseliner', 28);\n\n// Apply a 28px baseline to all elements with class '.baseliner', using 18px as a base font-size for em-calculation\nbaseliner.init('.baseliner', 28, 18);\n```\n\n## License\n\nBaseliner.js is licensed under the [WTFPL license.](http://sam.zoy.org/wtfpl/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhoffmann%2Fbaseliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxhoffmann%2Fbaseliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhoffmann%2Fbaseliner/lists"}